From e02d2c43ad2c3e2ba5a9279861c943c9559f967e Mon Sep 17 00:00:00 2001 From: Dave Beckett Date: Mon, 20 Jul 2015 16:58:50 +0200 Subject: Make Travis-CI run in a container --- .travis.yml | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) (limited to '.travis.yml') 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 -- cgit v1.2.1