-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.travis.yml
44 lines (39 loc) · 967 Bytes
/
.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
sudo: required
language: go
go:
- tip
before_install:
- travis_retry curl -sf https://up.apex.sh/install | sudo sh
- sudo up upgrade
install:
- sudo apt-get install jq -y
script:
- true # avoid default make command
matrix:
include:
- env: DEPLOY=dev
if: branch = master
deploy:
provider: script
skip_cleanup: true
script: make
on:
branch: master
- env: DEPLOY=demo
if: branch = master
deploy:
provider: script
skip_cleanup: true
script: AWS_ACCESS_KEY_ID=$AWS_915001051872_ID AWS_SECRET_ACCESS_KEY=$AWS_915001051872_SECRET make demo
on:
branch: master
- env: DEPLOY=prod
if: tag IS present
deploy:
provider: script
skip_cleanup: true
script: AWS_ACCESS_KEY_ID=$AWS_192458993663_ID AWS_SECRET_ACCESS_KEY=$AWS_192458993663_SECRET make prod
on:
tags: true
env:
- GO111MODULE=on