Skip to content

Commit

Permalink
testing new travis structure
Browse files Browse the repository at this point in the history
  • Loading branch information
mansona committed Jul 22, 2019
1 parent fafb0ef commit 1d85d6d
Showing 1 changed file with 21 additions and 20 deletions.
41 changes: 21 additions & 20 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,20 @@
language: node_js
node_js:
- "10"

branches:
only:
- master
# branches:
# only:
# - master

jobs:
fail_fast: true

matrix:
include:
- node_js: 8
os: linux
- node_js: 10
os: linux
- stage: "Tests"
name: "Tests"
script:
- npm run lint:js
- npm test
before_script:
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter
Expand All @@ -18,23 +23,19 @@ matrix:
after_script:
- npm run coverage
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
- node_js: 8
os: windows
script: npm test
- node_js: 10
os: windows
script: npm test

- stage: "All OS and Node versions"
node_js:
- 8
- 10
- 12
os:
- linux
- windows

env:
global:
- CC_TEST_REPORTER_ID=e86c6de11dd97ad1777b3212cddc0367b150816025083150839f687b7fbce7f9

before_install:
- npm config --global set spin false
# if npm version is less than 5, upgrade to 6
- if [[ $(npm -v | cut -d '.' -f 1) -lt 5 ]]; then npm i -g npm@6; fi

script:
- npm run lint:js
- npm test

0 comments on commit 1d85d6d

Please sign in to comment.