-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
50 lines (43 loc) · 1004 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
45
46
47
48
49
50
sudo: required
language: go
before_install:
- curl -sf https://up.apex.sh/install | sudo sh
- sudo up upgrade
services:
- docker
install:
- go get -t ./...
- sudo apt-get install jq -y
after_success:
- test -n "$TRAVIS_TAG" && docker login -u=uneetci -p="$DOCKER_PASSWORD"
script:
- go test -v ./...
deploy:
# dev
- provider: script
script: make
skip_cleanup: true
on:
branch: master
# demo
- provider: script
script: AWS_ACCESS_KEY_ID=$AWS_915001051872_ID AWS_SECRET_ACCESS_KEY=$AWS_915001051872_SECRET make demo
skip_cleanup: true
on:
tags: true
branch: master
# production
- provider: script
script: AWS_ACCESS_KEY_ID=$AWS_192458993663_ID AWS_SECRET_ACCESS_KEY=$AWS_192458993663_SECRET make prod
skip_cleanup: true
on:
tags: true
branch: master
- provider: script
skip_cleanup: true
script: curl -sL https://git.io/goreleaser | bash
on:
tags: true
condition: $TRAVIS_OS_NAME = linux
env:
- GO111MODULE=on