forked from carbon-design-system/carbon-charts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
47 lines (47 loc) · 1.05 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
dist: trusty
language: node_js
node_js:
- '11'
env:
- MOZ_HEADLESS=1
addons:
chrome: stable
firefox: latest
if: (tag AND tag =~ ^v) OR (commit_message =~ ^Merge\spull\srequest\s#) OR (type = pull_request)
before_install:
- curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 1.21.1
- export PATH="$HOME/.yarn/bin:$PATH"
- .travis/before_install.sh
- "google-chrome-stable --headless --disable-gpu --remote-debugging-port=9222 http://localhost &"
install: yarn --offline
script:
- yarn run lint
- yarn run build-all
- yarn run test
sudo: false
deploy:
-
provider: script
script: "bash ./scripts/deploy.sh"
skip_cleanup: true
true:
tags: true
-
provider: script
script: "bash ./scripts/deploy.sh"
skip_cleanup: true
true:
branch: master
-
allow-empty-commit: true
email: [email protected]
github-token: $GH_TOKEN
keep-history: true
local-dir: pages
name: carbon-bot
provider: pages
skip_cleanup: true
true:
tags: true
notifications:
email: false