Skip to content

Commit

Permalink
ci: Update CI scripts to test against current Node release (#453)
Browse files Browse the repository at this point in the history
* ci(.travis.yml): Update Travis to test against current Node release

Added Node-10 to list of Node versions against which to test.

Fixes #452 
Fixes #454

* ci(.travis.yml): Update Travis to test against Node-9.x

Added Node-9 to list of Node versions against which to test. Added file header. Moved "cache" after
install step. Moved "notifications" after deploy pseudo-step.

* ci(appveyor.yml): Rename AppVeyor settings file to use its alternative name

* ci(.appveyor.yml): Update AppVeyor to test against current Node release

Added Node-10 to list of Node versions against which to test. Added file header. Added ability to
skip CI via git commit message. Added ability to stop tests once any job fails.

* ci(.appveyor.yml): Remove "skip_commits" directive

Directive was unnecessary as handled standard. Moved "cache" directive closer to where used in
phase. Moved "branches" directive to bottom to match location in Travis configuration.
  • Loading branch information
plroebuck authored and okonet committed May 25, 2018
1 parent 9e27620 commit a8816f5
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 15 deletions.
28 changes: 18 additions & 10 deletions appveyor.yml → .appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,34 @@
branches:
only:
- master
- next
- /^greenkeeper/.*$/

cache:
- node_modules
- "%LOCALAPPDATA%\\Yarn"
###
### .appveyor.yml
###

environment:
matrix:
- nodejs_version: '10'
- nodejs_version: '8'
- nodejs_version: '6'

matrix:
fast_finish: true

install:
- ps: Install-Product node $env:nodejs_version
- set CI=true
- yarn install

build: off

cache:
- node_modules
- "%LOCALAPPDATA%\\Yarn"

test_script:
- node --version
- yarn --version
- yarn test

build: off
branches:
only:
- master
- next
- /^greenkeeper/.*$/
18 changes: 13 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,20 @@
###
### .travis.yml
###

language: node_js
notifications:
email: false
cache:
yarn: true
directories: node_modules
node_js:
- '10'
- '9'
- '8'
- '6'

before_install: yarn global add greenkeeper-lockfile@1
install: yarn install
cache:
yarn: true
directories:
- node_modules

before_script: greenkeeper-lockfile-update
after_script: greenkeeper-lockfile-upload
Expand All @@ -19,6 +24,9 @@ after_success:
- yarn global add travis-deploy-once@4
- travis-deploy-once "yarn global add semantic-release@12 && semantic-release"

notifications:
email: false

branches:
only:
- master
Expand Down

0 comments on commit a8816f5

Please sign in to comment.