summaryrefslogtreecommitdiff
path: root/.travis.yml
diff options
context:
space:
mode:
authorIngy döt Net <ingy@ingy.net>2018-01-06 00:03:42 -0800
committerIngy döt Net <ingy@ingy.net>2018-01-06 14:39:12 -0800
commitaa10f65706b474987d17a6b66ae087f823758e6f (patch)
treeed824924fe2a412198b33dfc46b73865646a8a31 /.travis.yml
parente4aee06ff401668404de21b4af4c6a90be0f35a6 (diff)
downloadlibyaml-git-aa10f65706b474987d17a6b66ae087f823758e6f.tar.gz
Fix problems in CI failures (travis and semaphore)
In the Makefile.am, switched out the fetch (which can have auth problems in certain envs) with a simple branch per @perlpunk++'s suggestion. With the new test branches, travis had a problem in that it only clones one branch and we need the other branch refs to be available. Fixed this by fetching the other branch refs. I also cleaned up the travis YAML file. The Ubuntu 14.04 docker image (used by semaphoreci) had an older git, without the worktree command, so I made it install the latest git from a ppa. Renamed tests/run-tests.sh to tests/run-all-tests.sh for tab completion conflict reasons.
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml35
1 files changed, 21 insertions, 14 deletions
diff --git a/.travis.yml b/.travis.yml
index 8140b72..835a0e9 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,20 +1,27 @@
+language: c
matrix:
include:
- - os: linux
- sudo: required
- compiler: gcc
- - os: linux
- sudo: required
- compiler: clang
- - os: osx
- compiler: gcc
- - os: osx
- compiler: clang
-
-language: c
+ - os: linux
+ compiler: gcc
+ sudo: required
+ - os: linux
+ compiler: clang
+ sudo: required
+ - os: osx
+ compiler: gcc
+ - os: osx
+ compiler: clang
before_install:
-- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then pip install --user scikit-ci-addons==0.15.0; ci_addons travis/install_cmake 3.2.0; fi
-script: tests/run-tests.sh
+# Travis branch-specific clone problem workaround:
+- git config remote.origin.fetch +refs/heads/*:refs/remotes/origin/*
+- git fetch
+
+- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
+ pip install --user scikit-ci-addons==0.15.0;
+ ci_addons travis/install_cmake 3.2.0;
+ fi
+
+script: tests/run-all-tests.sh