Skip to content

Commit

Permalink
travis stages
Browse files Browse the repository at this point in the history
  • Loading branch information
mbasso committed Feb 6, 2018
1 parent 6e2979e commit f837703
Showing 1 changed file with 35 additions and 28 deletions.
63 changes: 35 additions & 28 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,35 @@
language: node_js
node_js:
- "6"
- "7"
- "8"
- "9"
install: true
script:
- npm install --ignore-scripts
- npm run lint
- npm run test:js
- npm run build
branches:
only:
- master
cache:
directories:
- $HOME/.npm
after_success: npm run test:cov
deploy:
provider: script
script:
- git config --global user.email "${GH_EMAIL}"
- git config --global user.name "${GH_NAME}"
- echo "machine github.com login ${GH_NAME} password ${GH_TOKEN}" > ~/.netrc
- cd website && npm install && GIT_USER="${GH_NAME}" npm run publish-gh-pages
on:
branch: master
jobs:
include:
- stage: Test
language: node_js
node_js:
- "6"
- "7"
- "8"
- "9"
install: true
script:
- npm install --ignore-scripts
- npm run lint
- npm run test:js
- npm run build
branches:
only:
- master
cache:
directories:
- $HOME/.npm
after_success: npm run test:cov
- stage: Deploy website
language: node_js
node_js: "9"
script: skip
deploy:
provider: script
script:
- git config --global user.email "${GH_EMAIL}"
- git config --global user.name "${GH_NAME}"
- echo "machine github.com login ${GH_NAME} password ${GH_TOKEN}" > ~/.netrc
- cd website && npm install && GIT_USER="${GH_NAME}" npm run publish-gh-pages
on:
branch: master

0 comments on commit f837703

Please sign in to comment.