Rename TEST_SUITEs to ruby, phantomjs and saucelabs

This commit is contained in:
Piotr Sarnacki 2013-03-28 11:43:49 +01:00
parent d01213ef94
commit bf2c9f5821
2 changed files with 7 additions and 7 deletions

View File

@ -14,10 +14,10 @@ env:
- secure: "sW8X/OxQQnCfSWfo5uho8os/4eV8Y3QWOx5LdhqcmOxb4KLlQkndRNNqz+DF\nKynSgnSpty2uvol6611J9RDPEVn6cZw7EFQj/EO7NRVQC8uD+8LtT/2C2J8L\nc/bf7sQqpAkDq9MOEub/A6R4jIk043lGQ4IyWAQmGlETMQ2Q/K0="
- secure: "XCGOrMQHDR59KARYeN2GaAkDQKwq2nW9okEFMaKEH1AuUFFcU4hHAsunNeXe\nwSHu4Dpo/CioI2EKQpxL8nwMUPsx3HaY/2W8ef1YPvhU1GuSyiPDW0va8sV7\nBmZf1b26ktrzqaYDxyJjwe1EKrzfZx0LPV0MNU6wSWdHILthPY8="
matrix:
- "TEST_SUITE=spec"
- "TEST_SUITE=ember"
- "TEST_SUITE=browser BROWSER='firefox:19:Windows 2012'"
- "TEST_SUITE=browser BROWSER='chrome::Windows 2008'"
- "TEST_SUITE=ruby"
- "TEST_SUITE=phantomjs"
- "TEST_SUITE=saucelabs BROWSER='firefox:19:Windows 2012'"
- "TEST_SUITE=saucelabs BROWSER='chrome::Windows 2008'"
script: "script/ci"
after_script:

View File

@ -1,12 +1,12 @@
#!/bin/bash
if [ "$TEST_SUITE" == "spec" ]; then
if [ "$TEST_SUITE" == "ruby" ]; then
bundle exec rspec spec
elif [ "$TEST_SUITE" == "ember" ]; then
elif [ "$TEST_SUITE" == "phantomjs" ]; then
bundle exec rackup -s puma -p 5000 -D
sleep 3
./run_jasmine.coffee http://localhost:5000/spec.html
elif [ "$TEST_SUITE" == "browser" ]; then
elif [ "$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