Skip to content

Commit

Permalink
Disable sauce_connect addon (since it runs for every test) and use …
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Feb 25, 2015
1 parent 984441d commit 475df55
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 4 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@ before_install:
- '[ "${TRAVIS_RUN_SAUCE}" != "true" ] || npm install -g grunt-cli'
script:
- 'if [ "${TRAVIS_RUN_SAUCE}" == "true" ]; then npm run sauce ; elif [ "${TRAVIS_NODE_VERSION}" != "0.11" ] && [ "${TRAVIS_NODE_VERSION}" != "0.10" ]; then npm run test-shim && npm run test-sham ; else npm test ; fi'
addons:
sauce_connect: true
# NOTE: sauce_connect is disabled, because it applies to every test and we only need it on one of them.
# It's available inside `npm run sauce`
# addons:
# sauce_connect: true
matrix:
fast_finish: true
include:
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@
"minify": "npm run minify-shim && npm run minify-sham",
"minify-shim": "uglifyjs es6-shim.js --comments --source-map=es6-shim.map -m -b ascii_only=true,beautify=false > es6-shim.min.js",
"minify-sham": "uglifyjs es6-sham.js --comments --source-map=es6-sham.map -m -b ascii_only=true,beautify=false > es6-sham.min.js",
"sauce": "grunt sauce"
"sauce-connect": "curl -L https://gist.githubusercontent.com/henrikhodne/9322897/raw/sauce-connect.sh | bash && export TRAVIS_SAUCE_CONNECT=true",
"sauce": "npm run sauce-connect && grunt sauce"
},
"testling": {
"html": "testling.html",
Expand Down

0 comments on commit 475df55

Please sign in to comment.