2017-08-30 13:45:22 +00:00
|
|
|
sudo: false
|
|
|
|
dist: trusty
|
|
|
|
language: node_js
|
|
|
|
node_js:
|
2020-03-22 02:36:16 +00:00
|
|
|
- '11'
|
2018-05-18 17:35:58 +00:00
|
|
|
install:
|
2018-06-06 02:51:08 +00:00
|
|
|
- npm install
|
2017-09-09 22:32:31 +00:00
|
|
|
- git config --global user.email "travis@travis-ci.org"
|
|
|
|
- git config --global user.name "Travis CI"
|
2019-02-01 15:17:35 +00:00
|
|
|
script:
|
2019-06-19 14:25:17 +00:00
|
|
|
- npm run test
|
2019-02-01 15:17:35 +00:00
|
|
|
- npm run codecov
|
2019-01-28 17:43:20 +00:00
|
|
|
before_deploy:
|
2019-11-07 20:46:12 +00:00
|
|
|
- npm run test:node
|
2019-01-28 17:43:20 +00:00
|
|
|
- npm run increment
|
2019-09-16 00:59:05 +00:00
|
|
|
- npm run docs
|
2017-12-27 23:20:40 +00:00
|
|
|
jobs:
|
|
|
|
include:
|
2017-12-29 17:52:30 +00:00
|
|
|
- stage: test
|
|
|
|
env : BROWSER=chrome
|
|
|
|
os: linux
|
|
|
|
addons:
|
|
|
|
chrome: stable
|
2018-05-19 15:57:06 +00:00
|
|
|
- stage: test
|
|
|
|
env : BROWSER=chrome
|
|
|
|
os: linux
|
|
|
|
addons:
|
|
|
|
chrome: beta
|
|
|
|
- stage: test
|
|
|
|
env : BROWSER=firefox
|
|
|
|
os: linux
|
|
|
|
addons:
|
|
|
|
firefox: latest
|
2018-08-26 23:43:28 +00:00
|
|
|
- stage: test
|
2019-06-19 14:32:03 +00:00
|
|
|
env : BROWSER=firefox
|
|
|
|
os: linux
|
|
|
|
addons:
|
|
|
|
firefox: latest-beta
|
2019-10-31 13:40:40 +00:00
|
|
|
- stage: test
|
|
|
|
script:
|
|
|
|
- npm run build
|
|
|
|
- npm run docs
|
|
|
|
- npm run test:examples
|
|
|
|
env : TEST_EXAMPLES=1
|
2020-07-19 19:41:20 +00:00
|
|
|
- stage: test
|
|
|
|
script:
|
|
|
|
- npm run build
|
|
|
|
- npm run docs
|
|
|
|
- npm run test:examples
|
|
|
|
env : TEST_EXAMPLES=2
|
2020-07-19 17:50:44 +00:00
|
|
|
- stage: test
|
|
|
|
script:
|
|
|
|
- npm run build
|
|
|
|
- npm run test:html
|
|
|
|
env : TEST_HTML=1
|
2017-12-27 23:20:40 +00:00
|
|
|
- stage: deploy
|
2017-12-28 23:59:52 +00:00
|
|
|
os: linux
|
2018-05-19 14:53:34 +00:00
|
|
|
script: npm run build
|
2017-12-27 23:20:40 +00:00
|
|
|
deploy:
|
2017-12-30 16:30:01 +00:00
|
|
|
- provider: npm
|
|
|
|
skip_cleanup: true
|
|
|
|
email: yotammann@gmail.com
|
|
|
|
api_key: $NPM_TOKEN
|
|
|
|
tag: next
|
|
|
|
on:
|
|
|
|
repo: Tonejs/Tone.js
|
|
|
|
branch: dev
|
2018-05-19 14:53:34 +00:00
|
|
|
# don't publish on cron or PRs
|
|
|
|
condition: $TRAVIS_EVENT_TYPE != cron && $TRAVIS_EVENT_TYPE != pull_request
|
2017-12-27 23:20:40 +00:00
|
|
|
# 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
|
2018-05-19 14:53:34 +00:00
|
|
|
# don't publish on cron or PRs
|
|
|
|
condition: $TRAVIS_EVENT_TYPE != cron && $TRAVIS_EVENT_TYPE != pull_request
|
2017-12-27 23:20:40 +00:00
|
|
|
# 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:
|
2018-05-18 23:21:08 +00:00
|
|
|
- node_modules
|