-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy path.travis.yml
57 lines (53 loc) · 1.66 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
language: c
_linuxpackages: &_linuxpackages
addons:
apt:
packages:
- build-essential
- git
- autoconf
- automake
- autopoint
- libtool
- libglib2.0-dev
- libgtk2.0-dev
- libglade2-dev
- zlib1g-dev
- libusb-1.0-0-dev
- gettext
- bison
- flex
- groff
- texinfo
- intltool
- libarchive-dev
- cmake
- ninja-build
- liblz4-dev
- liblzma-dev
matrix:
include:
- os: linux
dist: xenial
sudo: required
<<: *_linuxpackages
- os: osx
install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then HOMEBREW_NO_AUTO_UPDATE=1 brew install cmake ninja gettext gtk+ libglade libarchive libtool glib libusb bison flex texinfo libiconv intltool ; brew link --force gettext libarchive ; export PKG_CONFIG_PATH="/usr/local/opt/libarchive/lib/pkgconfig"; fi
# We do not need sudo to install to the default prefix on macOS (/usr/local/), but on Linux we do.
script:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then export DOSUDO=sudo && export setprefix="-DCMAKE_INSTALL_PREFIX=/usr"; fi
- git clone --depth 1 https://github.com/debrouxl/tilibs.git
- cd tilibs
- mkdir build && cd build
- cmake -GNinja .. ${setprefix}
- $DOSUDO cmake --build . --target install
- cd ..
- cd ..
- cd gfm/trunk/po; intltool-update --pot; intltool-update fr; cd ../../..
- cd tilp/trunk/po; intltool-update --pot; intltool-update fr; intltool-update de; cd ../../..
- mkdir build && cd build
- cmake -GNinja .. ${setprefix}
- $DOSUDO cmake --build . --target install
- tilp2 --version
- gfm --version