Skip to content

Commit

Permalink
ci(travis): add build stages (#1467)
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-ciniawsky authored Aug 26, 2018
1 parent b445b68 commit c760c44
Show file tree
Hide file tree
Showing 4 changed files with 2,744 additions and 371 deletions.
14 changes: 9 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
.DS_Store

npm-debug.log

.idea
.nyc_output

client
coverage
ssl/*.pem
node_modules
/client
/coverage
/ssl/*.pem
.idea/
.DS_Store
47 changes: 33 additions & 14 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,38 @@
sudo: false
branches:
only:
- master
language: node_js

language:
node_js
jobs:
fast_finish: true
include:
- stage: Lint
env: SCRIPT=lint
node_js: 'stable'
- &linux
stage: Test (Linux)
env: SCRIPT=test
node_js: 'stable'
- <<: *linux
node_js: 'lts/*'
- <<: *linux
node_js: 6
- &osx
stage: Test (MacOS)
os: 'osx'
env: SCRIPT=test
node_js: 'stable'
- <<: *osx
node_js: 'lts/*'
- <<: *osx
node_js: 6

node_js:
- '8'
- '6'
install:
- npm i -g npm@latest
- npm i

script:
npm run ci
script: npm run $SCRIPT

after_success:
- npm i -g codecov
- cat ./coverage/coverage.json | codecov
- rm -rf ./coverage
- npm i codecov
- $(npm bin)/codecov

notifications:
email: false
Loading

0 comments on commit c760c44

Please sign in to comment.