forked from dajobe/rasqal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
51 lines (41 loc) · 1.36 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
# see
# http://docs.travis-ci.com/user/getting-started/
# http://docs.travis-ci.com/user/languages/c/
# http://docs.travis-ci.com/user/build-configuration/
# http://docs.travis-ci.com/user/multi-os/
#
language: c
branches:
only:
- master
# matrix of compilers
compiler:
- gcc
- clang
- c++
# matrix of OSes (feature flagged; not enabled now)
os:
- linux
- osx
# matrix of raptor versions
env:
- RAPTOR_INSTALL_VERSION=2.0.7
- RAPTOR_INSTALL_VERSION=2.0.15
# overall matrix configuration
matrix:
allow_failures:
- os: osx
exclude:
- compiler: c++
env: RAPTOR_INSTALL_VERSION=2.0.7
- compiler: clang
env: RAPTOR_INSTALL_VERSION=2.0.7
# Install raptor extra dependencies too (libyajl-dev) since we build
# raptor from a tarball
install:
- env | sort
- if [ "$TRAVIS_OS_NAME" = "" ]; then TRAVIS_OS_NAME=linux; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then ./scripts/install-bison3.sh; sudo apt-get update -qq -y; sudo apt-get install -qq -y gtk-doc-tools libraptor2-dev libgmp-dev libmhash-dev libpcre3-dev uuid-dev libyajl-dev; fi
- raptor_min_version=`awk -F= '/RAPTOR_MIN_VERSION=/{print $2}' configure.ac` && ./scripts/install-raptor.sh $raptor_min_version $RAPTOR_INSTALL_VERSION
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then brew update; brew install raptor bison gtk-doc yajl; fi
script: ./autogen.sh && make && make test