scratch-audio/.travis.yml

35 lines
709 B
YAML
Raw Normal View History

2016-10-13 14:54:07 -04:00
language: node_js
node_js:
- 8
- node
env:
matrix:
- NPM_SCRIPT="tap -- --jobs=4"
2016-10-13 14:54:07 -04:00
cache:
directories:
- node_modules
script: npm run $NPM_SCRIPT
jobs:
include:
- env: NPM_SCRIPT=build
node_js: 8
if: not (branch in (master, develop) and type != pull_request)
- env: NPM_SCRIPT=lint
node_js: 8
- stage: release
node_js: 8
env: NPM_SCRIPT=build
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
skip_cleanup: true
email: $NPM_EMAIL
api_key: $NPM_TOKEN
stages:
- test
- name: release
if: branch in (master, develop) and type != pull_request