From 52b6634fb39a09c71782caf50005f0f23d2cec95 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ingy=20d=C3=B6t=20Net?= Date: Thu, 29 Dec 2016 15:19:30 -0600 Subject: [PATCH] Move Travis CI steps into a Bash script This allows us to run the same Travis testing locally. Examples: ./tests/run-tests.sh --- .travis.yml | 10 +--------- tests/run-tests.sh | 30 ++++++++++++++++++++++++++++++ 2 files changed, 31 insertions(+), 9 deletions(-) create mode 100755 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 "$@" -- 2.45.1