From 20b40a5441a112b49134d73b4a529f2ef3692521 Mon Sep 17 00:00:00 2001 From: "Edward Z. Yang" Date: Wed, 20 Jul 2016 22:21:24 -0700 Subject: [PATCH] Travis support. Signed-off-by: Edward Z. Yang --- .travis.yml | 11 ++++++++ test-settings.travis.php | 72 ++++++++++++++++++++++++++++++++++++++++++++++++ tests/index.php | 8 +++++- 3 files changed, 90 insertions(+), 1 deletion(-) create mode 100644 .travis.yml create mode 100644 test-settings.travis.php diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 00000000..1cd24758 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,11 @@ +language: php +php: + - '5.4' + - '5.5' + - '5.6' + - '7.0' +before_script: + - git clone --depth=50 https://github.com/ezyang/simpletest.git + - cp test-settings.travis.php test-settings.php +script: + - php tests/index.php diff --git a/test-settings.travis.php b/test-settings.travis.php new file mode 100644 index 00000000..b1edce4a --- /dev/null +++ b/test-settings.travis.php @@ -0,0 +1,72 @@ +makeDry(); -$test->run($reporter); +$result = $test->run($reporter); + +if ($result) { + exit(0); // Success! +} else { + exit(1); // Abject failure. +} // vim: et sw=4 sts=4 -- 2.11.4.GIT