mirror of
https://github.com/Tonejs/Tone.js
synced 2025-01-13 20:39:06 +00:00
simplifying tests
no need to run on so many browsers now that using standardized-audio-context gives more cross-browser compatability.
This commit is contained in:
parent
389685c7ff
commit
ebc0189133
1 changed files with 69 additions and 84 deletions
153
.travis.yml
153
.travis.yml
|
@ -2,91 +2,76 @@ sudo: false
|
|||
dist: bionic
|
||||
language: node_js
|
||||
node_js:
|
||||
- '14'
|
||||
- "14"
|
||||
install:
|
||||
- npm install
|
||||
- git config --global user.email "travis@travis-ci.org"
|
||||
- git config --global user.name "Travis CI"
|
||||
script:
|
||||
- npm run test
|
||||
- npm run codecov
|
||||
before_deploy:
|
||||
# - npm run test:node
|
||||
- npm run increment
|
||||
- npm run docs
|
||||
- npm install
|
||||
- git config --global user.email "travis@travis-ci.org"
|
||||
- git config --global user.name "Travis CI"
|
||||
script:
|
||||
- npm run test
|
||||
- npm run codecov
|
||||
before_deploy:
|
||||
# - npm run test:node
|
||||
- npm run increment
|
||||
- npm run docs
|
||||
jobs:
|
||||
include:
|
||||
- stage: test
|
||||
env : BROWSER=chrome
|
||||
os: linux
|
||||
addons:
|
||||
chrome: stable
|
||||
- stage: test
|
||||
env : BROWSER=chrome
|
||||
os: linux
|
||||
addons:
|
||||
chrome: beta
|
||||
- stage: test
|
||||
env : BROWSER=firefox
|
||||
os: linux
|
||||
addons:
|
||||
firefox: latest
|
||||
- stage: test
|
||||
env : BROWSER=firefox
|
||||
os: linux
|
||||
addons:
|
||||
firefox: latest-beta
|
||||
- stage: test
|
||||
script:
|
||||
- npm run build
|
||||
- npm run docs
|
||||
- npm run test:examples
|
||||
env : TEST_EXAMPLES=1
|
||||
- stage: test
|
||||
script:
|
||||
- npm run build
|
||||
- npm run docs
|
||||
- npm run test:examples
|
||||
env : TEST_EXAMPLES=2
|
||||
- stage: test
|
||||
script:
|
||||
- npm run build
|
||||
- npm run test:html
|
||||
- npm run test:readme
|
||||
env : TEST_HTML=1
|
||||
- stage: deploy
|
||||
os: linux
|
||||
script: npm run build
|
||||
deploy:
|
||||
- provider: npm
|
||||
skip_cleanup: true
|
||||
email: yotammann@gmail.com
|
||||
api_key: $NPM_TOKEN
|
||||
tag: next
|
||||
on:
|
||||
repo: Tonejs/Tone.js
|
||||
branch: dev
|
||||
# don't publish on cron or PRs
|
||||
condition: $TRAVIS_EVENT_TYPE != cron && $TRAVIS_EVENT_TYPE != pull_request
|
||||
# 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
|
||||
# don't publish on cron or PRs
|
||||
condition: $TRAVIS_EVENT_TYPE != cron && $TRAVIS_EVENT_TYPE != pull_request
|
||||
# publish build files for releases
|
||||
- provider: releases
|
||||
api-key: $GH_TOKEN
|
||||
file_glob: true
|
||||
file: build/*
|
||||
skip_cleanup: true
|
||||
on:
|
||||
tags: true
|
||||
include:
|
||||
- stage: test
|
||||
env: BROWSER=chrome
|
||||
os: linux
|
||||
addons:
|
||||
chrome: stable
|
||||
- stage: test
|
||||
script:
|
||||
- npm run build
|
||||
- npm run docs
|
||||
- npm run test:examples
|
||||
env: TEST_EXAMPLES=1
|
||||
- stage: test
|
||||
script:
|
||||
- npm run build
|
||||
- npm run docs
|
||||
- npm run test:examples
|
||||
env: TEST_EXAMPLES=2
|
||||
- stage: test
|
||||
script:
|
||||
- npm run build
|
||||
- npm run test:html
|
||||
- npm run test:readme
|
||||
env: TEST_HTML=1
|
||||
- stage: deploy
|
||||
os: linux
|
||||
script: npm run build
|
||||
deploy:
|
||||
- provider: npm
|
||||
skip_cleanup: true
|
||||
email: yotammann@gmail.com
|
||||
api_key: $NPM_TOKEN
|
||||
tag: next
|
||||
on:
|
||||
repo: Tonejs/Tone.js
|
||||
branch: dev
|
||||
# don't publish on cron or PRs
|
||||
condition: $TRAVIS_EVENT_TYPE != cron && $TRAVIS_EVENT_TYPE != pull_request
|
||||
# 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
|
||||
# don't publish on cron or PRs
|
||||
condition: $TRAVIS_EVENT_TYPE != cron && $TRAVIS_EVENT_TYPE != pull_request
|
||||
# publish build files for releases
|
||||
- provider: releases
|
||||
api-key: $GH_TOKEN
|
||||
file_glob: true
|
||||
file: build/*
|
||||
skip_cleanup: true
|
||||
on:
|
||||
tags: true
|
||||
# cache node_modules to speed up build
|
||||
cache:
|
||||
directories:
|
||||
- node_modules
|
||||
directories:
|
||||
- node_modules
|
||||
|
|
Loading…
Reference in a new issue