forked from xr3ngine-archive/Spoke
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
39 lines (33 loc) · 1.03 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
language: node_js
node_js:
- "10"
services:
- docker
script:
- yarn test
before_deploy:
- scripts/setup_helm.sh
- scripts/setup_aws.sh $AWS_ACCESS_KEY $AWS_SECRET $AWS_REIGON $CLUSTER_NAME
deploy:
- provider: script
script: bash scripts/publish_dockerhub.sh staging $TRAVIS_COMMIT xr3ngine/spoke && scripts/deploy.sh staging $TRAVIS_COMMIT
on:
branch: master
- provider: script
script: bash scripts/publish_dockerhub.sh dev $TRAVIS_COMMIT xr3ngine/spoke && scripts/deploy.sh dev $TRAVIS_COMMIT
on:
branch: dev
- provider: script
script: bash scripts/publish_dockerhub.sh latest $TRAVIS_TAG xr3ngine/spoke
on:
tags: true
all_branches: true
after_success:
- wget https://raw.githubusercontent.com/DiscordHooks/travis-ci-discord-webhook/master/send.sh
- chmod +x send.sh
- ./send.sh success $WEBHOOK_URL
after_failure:
- wget https://raw.githubusercontent.com/DiscordHooks/travis-ci-discord-webhook/master/send.sh
- chmod +x send.sh
- ./send.sh failure $WEBHOOK_URL
cache: yarn