summaryrefslogtreecommitdiff
path: root/.travis.yml
diff options
context:
space:
mode:
authorDave Beckett <dave@dajobe.org>2015-07-20 16:58:50 +0200
committerDave Beckett <dave@dajobe.org>2015-07-20 16:58:50 +0200
commite02d2c43ad2c3e2ba5a9279861c943c9559f967e (patch)
tree977936ef93fc3cf3ce097acebf5bdc1aee65fdf2 /.travis.yml
parent18e2e511e5e10d9a6b9abae9e3676dd6ce9ab8f9 (diff)
downloadraptor-e02d2c43ad2c3e2ba5a9279861c943c9559f967e.tar.gz
Make Travis-CI run in a container
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml21
1 files changed, 19 insertions, 2 deletions
diff --git a/.travis.yml b/.travis.yml
index 6fee118f..1ac0bbaa 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -3,10 +3,14 @@
# http://docs.travis-ci.com/user/languages/c/
# http://docs.travis-ci.com/user/build-configuration/
# http://docs.travis-ci.com/user/multi-os/
+# http://docs.travis-ci.com/user/migrating-from-legacy/
+# http://docs.travis-ci.com/user/ci-environment/
#
language: c
+sudo: false
+
branches:
only:
- master
@@ -27,11 +31,24 @@ matrix:
allow_failures:
- os: osx
+addons:
+ apt:
+ packages:
+ - gtk-doc-tools
+ - libyajl-dev
+
+cache:
+ directories:
+ - $HOME/bison
+
+env:
+ global:
+ - PATH="$HOME/bison/bin:$PATH"
-install:
+before_script:
- 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 libyajl-dev; fi
+ - if [ "$TRAVIS_OS_NAME" = "linux" ]; then ./scripts/install-bison3.sh $HOME/bison; fi
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then brew update; brew install bison gtk-doc yajl; fi
script: ./autogen.sh && make && make test