-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
35 lines (35 loc) · 976 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
sudo: false
language: node_js
node_js:
- "8"
install: npm install
script:
- npm run lint
- '[ "${TRAVIS_PULL_REQUEST}" = "false" ] && npm run test:travis || npm run test:travis:pr'
- npm run build
before_deploy:
- tar czvf build.tar.gz -C build .
deploy:
- provider: surge # Deploy to staging on each commit to master
project: ./build/
domain: staging-react-fiber-experiments.surge.sh
skip_cleanup: true
on:
branch: master
- provider: surge # Deploy to production on each tag to master
project: ./build/
domain: react-fiber-experiments.surge.sh
skip_cleanup: true
on:
tags: true
branch: master
- provider: releases # Upload build artefacts to github releases on each tag on master
api_key: $GITHUB_TOKEN
file: "./build.tar.gz"
skip_cleanup: true
on:
tags: true
branch: master
after_deploy:
- curl staging-react-fiber-experiments.surge.sh
- curl react-fiber-experiments.surge.sh