-
Notifications
You must be signed in to change notification settings - Fork 956
/
.travis.yml
94 lines (94 loc) · 2.31 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
sudo: false
dist: trusty
language: node_js
node_js:
- '9'
install:
- npm i -g npm@latest
- npm ci
- git config --global user.email "travis@travis-ci.org"
- git config --global user.name "Travis CI"
script:
- npm run test:travis
- npm run coveralls
before_deploy:
- cd gulp
- npm install -g jsdoc
# commit the build
- sh push_build.sh
# update the site
- sh update_site.sh
- node increment_version.js
- cd ../
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:
- stage: test
before_script:
# needs an audio output device to run
- HOMEBREW_NO_AUTO_UPDATE=1 brew install Caskroom/cask/soundflower
env : BROWSER=safari
os: osx
# - stage: test
# before_script:
# # needs an audio output device to run
# - HOMEBREW_NO_AUTO_UPDATE=1 brew install Caskroom/cask/soundflower
# env : BROWSER=safari
# os: osx
# # test on an older safari
# osx_image: xcode6.4
- 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
- $HOME/Library/Caches/Homebrew