-
Notifications
You must be signed in to change notification settings - Fork 4
/
.travis.yml
executable file
·48 lines (43 loc) · 989 Bytes
/
.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
language: node_js
dist: xenial
node_js:
- "12"
cache:
yarn: true
addons:
chrome: stable
branches:
only:
- master
- /^v\d+\.\d+(\.\d+)?(-\S*)?$/
# upgrade yarn to a more recent version
before_install:
- curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 1.13.0
- export PATH="$HOME/.yarn/bin:$PATH"
jobs:
include:
- name: "Build & Deploy"
script: |
set -ex
yarn
yarn prettier
yarn run build
yarn run build-examples
yarn run build-tests
yarn run test
deploy:
- provider: script
script: ./scripts/publish-packages.sh
skip_cleanup: true
on:
tags: true
branch: master
- provider: pages
skip_cleanup: true
commiter-from-gh: true
keep-history: false
local-dir: examples
github-token: $GITHUB_TOKEN
on:
tags: true
branch: master