Skip to content

Commit

Permalink
chore(travis): Test against a variety of node_js versions. Properly.
Browse files Browse the repository at this point in the history
Fine. Do this the verbose way...
  • Loading branch information
randytarampi committed Jan 8, 2020
1 parent 774375e commit 12f3fef
Showing 1 changed file with 47 additions and 13 deletions.
60 changes: 47 additions & 13 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,6 @@ matrix:
- node_js: 10
- node_js: node
- node_js: lts/*
node_js:
- 6
- 8
- 10
- 12
- lts/*
- node
env:
global:
- CPUS_COUNT=4
Expand Down Expand Up @@ -48,24 +41,65 @@ stages:
jobs:
include:
- stage: Test
env:
node_js: 12
env: &1
- NODE_ENV=test
before_script:
before_script: &2
- yarn run pretest
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64
> ./cc-test-reporter
- chmod +x ./cc-test-reporter
- "./cc-test-reporter before-build"
script:
script: &3
- yarn run cover:actual
after_script:
after_script: &4
- yarn run cover:collect
- yarn run coveralls
- "./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT"
after_failure:
after_failure: &5
- yarn run kill --scope @randy.tarampi/service
after_success:
after_success: &6
- yarn run coveralls
- stage: Test
node_js: 6
env: *1
before_script: *2
script: *3
after_script: *4
after_failure: *5
after_success: *6
- stage: Test
node_js: 8
env: *1
before_script: *2
script: *3
after_script: *4
after_failure: *5
after_success: *6
- stage: Test
node_js: 10
env: *1
before_script: *2
script: *3
after_script: *4
after_failure: *5
after_success: *6
- stage: Test
node_js: node
env: *1
before_script: *2
script: *3
after_script: *4
after_failure: *5
after_success: *6
- stage: Test
node_js: lts/*
env: *1
before_script: *2
script: *3
after_script: *4
after_failure: *5
after_success: *6
- stage: Release
name: GitHub
node_js: '12'
Expand Down

0 comments on commit 12f3fef

Please sign in to comment.