Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
more aliases
Signed-off-by: Christopher Hiller <[email protected]>
  • Loading branch information
boneskull committed Apr 4, 2018
commit 2b0e286632203d60defb51cec943c5078ac2de52
54 changes: 37 additions & 17 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,40 @@
language: node_js
# these are executed in order. each must pass for the next to be run
stages:
- smoke # this ensures a "user" install works properly
- lint # lint code and docs
- test # all tests

# defaults
language: node_js
node_js: '9'
script: npm start test.node
cache:
directories:
- ~/.npm
- node_modules

jobs:
include:
- script: COVERAGE=1 npm start test.node
after_success: npm start coveralls
- node_js: '8'
- node_js: '6'
- node_js: '4'

- &node
script: npm start test.node

- <<: *node
node_js: '8'

- <<: *node
cache: &cache-old-npm
directories:
- node_modules
node_js: '6'

- <<: *node
cache: *cache-old-npm
node_js: '4'

- script: npm start test.bundle

- script: npm start test.browser
before_script: mkdir -p .karma
addons:
Expand All @@ -20,25 +43,27 @@ jobs:
- .karma/
- ./mocha.js
chrome: stable
sauce_connect: true

- stage: lint
script: npm start lint

- &smoke
stage: smoke
env: SMOKE=1 # just busts the cache
install: npm install --production
env: NPM_CONFIG_PRODUCTION=1
script: ./bin/mocha --opts /dev/null --reporter spec test/sanity/sanity.spec.js

- <<: *smoke
node_js: '8'

- <<: *smoke
cache: *cache-old-npm
node_js: '6'

- <<: *smoke
cache: *cache-old-npm
node_js: '4'

stages:
- smoke # this ensures a "user" install works properly
- lint # lint code and docs
- test # all tests

notifications:
email: false
urls:
Expand All @@ -48,8 +73,3 @@ notifications:
- secure: rGMGYWBaZgEa9i997jJHKzjI8WxECqLi6BqsMhvstDq9EeTeXkZFVfz4r6G3Xugsk3tFwb/pDpiYo1OK36kA5arUJTCia51u4Wn+c7lHKcpef/vXztoyucvw6/jXdVm/FQz1jztYYbqdyAOWC2BV8gYvg5F8TpK05UGCe5R0bRA=
on_success: change
on_failure: always

cache:
directories:
- ~/.npm
- node_modules
2 changes: 1 addition & 1 deletion karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ module.exports = config => {
sauceConfig = {
build: `TRAVIS #${env.TRAVIS_BUILD_NUMBER} (${env.TRAVIS_BUILD_ID})`,
tunnelIdentifier: env.TRAVIS_JOB_NUMBER,
startConnect: true
startConnect: false
};
console.error('Configured SauceLabs');
} else {
Expand Down