-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.travis.yml
More file actions
65 lines (55 loc) · 1.28 KB
/
.travis.yml
File metadata and controls
65 lines (55 loc) · 1.28 KB
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
60
61
62
63
64
65
sudo: required
dist: trusty
group: edge
language: go
go:
- 1.5.2
env:
- GOARCH=amd64
gobuild_args:
# adds support for java, to release the monitors-library
addons:
apt:
packages:
- oracle-java7-installer
# whitelist
branches:
only:
- dev
except:
- v-dev
cache:
directories:
- /usr/bin
before_install:
- go get github.com/tools/godep
- jdk_switcher use oraclejdk7
- mvn -f=monitors-driver-library/ validate
# test that the services and the library build correclty
install:
- make all
# test that the image correclty build
script: make build_container
cache:
directories:
- $HOME/.m2
- /usr/bin
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=monitors
- /usr/bin/clean_v-dev_release.sh
deploy:
provider: releases
api_key:
secure: $GITHUB_ACCESS_TOKEN
file:
- environment/cpu/bin/cpu
- dbms/sqlquery/mysql/bin/querymysql
- monitors-driver-library/target/benchflow-monitors-driver-library.jar
skip_cleanup: true
on:
tags: false
repo: benchflow/monitors
branch: dev