-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
45 lines (45 loc) · 3.56 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
language: node_js
services:
- docker
node_js:
- 10.1.0
cache:
directories:
- "$HOME/.npm"
env:
global:
- TRUNK_BRANCH="master"
- DOCKER_REPOSITORY="edenlabllc"
- HELM_CHART="fe"
- secure: g0ucSJW6qgwUa9BPockDpCVb2nhkvzaEmZvh0EIkr+10bImhI086g+ytiqxxBCbIzL7qSOtp+Sr8iwZwrwk6qI16sGmTzvy/BOtSSL2fevapdhgQRXn7JDaaj19pQ8xgo3hkyjkGsHr22/27uD88AlwG8Wv0nhV5oH0Kb/reOjv1QrF+oRtjVrpRRw0PL5rFLYZ/JZ7kkdVI+pp2aDTIEJs/QxSsJ602fokuLbwdrNKeo3BQEnzY95Z0TYaj9Rvl8nI3a/LECNeKABHLVhn0t4qXQBqIZmR/3Il3QOA1eUAoNarsZsuGKweEnKYbj0X6F19tjRupYdHY25W42MUxvun4VJ/AzXLRaa4KdiCAGn5k99jlpIUHOu+NnnUSppac+39qoepridJ4vPiqhNpHHTtfui6eKvF3WSx+znzwM41c1jv/bjZ9SfYuvoXLbCyQzgZrCJEDP3iRJpaTkasfXTdwSmAIbHDVZEU1jic1zLYIyjxzuGG2oV0c37M5AgdzsL/HiqOSVh5zetMH2N76MbQ4bjUtm7+pjUpD5Vinuya6VmHe8vIQwe3aDPEiNozE5XD6uABtHIYcsGTky2a319GOiCWNHpT4/7r3kqpqMQIdNnhfQq7TWoaGz77L7RaBIdsmqDQ3C2xF/3FoGlr1Vv8Olm0v2fWQTXIyJKv7th8=
- secure: Vlp9QazReDIv234C1/zjPyJIwm/RjBRLMu0Qmpsy1C7h7NIQvd9xlutgzGDw2xP0NCj2p9kThW+rGoi8PSGObJJHuv5uuqoa22BHoXdenDgN6/AOf6iJ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2Z/Ay4hoASyUlcWlCHLlywRWELip5T3V5ZByC79Zp9mBCx3g7LzbfK2ntCJBJWn9M+ucPeH9JARwJ2cjObau/dpiXZeFOzMIsTPmjuUN/5wXn3CkoqNZ3i1VDTG5b++3o8VVKMVqhT5COdVXczLiWiigxTmJtYPhQiGEuMgClwvFIAhmymOZW4=
before_install:
- npm i -g [email protected]
install:
- npm ci
script: skip
jobs:
include:
- stage: unit tests
script: npm run test:unit
- stage: build and release
if: (branch = env(TRUNK_BRANCH) OR branch =~ /^(\d+\.)?\d+-stable$/) AND type = push
script:
- ./ci/prepare-release.sh || travis_terminate 1
- "npm run release -- --yes || travis_terminate 1"
- npm run image:build-and-test -- --concurrency 1 --since origin/$TRAVIS_BRANCH || travis_terminate 1
- npm run image:push -- --since origin/$TRAVIS_BRANCH -- -- --latest=`[ "$TRAVIS_BRANCH" = "$TRUNK_BRANCH" ] && echo true || echo false` || travis_terminate 1
- git push --follow-tags --no-verify origin $TRAVIS_BRANCH || travis_terminate 1
- stage: deploy to dev
if: branch = env(TRUNK_BRANCH) AND type = push
script:
- ./ci/prepare-deploy.sh || travis_terminate 1
- npm run chart:update -- -- -- --env=dev || travis_terminate 1
- npm run chart:deploy -- --env=dev || travis_terminate 1
- stage: deploy to demo
if: branch =~ /^(\d+\.)?\d+-stable$/ AND type = push
script:
- ./ci/prepare-deploy.sh || travis_terminate 1
- npm run chart:update -- -- -- --env=demo || travis_terminate 1
- npm run chart:deploy -- --env=demo || travis_terminate 1