2016-10-13 14:54:07 -04:00
|
|
|
language: node_js
|
|
|
|
node_js:
|
2018-06-14 13:40:13 -04:00
|
|
|
- 8
|
2017-04-17 20:25:05 -04:00
|
|
|
- node
|
2018-06-08 11:18:22 -04:00
|
|
|
env:
|
|
|
|
matrix:
|
|
|
|
- NPM_SCRIPT="tap -- --jobs=4"
|
2016-10-13 14:54:07 -04:00
|
|
|
cache:
|
|
|
|
directories:
|
|
|
|
- node_modules
|
2018-06-08 11:18:22 -04:00
|
|
|
script: npm run $NPM_SCRIPT
|
|
|
|
jobs:
|
|
|
|
include:
|
|
|
|
- env: NPM_SCRIPT=build
|
2018-06-14 13:40:13 -04:00
|
|
|
node_js: 8
|
|
|
|
if: not (branch in (master, develop) and type != pull_request)
|
2018-06-08 11:18:22 -04:00
|
|
|
- env: NPM_SCRIPT=lint
|
2018-06-14 13:40:13 -04:00
|
|
|
node_js: 8
|
|
|
|
- stage: release
|
|
|
|
node_js: 8
|
2018-06-14 13:56:18 -04:00
|
|
|
env: NPM_SCRIPT=build
|
2018-06-14 13:40:13 -04:00
|
|
|
before_deploy:
|
|
|
|
- npm --no-git-tag-version version 0.1.0-prerelease.$(date +%Y%m%d%H%M%S)
|
|
|
|
deploy:
|
|
|
|
- provider: npm
|
|
|
|
on:
|
|
|
|
all_branches: true
|
2018-06-14 13:56:18 -04:00
|
|
|
skip_cleanup: true
|
2018-06-14 13:40:13 -04:00
|
|
|
email: $NPM_EMAIL
|
|
|
|
api_key: $NPM_TOKEN
|
|
|
|
stages:
|
|
|
|
- test
|
|
|
|
- name: release
|
|
|
|
if: branch in (master, develop) and type != pull_request
|