forked from DXHeroes/dx-scanner
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
80 lines (73 loc) · 2.24 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
language: node_js
node_js:
- '12'
os:
- linux
cache:
yarn: true
directories:
- lib
- coverage
- node_modules
env:
matrix:
- YARN_GPG=no
matrix:
fast_finish: true
notifications:
slack:
if: branch = master
secure: AKt6cnaKZ8Fox3dIHVPzmQP5ROMG3zI0DzOsb3ShLfp8qJwMVJquqKnUG6j7CZKoK0UI4XkMd7PebLmEmExW7A4MjnWZ5VPy4VzpysQP2oV0JI7qEhSUzzwh1C7J+SH5EmNr7JrZW7H5LEiFpCJ00Of2C7kHmOaok/iBM3Nvz9OCiusT+BwmNSVxrkQjiqSmYKTolZhThYPnKwgNcqfIrpXv55Oei3rCFMRzyNnqUQk2mrdW5iitHWjxYLByThDfaf7iZ3SqdDMnx1OYsvuim0Nkr3HQ4KINiOQ6+6cYfuA6b2qGl7UVM/7lP6WfDU/Owe4yYfWK/xS4Po5WeDEi+z4V/V8FTtEtSnK1gez+NnOClKaui89FMavRqe+BKqDFNeDOoDNGCIs8MhsNLt+tTFCa7JfKIukgiYoHlPT5LfS8HIruTglMF7gsp1KTn0o9nuyaGblGblcCldz1QIo16lFnw+0JZIZR1Odn5nit96fLMoXxH6WUX7TShXgcp+RwbjyTEOWJnKtIRQO8BJ2Hjo9GH+J6u5OQ0+v8KlIgJ3E0IkTJTxMM225gfwJ95sv5rMYQByCw40yKa4+K48BEBFB49vwOOq6vDdsfyaowGIFJ0Hl9h3mQb9bOmq5iXt/5ByCP+XHiAkThuIdQCUQftzVj5WRD5rntrRwM5GUjyIk=
on_success: change
on_failure: change
email:
if: branch = master
recipients:
- prokop@dxheroes.io
- adela@dxheroes.io
on_success: never
on_failure: always
script:
- yarn build
- yarn test --coverage
- bin/run
- yarn test:codecov:upload
- bin/run run . --fail=high
jobs:
include:
- stage: code style
if: branch = master
scripts:
- yarn lint
- yarn codecov
- stage: runtime test
if: branch = master
scripts:
- npm -g i .
- dx-scanner run
- dx-scanner run https://github.com/DXHeroes/dx-scanner
- dx-scanner run https://github.com/moment/luxon
- dx-scanner run https://github.com/intoli/remote-browser
- dx-scanner run
os: windows
- os: linux
- stage: release
node_js: lts/*
script: skip
deploy:
provider: script
email: dev@dxheroes.io
skip_cleanup: true
script:
- npx semantic-release
on:
all_branches: true
- stage: publish gh action in docker container
if: branch = master AND type = push
node_js: lts/*
env:
- CONTAINER_NAME=docker.pkg.github.com/dxheroes/dx-scanner/release
script:
- docker build -t $CONTAINER_NAME .
- docker login -u dxheroes -p $DOCKER_GITHUB_PASSWORD docker.pkg.github.com
- docker push $CONTAINER_NAME