-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
/
.travis.yml
57 lines (49 loc) · 1.23 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
sudo: required # needed for trusty beta
dist: trusty # needed for HarfBuzz
services:
- docker
os:
- linux
- osx
language: c
compiler:
- gcc
- clang
matrix:
allow_failures:
- os: osx
compiler: gcc
before_install:
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then
docker build -t raqm -f .dockerfile .;
fi
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then
brew update;
brew uninstall libtool && brew install libtool;
brew install freetype harfbuzz fribidi glib gtk-doc;
export XML_CATALOG_FILES="/usr/local/etc/xml/catalog";
fi;
- if [ "${TRAVIS_OS_NAME}" == "osx" -a "${CC}" == "gcc" ]; then export CC=gcc-4.8; fi
script:
- if [[ $TRAVIS_OS_NAME == 'linux' ]]; then
docker run -v `pwd`:/build raqm
sh -c "
cmake -DUNIT_TEST=1 -DWANT_DEBUG=1 -DENABLE_GTK_DOC=1 &&
make &&
make test &&
make docs
";
fi
- if [[ $TRAVIS_OS_NAME == 'osx' ]]; then
cmake -DUNIT_TEST=1 -DWANT_DEBUG=1;
make;
make test;
fi
after_success:
- if [ "$TRAVIS_OS_NAME" == "linux" -a "$CC" == "gcc" -a "$TRAVIS_SECURE_ENV_VARS" == "true" ];
then bash .ci/deploy-docs.sh;
fi
notifications:
email:
recipients:
- host-oman@googlegroups.com