From 0bfb95a504ec071b9e0671886a66bf2dd3bde1f8 Mon Sep 17 00:00:00 2001 From: Bruno Pinto Date: Sat, 17 Jan 2015 03:12:44 -0200 Subject: [PATCH] run tests from correct branch on travis --- script/run-tests.fish | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/script/run-tests.fish b/script/run-tests.fish index 39eab3f..bb4ad23 100755 --- a/script/run-tests.fish +++ b/script/run-tests.fish @@ -1,4 +1,10 @@ #!/usr/bin/env fish + +# When running on CI, run tests from the correct branch +if set -q TRAVIS_BRANCH + command git checkout $TRAVIS_BRANCH +end + set -l result 0 for test in (find * -type f -print | grep "spec.fish") fish $test $argv