-
Notifications
You must be signed in to change notification settings - Fork 42
/
.travis.yml
42 lines (39 loc) · 877 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
sudo: required
language: node_js
cache:
directories:
- node_modules
dist: trusty
jobs:
include:
- stage: test
node_js: lts/*
script:
- yarn format
- yarn build --prefix-paths
- stage: performance_budget
node_js: lts/*
if: type = pull_request
script:
- ./scripts/budget.sh
# Define the release stage that runs semantic-release
- stage: release
if: branch = master
node_js: lts/*
script: skip
deploy:
provider: script
skip_cleanup: true
script:
- npx semantic-release
- stage: deploy
if: branch = master
node_js: lts/*
script: yarn build --prefix-paths
deploy:
provider: pages
skip_cleanup: true
github_token: $GITHUB_TOKEN
local_dir: public
on:
branch: master