diff options
author | Ingy döt Net <ingy@ingy.net> | 2018-01-06 00:03:42 -0800 |
---|---|---|
committer | Ingy döt Net <ingy@ingy.net> | 2018-01-06 14:39:12 -0800 |
commit | aa10f65706b474987d17a6b66ae087f823758e6f (patch) | |
tree | ed824924fe2a412198b33dfc46b73865646a8a31 /tests/run-all-tests.sh | |
parent | e4aee06ff401668404de21b4af4c6a90be0f35a6 (diff) | |
download | libyaml-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 'tests/run-all-tests.sh')
-rwxr-xr-x | tests/run-all-tests.sh | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/tests/run-all-tests.sh b/tests/run-all-tests.sh new file mode 100755 index 0000000..9c92741 --- /dev/null +++ b/tests/run-all-tests.sh @@ -0,0 +1,29 @@ +#!/bin/sh + +set -e + +main() { + # Autoconf based in-source build and tests + clean + + ./bootstrap + ./configure + make test-all + + # CMake based in-source build and tests + clean + + cmake . + make + make test + + clean +} + +clean() { + git clean -d -x -f + rm -fr tests/run-test-suite + git worktree prune +} + +main "$@" |