Skip to content

Commit

Permalink
ci(travis): add build stages
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-ciniawsky committed Aug 23, 2018
1 parent a410ea2 commit a49bf8b
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 371 deletions.
28 changes: 20 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,25 @@
sudo: false
language: node_js

node_js:
- '9'
- '8'
- '6'
jobs:
fast_finish: true
include:
- stage: Lint
env: SCRIPT=lint
node_js: 'stable'
- &test
stage: Test
env: SCRIPT=test
node_js: 'stable'
- <<: *test
node_js: 'lts/*'
- <<: *test
node_js: 6

script:
npm run ci
script: npm run $SCRIPT

after_success:
npm run cover
- npm i codecov
- $(npm bin)/codecov

notifications:
email: false
15 changes: 9 additions & 6 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,27 @@
build: 'off'

init:
- git config --global core.autocrlf input

environment:
matrix:
- nodejs_version: '9'
- nodejs_version: '10'
webpack_version: latest
- nodejs_version: '8'
webpack_version: latest
- nodejs_version: '6'
webpack_version: latest
build: 'off'

matrix:
fast_finish: true

install:
- ps: Install-Product node $env:nodejs_version x64
- npm i -g npm@latest
- npm install

before_test:
- cmd: npm install webpack@%webpack_version%
- cmd: npm i webpack@%webpack_version%

test_script:
- node --version
- npm --version
- cmd: npm run ci
- cmd: npm t
Loading

0 comments on commit a49bf8b

Please sign in to comment.