travis-web/script/ci
Piotr Sarnacki 5fea9d1d7b Change spec runner to qunit
New ember-testing additions can be plugged into qunit without any
changes, so the easiest way to start using it is to rewrite our tests to
qunit.
2013-07-30 17:12:58 +02:00

18 lines
540 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
phantomjs run_qunit.js 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