1language: c
2compiler: gcc
3os: linux
4
5# Require gettext-0.19.8
6dist: focal
7
8branches:
9  only:
10  - master
11
12# FIXME: Run script in every arch
13arch:
14  - amd64
15  #- ppc64le
16  #- s390x
17  #- arm64
18
19addons:
20  apt:
21    packages:
22    # For autogen.sh
23    - gnome-common
24    - gtk-doc-tools
25    # For make from
26    # https://packages.ubuntu.com/search?searchon=sourcenames&keywords=ibus
27    - desktop-file-utils
28    - gobject-introspection
29    - iso-codes
30    - libdconf-dev
31    - libgirepository1.0-dev
32    - libglib2.0-dev
33    - libgtk-3-bin
34    - libgtk-3-dev
35    - libgtk2.0-dev
36    - libtool
37    - libwayland-dev
38    - python-gi-dev
39    - python3-all
40    - unicode-cldr-core
41    - unicode-data
42    - valac
43
44jobs:
45  include:
46  - name: Build in Ubuntu
47    before_script:
48    - sudo apt-get -qq update
49    script:
50    - set -e
51    - git pull --depth=200
52    # configure options from
53    # https://salsa.debian.org/debian/ibus/-/blob/master/debian/rules
54    - >
55      ./autogen.sh
56      --with-ucd-dir='/usr/share/unicode'
57    # Set the cutom DESTDIR because the default DESTDIR
58    # /home/travis/bulid/fujiwarat/$PKG/ibus/ibus-$VERSION/_inst seems to be
59    # too long and failed to set DESTDIR to install bindings/pygobject/IBus.py
60    - >
61      make distcheck
62      DISTCHECK_CONFIGURE_FLAGS="
63      --enable-gtk-doc
64      --disable-schemas-install
65      --enable-memconf
66      --with-ucd-dir='/usr/share/unicode'
67      "
68      DISABLE_GUI_TESTS="ibus-compose ibus-keypress test-stress"
69      VERBOSE=1
70      DESTDIR="$HOME/build/$USER/dest"
71