travis-web/script/ci
Henrik Hodne 3df9ee9723 Fix the CI script
The [ function doesn't support "&&" (you need [[ for that).

Also added an echo statement to inform that no tests were run if no if
statements matched.
2013-05-28 14:33:28 +02:00

18 lines
538 B
Bash
Executable File

#!/bin/bash
if [ "$TEST_SUITE" == "ruby" ]; then
bundle exec rspec spec
elif [ "$TEST_SUITE" == "phantomjs" ]; then
bundle exec rackup -s puma -p 5000 -D
sleep 3
./run_jasmine.coffee http://localhost:5000/spec.html
elif [ "$TRAVIS_SECURE_ENV_VARS" == "true" -a "$TEST_SUITE" == "saucelabs" ]; then
bundle exec rackup -s puma -p 5000 -D
sleep 3
curl https://gist.github.com/santiycr/5139565/raw/sauce_connect_setup.sh | bash
gem install selenium-webdriver
ruby script/saucelabs.rb
else
echo "Not running any tests"
fi