Tone.js/.travis.yml

58 lines
1.2 KiB
YAML
Raw Normal View History

2017-08-30 13:45:22 +00:00
sudo: false
dist: trusty
language: node_js
node_js:
2017-09-09 22:32:31 +00:00
- '8'
env:
- BROWSER=chrome
- BROWSER=firefox
2017-08-31 17:28:36 +00:00
addons:
chrome: stable
2017-10-26 18:11:47 +00:00
firefox: latest
2016-03-04 21:49:28 +00:00
before_script:
2017-09-09 22:32:31 +00:00
- cd gulp
- npm install -g jsdoc
- npm install -g karma
- npm install -g gulp
- npm install
- git config --global user.email "travis@travis-ci.org"
- git config --global user.name "Travis CI"
2017-08-30 18:42:04 +00:00
script: gulp travis-test
2017-09-09 22:32:31 +00:00
before_deploy:
2017-12-27 23:30:45 +00:00
- sh success.sh
2017-09-09 22:32:31 +00:00
- node increment_version.js
2017-09-09 22:37:32 +00:00
- cd ../
2017-12-27 23:20:40 +00:00
jobs:
include:
- stage: deploy
script: skip
deploy:
- provider: npm
skip_cleanup: true
email: yotammann@gmail.com
api_key: $NPM_TOKEN
tag: next
on:
repo: Tonejs/Tone.js
branch: dev
# publish without @next when pushing on master
- provider: npm
skip_cleanup: true
email: yotammann@gmail.com
api_key: $NPM_TOKEN
on:
repo: Tonejs/Tone.js
branch: master
# publish build files for releases
- provider: releases
api-key: $GH_TOKEN
file_glob: true
file: build/*
skip_cleanup: true
on:
tags: true
2017-11-29 20:46:31 +00:00
# cache node_modules to speed up build
cache:
directories:
- node_modules