Add node specs to the Travis build
This commit is contained in:
+6
-2
@@ -3,18 +3,22 @@ before_install:
|
|||||||
- export DISPLAY=:99.0
|
- export DISPLAY=:99.0
|
||||||
- sh -e /etc/init.d/xvfb start
|
- sh -e /etc/init.d/xvfb start
|
||||||
before_script:
|
before_script:
|
||||||
- curl https://gist.github.com/santiycr/5139565/raw/sauce_connect_setup.sh | bash
|
- test $USE_SAUCE == "true" && curl https://gist.github.com/santiycr/5139565/raw/sauce_connect_setup.sh | bash
|
||||||
script: DISPLAY=:99.0 bundle exec rake core_spec
|
script: $TEST_COMMAND
|
||||||
language: ruby
|
language: ruby
|
||||||
rvm: 1.9.3
|
rvm: 1.9.3
|
||||||
env:
|
env:
|
||||||
global:
|
global:
|
||||||
- USE_SAUCE=true
|
- USE_SAUCE=true
|
||||||
- NOKOGIRI_USE_SYSTEM_LIBRARIES=true
|
- NOKOGIRI_USE_SYSTEM_LIBRARIES=true
|
||||||
|
- TEST_COMMAND="bash travis-core-script.sh"
|
||||||
- secure: WSPWhlnC4mWSnSPquX+m1/BCu5ch5NygkaHuM2Nea7lD8oS3XLX8QncZZAsQ4lnNfqoDDuBOizG0AESiqNvE4y6x5qvLLTS6q+ce255ZEMZ71TBdZgDEEvGMEjOPPsVXiXyTQOP1lwOPlrbZvaPgWV7e11KIBab6DfFcQpnvDgo=
|
- secure: WSPWhlnC4mWSnSPquX+m1/BCu5ch5NygkaHuM2Nea7lD8oS3XLX8QncZZAsQ4lnNfqoDDuBOizG0AESiqNvE4y6x5qvLLTS6q+ce255ZEMZ71TBdZgDEEvGMEjOPPsVXiXyTQOP1lwOPlrbZvaPgWV7e11KIBab6DfFcQpnvDgo=
|
||||||
- secure: SW7CJhZnwaNT749Gdnhvqb5rbXlAOsygUAzh9qhtyvbqXKkmJdBIEsO01YF6pbju1X2twE9JvWCOxeZju43NgQChJlPsGbjY2j3k/TdQeTAJesQe2K7ytwghunI30gjEovtRH0T3w1EmcKPH8yj5eBIcB2OYoJHx8KEC7e68q1g=
|
- secure: SW7CJhZnwaNT749Gdnhvqb5rbXlAOsygUAzh9qhtyvbqXKkmJdBIEsO01YF6pbju1X2twE9JvWCOxeZju43NgQChJlPsGbjY2j3k/TdQeTAJesQe2K7ytwghunI30gjEovtRH0T3w1EmcKPH8yj5eBIcB2OYoJHx8KEC7e68q1g=
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
|
- env:
|
||||||
|
- USE_SAUCE=false
|
||||||
|
- TEST_COMMAND="bash travis-node-script.sh"
|
||||||
- env:
|
- env:
|
||||||
- JASMINE_BROWSER="firefox"
|
- JASMINE_BROWSER="firefox"
|
||||||
- SAUCE_PLATFORM="Linux"
|
- SAUCE_PLATFORM="Linux"
|
||||||
|
|||||||
@@ -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
|
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
#!/bin/bash -e
|
||||||
|
|
||||||
|
export DISPLAY=:99.0
|
||||||
|
|
||||||
|
bundle exec rake core_spec
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
#!/bin/bash -e
|
||||||
|
|
||||||
|
npm install -g grunt-cli
|
||||||
|
npm install
|
||||||
|
|
||||||
|
grunt execSpecsInNode
|
||||||
Reference in New Issue
Block a user