-
Notifications
You must be signed in to change notification settings - Fork 249
/
.travis.yml
50 lines (43 loc) · 1.18 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
language: node_js
node_js:
- "12"
env:
global:
- MYSQL_DATABASE=xrchat
- MYSQL_USER=root
- MYSQL_PASSWORD=
services:
- docker
- mysql
before_script:
- mysql -e 'CREATE DATABASE xrchat;'
script:
- npm run lint
- npm run compile
- npm run sync
- npm run mocha
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 && scripts/deploy.sh staging $TRAVIS_COMMIT
on:
branch: master
- provider: script
script: bash scripts/publish_dockerhub.sh dev $TRAVIS_COMMIT && scripts/deploy.sh dev $TRAVIS_COMMIT
on:
branch: dev
- provider: script
script: bash scripts/publish_dockerhub.sh latest $TRAVIS_TAG
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