Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update stages and build matrices #3308

Merged
merged 8 commits into from
Apr 4, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
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
90 changes: 47 additions & 43 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,44 +1,60 @@
# trusty dist provides a modern build chain (as opposed to 'precise' dist)
# which absolves us from having to install compilers and stuff
dist: trusty
# 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'
cache:
directories:
- ~/.npm
- node_modules

matrix:
fast_finish: true
jobs:
include:
- script: COVERAGE=1 npm start test.node
after_success: npm start coveralls

before_install: scripts/travis-before-install.sh
- &node
script: npm start test.node
node_js: '8'
cache: false

before_script: scripts/travis-before-script.sh
- <<: *node
node_js: '6'

- <<: *node
node_js: '4'

- script: npm start test.bundle test.browser
before_script: mkdir -p .karma
addons:
artifacts:
paths:
- .karma/
- ./mocha.js
chrome: stable
sauce_connect: true

jobs:
include:
- stage: lint
script: npm start lint

- &smoke
stage: smoke
env: NPM_CONFIG_PRODUCTION=1
script: ./bin/mocha --opts /dev/null --reporter spec test/sanity/sanity.spec.js
cache: false

- <<: *smoke
node_js: '8'
env: TARGET=lint
script: npm start $TARGET
- stage: test
node_js: '9'
env: TARGET=test.node COVERAGE=true
script: npm start $TARGET
- node_js: '8'
env: TARGET=test.node
script: npm start $TARGET
- node_js: '6'
env: TARGET=test.node
script: npm start $TARGET
- node_js: '4'
env: TARGET=test.node
script: npm start $TARGET
- node_js: '8'
env: TARGET=test.browser
script: npm start $TARGET

stages:
- lint
- test
- <<: *smoke
node_js: '6'

after_success: npm start coveralls
- <<: *smoke
node_js: '4'

notifications:
email: false
Expand All @@ -49,15 +65,3 @@ notifications:
- secure: rGMGYWBaZgEa9i997jJHKzjI8WxECqLi6BqsMhvstDq9EeTeXkZFVfz4r6G3Xugsk3tFwb/pDpiYo1OK36kA5arUJTCia51u4Wn+c7lHKcpef/vXztoyucvw6/jXdVm/FQz1jztYYbqdyAOWC2BV8gYvg5F8TpK05UGCe5R0bRA=
on_success: change
on_failure: always

addons:
artifacts:
paths:
- .karma/
- ./mocha.js
sauce_connect: true
chrome: stable
cache:
directories:
- ~/.npm
- node_modules
16 changes: 8 additions & 8 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 0 additions & 9 deletions scripts/travis-before-install.sh

This file was deleted.

4 changes: 0 additions & 4 deletions scripts/travis-before-script.sh

This file was deleted.