-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
54 lines (45 loc) · 1.03 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
sudo: required
dist: trusty
group: edge
language: go
go:
- 1.5.2
env:
- GOARCH=amd64
gobuild_args:
# whitelist
branches:
only:
- dev
except:
- v-dev
cache:
directories:
- /usr/bin
before_install:
- go get github.com/tools/godep
# test that the services build correclty
install: make all
# test that the image correclty build
script: make build_container
before_deploy:
# Clean the v-dev release and tag we are using to release development version in CI
- sudo wget https://github.com/benchflow/devops/raw/dev/ci/clean_v-dev_release.sh -O /usr/bin/clean_v-dev_release.sh
- sudo chmod +x /usr/bin/clean_v-dev_release.sh
- export REPO_NAME=collectors
- /usr/bin/clean_v-dev_release.sh
deploy:
provider: releases
api_key:
secure: $GITHUB_ACCESS_TOKEN
file:
- files/zip/bin/zip
- dbms/mysql/bin/mysql
- environment/logs/bin/logs
- environment/stats/bin/stats
- environment/properties/bin/properties
skip_cleanup: true
on:
tags: false
repo: benchflow/collectors
branch: dev