2018-12-19 16:06:57 -05:00
|
|
|
language: node_js
|
2018-12-04 15:37:41 -05:00
|
|
|
node_js:
|
|
|
|
- 8
|
|
|
|
- node
|
|
|
|
cache:
|
|
|
|
directories:
|
2018-12-19 16:06:57 -05:00
|
|
|
- node_modules
|
2018-12-04 15:37:41 -05:00
|
|
|
install:
|
2018-12-19 16:06:57 -05:00
|
|
|
- npm install
|
|
|
|
script:
|
|
|
|
- commitlint-travis
|
|
|
|
- npm run build
|
|
|
|
- npm run test
|
|
|
|
before_deploy:
|
|
|
|
- git config --global user.email "$(git log --pretty=format:"%ae" -n1)"
|
|
|
|
- git config --global user.name "$(git log --pretty=format:"%an" -n1)"
|
|
|
|
deploy:
|
2018-12-20 11:37:55 -05:00
|
|
|
- provider: script
|
2018-12-19 16:06:57 -05:00
|
|
|
on:
|
|
|
|
branch: develop
|
2018-12-20 10:54:16 -05:00
|
|
|
node: '8'
|
2018-12-19 16:06:57 -05:00
|
|
|
skip_cleanup: true
|
|
|
|
email: $NPM_EMAIL
|
|
|
|
api_key: $NPM_TOKEN
|
|
|
|
script: npm run semantic-release
|
|
|
|
- provider: script
|
|
|
|
on:
|
|
|
|
all_branches: true
|
2018-12-20 10:54:16 -05:00
|
|
|
node: '8'
|
2018-12-19 16:06:57 -05:00
|
|
|
skip_cleanup: true
|
|
|
|
script: npm run deploy -- -x -e $TRAVIS_BRANCH -r https://${GH_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git
|