-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
61 lines (55 loc) · 1.34 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
language: node_js
node_js:
- '9'
cache:
directories:
- node_modules
install: npm install
stages:
- check
- deploy
jobs:
fast_finish: true
include:
- name: lint
stage: check
script:
- npm run lint:config:strict
- npm run lint:strict
- name: build
stage: check
script: npm run build
- name: deploy to staging
stage: deploy
if: type = push AND branch = master
script: BUILD_ENV='"staging"' npm run build
deploy:
- provider: pages
repo: test-fajnie-ze-wiesz/test-fajnie-ze-wiesz.github.io
fqdn: test-app.fajniezewiesz.pl
skip_cleanup: true
keep_history: false
target_branch: master
local_dir: dist/
github_token: $GITHUB_TOKEN
on:
branch: master
- name: deploy to production
stage: deploy
if: type = push AND branch = production
script: npm run build
deploy:
- provider: pages
repo: fajnie-ze-wiesz/fajnie-ze-wiesz.github.io
fqdn: aplikacja.fajniezewiesz.pl
skip_cleanup: true
keep_history: false
target_branch: master
local_dir: dist/
github_token: $GITHUB_TOKEN
on:
branch: production
notifications:
email:
on_success: never
on_failure: always