Add node specs to the Travis build

This commit is contained in:
JR Boyens
2013-07-26 12:28:11 -07:00
parent 358b9424b5
commit d10b93cd28
4 changed files with 17 additions and 10 deletions

View File

@@ -3,18 +3,22 @@ before_install:
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
before_script:
- curl https://gist.github.com/santiycr/5139565/raw/sauce_connect_setup.sh | bash
script: DISPLAY=:99.0 bundle exec rake core_spec
- test $USE_SAUCE == "true" && curl https://gist.github.com/santiycr/5139565/raw/sauce_connect_setup.sh | bash
script: $TEST_COMMAND
language: ruby
rvm: 1.9.3
env:
global:
- USE_SAUCE=true
- NOKOGIRI_USE_SYSTEM_LIBRARIES=true
- TEST_COMMAND="bash travis-core-script.sh"
- secure: WSPWhlnC4mWSnSPquX+m1/BCu5ch5NygkaHuM2Nea7lD8oS3XLX8QncZZAsQ4lnNfqoDDuBOizG0AESiqNvE4y6x5qvLLTS6q+ce255ZEMZ71TBdZgDEEvGMEjOPPsVXiXyTQOP1lwOPlrbZvaPgWV7e11KIBab6DfFcQpnvDgo=
- secure: SW7CJhZnwaNT749Gdnhvqb5rbXlAOsygUAzh9qhtyvbqXKkmJdBIEsO01YF6pbju1X2twE9JvWCOxeZju43NgQChJlPsGbjY2j3k/TdQeTAJesQe2K7ytwghunI30gjEovtRH0T3w1EmcKPH8yj5eBIcB2OYoJHx8KEC7e68q1g=
matrix:
include:
- env:
- USE_SAUCE=false
- TEST_COMMAND="bash travis-node-script.sh"
- env:
- JASMINE_BROWSER="firefox"
- SAUCE_PLATFORM="Linux"

View File

@@ -1,8 +0,0 @@
#!/bin/bash -e
sudo apt-get update
sudo apt-get install chromium-browser
wget https://chromedriver.googlecode.com/files/chromedriver_linux64_2.1.zip
unzip chromedriver_linux64_2.1.zip
sudo mv chromedriver /usr/local/bin/
sudo chmod +x /usr/local/bin/chromedriver

5
travis-core-script.sh Normal file
View File

@@ -0,0 +1,5 @@
#!/bin/bash -e
export DISPLAY=:99.0
bundle exec rake core_spec

6
travis-node-script.sh Normal file
View File

@@ -0,0 +1,6 @@
#!/bin/bash -e
npm install -g grunt-cli
npm install
grunt execSpecsInNode