Skip to content

Commit

Permalink
ci: small improve (#1669)
Browse files Browse the repository at this point in the history
  • Loading branch information
evilebottnawi committed Feb 19, 2019
1 parent 252ea4f commit d9d308d
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 20 deletions.
42 changes: 26 additions & 16 deletions .travis.yml
@@ -1,20 +1,27 @@
sudo: false

git:
depth: 10

branches:
only:
- master
- next
-
language: node_js

cache:
directories:
- node_modules
- $HOME/.npm

jobs:
matrix:
fast_finish: true
include:
- stage: Lint
env: SCRIPT=lint
node_js: 'stable'
- env: JOB_PART=lint
node_js: 11
- &linux
stage: Test (Linux)
env: SCRIPT=test
node_js: 'stable'
- <<: *linux
env: JOB_PART=test
node_js: 11
- <<: *linux
node_js: 10
Expand All @@ -23,9 +30,8 @@ jobs:
- <<: *linux
node_js: 6
- &osx
stage: Test (MacOS)
os: 'osx'
env: SCRIPT=test
env: JOB_PART=test
node_js: 11
- <<: *osx
node_js: 10
Expand All @@ -34,15 +40,19 @@ jobs:
- <<: *osx
node_js: 6

install:
before_install:
- npm i -g npm@latest
- npm i

script: npm run $SCRIPT
install:
- npm ci

before_script:
- node --version
- npm --version

script:
- npm run $SCRIPT

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

notifications:
email: false
16 changes: 12 additions & 4 deletions appveyor.yml
@@ -1,11 +1,17 @@
build: 'off'

cache:
- node_modules
branches:
only:
- master
- next

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

cache:
- node_modules
- '%APPDATA%\npm-cache'

environment:
matrix:
- nodejs_version: '11'
Expand All @@ -23,10 +29,12 @@ matrix:
install:
- ps: Install-Product node $env:nodejs_version x64
- npm i -g npm@latest
- npm i
- npm ci

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

test_script:
- cmd: npm t
- node --version
- npm --version
- cmd: npm test

0 comments on commit d9d308d

Please sign in to comment.