From: Ingy döt Net Date: Thu, 29 Dec 2016 21:19:30 +0000 (-0600) Subject: Move Travis CI steps into a Bash script X-Git-Tag: upstream/0.2.1^2~30 X-Git-Url: http://andersk.mit.edu/gitweb/libyaml.git/commitdiff_plain/52b6634fb39a09c71782caf50005f0f23d2cec95?hp=90d6ba3ca17010820135cd81e856728b94c7bba4 Move Travis CI steps into a Bash script This allows us to run the same Travis testing locally. Examples: ./tests/run-tests.sh --- 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 "$@"