forked from HSLdevcom/digitransit-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
64 lines (54 loc) · 1.08 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
62
63
64
sudo: required
dist: trusty
branches:
only:
- master
- next
- /20(1[7-9]|2[0-9])[0-1][0-9][0-3][0-9]/
cache: yarn
language: node_js
before_install:
- export TZ=Europe/Helsinki
install: true
services:
- docker
jobs:
include:
- stage: test
env: LINT=1
node_js: '10'
script:
- yarn install
- yarn lint
- stage: test
env: FLOW=1
node_js: '10'
script:
- yarn install
- test/flow.sh
- stage: test
env: UNIT=1
node_js: '10'
script:
- yarn install
- yarn run test-coverage
- yarn run test-report
- stage: visual
env: VISUAL=chrome
node_js: '10'
script: test/visual.sh
- stage: visual
env: VISUAL=firefox
node_js: '10'
script: test/visual.sh
- stage: visual
env: VISUAL=safari
node_js: '10'
script: test/visual.sh
- stage: visual
env: VISUAL=edge
node_js: '10'
script: test/visual.sh
- stage: build and deploy container
node_js: '10'
script: test/deploy.sh