diff options
author | Ingy döt Net <ingy@ingy.net> | 2016-12-29 15:19:30 -0600 |
---|---|---|
committer | Ian Cordasco <graffatcolmingov@gmail.com> | 2016-12-29 19:09:53 -0600 |
commit | 52b6634fb39a09c71782caf50005f0f23d2cec95 (patch) | |
tree | 04abcf43cf8f54b3d404c376fd47a6d5cab92d4a | |
parent | 90d6ba3ca17010820135cd81e856728b94c7bba4 (diff) | |
download | libyaml-git-52b6634fb39a09c71782caf50005f0f23d2cec95.tar.gz |
Move Travis CI steps into a Bash script
This allows us to run the same Travis testing locally.
Examples:
./tests/run-tests.sh
-rw-r--r-- | .travis.yml | 10 | ||||
-rwxr-xr-x | tests/run-tests.sh | 30 |
2 files changed, 31 insertions, 9 deletions
diff --git a/.travis.yml b/.travis.yml index dada04b..e789986 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,12 +8,4 @@ compiler: - clang - gcc -script: -- ./bootstrap -- ./configure -- make test-all -- make distclean -- cmake . -- make -- make test -- make clean +script: tests/run-tests.sh diff --git a/tests/run-tests.sh b/tests/run-tests.sh new file mode 100755 index 0000000..6ef04a1 --- /dev/null +++ b/tests/run-tests.sh @@ -0,0 +1,30 @@ +#!/bin/sh + +set -e + +main() { + bootstrap + + make test-all + + clean + + cmake . + + make + make test +} + +bootstrap() { + clean + + ./bootstrap + ./configure +} + +clean() { + git clean -d -x -f + rm -fr libyaml-test +} + +main "$@" |