summaryrefslogtreecommitdiff
path: root/.travis.yml
diff options
context:
space:
mode:
authorfujiwarat <takao.fujiwara1@gmail.com>2021-02-22 10:33:52 +0900
committerfujiwarat <takao.fujiwara1@gmail.com>2021-02-22 10:33:52 +0900
commitfde764ab57357d683f5c955c549b4f15d4b595a3 (patch)
tree21e47c7c7148dbc73cb0bbb0cd00222fd60bccbc /.travis.yml
parent30d682ebbe28985d669faaa03b9235964b33cf5e (diff)
downloadibus-anthy-fde764ab57357d683f5c955c549b4f15d4b595a3.tar.gz
Add CI
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml65
1 files changed, 65 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 0000000..f7a22c3
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,65 @@
+language: c
+compiler: gcc
+os: linux
+
+# Require gettext-0.19.8
+dist: focal
+
+branches:
+ only:
+ - master
+
+arch:
+ - amd64
+ #- ppc64le
+ #- s390x
+ #- arm64
+
+addons:
+ apt:
+ packages:
+ # For autogen.sh
+ - autopoint
+ # For make from
+ # https://packages.ubuntu.com/search?searchon=sourcenames&keywords=ibus-anthy
+ - desktop-file-utils
+ - gir1.2-ibus-1.0
+ - gobject-introspection
+ - gettext
+ - libanthy-dev
+ - libgirepository1.0-dev
+ - libglib2.0-dev
+ - pkg-config
+ - python3-dev
+ - python3-gi
+
+jobs:
+ include:
+ - name: Build
+ before_script:
+ - sudo apt-get -qq update
+ script:
+ - set -e
+ - git pull --depth=200
+ # configure options from
+ # https://salsa.debian.org/debian/ibus-anthy/-/blob/master/debian/rules
+ - >
+ ./autogen.sh
+ --libexecdir=/usr/lib/ibus
+ --with-layout='default'
+ --with-python=python3
+ --with-hotkeys
+ --with-on-off-keys="'Zenkaku_Hankaku', 'Ctrl+space', 'Ctrl+J'"
+ --enable-installed-tests
+ --disable-static
+ # Set the cutom DESTDIR because the default DESTDIR
+ # /home/travis/bulid/fujiwarat/$PKG/ibus/ibus-$VERSION/_inst seems to be
+ # too long and failed to set DESTDIR to install bindings/pygobject/IBus.py
+ - >
+ make
+ VERBOSE=1
+ DESTDIR="$HOME/build/$USER/dest"
+ - >
+ desktop-file-validate
+ ./setup/python3/ibus-setup-anthy.desktop
+