-
Notifications
You must be signed in to change notification settings - Fork 8
/
.travis.yml
59 lines (58 loc) · 2 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
51
52
53
54
55
56
57
58
59
sudo: required
services:
- docker
language: go
notifications:
email: false
go:
- 1.12.x
jobs:
include:
- stage: test
script:
- make lint
- stage: test
script:
- cd test_env
- docker-compose -f docker-compose.yml up -d
- cd ..
- sleep 35s
- make test
- stage: build
if: branch = master
script:
- make bin VERSION=latest
- stage: build
if: branch = master
script:
- docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD"
- make docker VERSION=latest REGISTRY=car2godeveloper
- stage: build
if: branch = develop
script:
- make bin VERSION=test
- stage: build
if: branch = develop
script:
- docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD"
- make docker VERSION=test REGISTRY=car2godeveloper
- stage: build
if: tag =~ ^[0-9]+\.[0-9]+\.[0-9]+
script:
- make bin VERSION=${TRAVIS_TAG}
- ls build
deploy:
provider: releases
api_key:
secure: Kc6RbhmfHWMCjlKLWSWqlaFKM7Z4kxs2I1Sd7q8Nthw32lPuQ3cSO2YEURWvtPTV5xrJIcW5HP4utSKl9b/h0eXVqluUpVjxbCqgB4iwdj7WWutswnpvXIhlmFzacngMXHCY6363Myoq3rZtIJ8KXr1pLYBQ4Ik3ePsJ8hCzUQm7L9JsxSVGDhLlEVsEjLdBMKZ7/XBCcn/tgbT/wDs+Ru3IoXpIhTjJbEiOriP38viPgHvqbJmjn2HNqK0oP8RT5Bx2o7IUJaXgdsFBOtq/r2sqKuxWk4nBb2B7qvOdjs8nQQ+xKkIcTKwQ0uB2emHCYoPdh8jtXrvPEHmZ1UqzVuCem3WjKm4Hea1DYMaJOtEylpjWtWlyYVdMicQhVvjCgtwTacM7o7fddmnggWxbpI+ESTrV84T24NLHO2kRYTGe0fvmkNZGmWJNSDMg+wl5YPup2Em/j1Rim67bzxj7HcvwdMW2sL+gGs0YjQi0ubHuLg03Lj27i8Y3HEx107bsop1ocbWSyM7q/KLUhIYo33SJyEH2K6KuJgF5SozLBWoC7XCz5tiaegxSJd4w965mlAC2TNPJm5KBw7J/g27TpDY5JSvwYHtpQg1GdHNV7XEPcFZa0hxFyFl+dOGerz2ObZRaMsQxFP08rrjXAHCTkYjqNztSieW+aEUnkP7iO3o=
file:
- build/virity-server-linux-amd64-v${TRAVIS_TAG}
- build/virity-agent-linux-amd64-v${TRAVIS_TAG}
skip_cleanup: true
on:
tags: true
- stage: build
if: tag =~ ^[0-9]+\.[0-9]+\.[0-9]+
script:
- docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD"
- make docker VERSION=${TRAVIS_TAG} REGISTRY=car2godeveloper