-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
46 lines (40 loc) · 930 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
sudo: true
os:
- linux
language: go
go:
- 1.11.x
- 1.12.x
env:
global:
# include $HOME/.local/bin for `aws`
- PATH=$HOME/.local/bin:$PATH
- GO111MODULE=on
- CGO_ENABLED=0
before_install:
# set up awscli packages
- pip install --user awscli
- mkdir -p ~/$TRAVIS_BUILD_NUMBER
jobs:
include:
- stage: build images
if: branch = master
script:
# build aranya
- make build-image-aranya
# build arhat
- make build-image-arhat-docker-grpc
- docker images
- docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD"
# push images (buggy, sometimes fail)
- make push-image-aranya-image
- make push-image-arhat-docker-grpc
- stage: upload release
if: branch = v*
script:
- make aranya
- make arhat-docker-grpc
# TODO: upload output
stages:
- build images
- upload release