-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
40 lines (40 loc) · 824 Bytes
/
.travis.yml
File metadata and controls
40 lines (40 loc) · 824 Bytes
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
language: node_js
node_js:
- 'stable'
install:
- npm install -g yarn
cache:
yarn: true
directories:
- node_modules
jobs:
include:
- stage: test
install:
- yarn
script:
- echo "Test react-app"
- yarn test
- stage: deployment
install:
- yarn
script:
- echo "Deploy to gh-pages"
- yarn run build
deploy:
provider: pages
skip_cleanup: true
github_token: $GITHUB_TOKEN
local_dir: ./build
keep_history: true
on:
all_branches: true
condition: $TRAVIS_BRANCH =~ ^(master)$
- stage: test-deployment
script:
- echo "Test deployment"
- curl https://sort.welvin21.com
notifications:
email:
on_success: never
on_failure: always