travis-web/script/ci
Nick Schonning 0f643851c7 Only run Saucelabs test with secure variables
This is intended to short circut PRs so that they don't get marked as
failed when they don't have access to the Sauce vars.
2013-05-28 01:06:23 -04:00

16 lines
502 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" && "$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
fi