-
Notifications
You must be signed in to change notification settings - Fork 32
/
circle.yml
35 lines (32 loc) · 1.23 KB
/
circle.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
general:
branches:
only:
- master
dependencies:
pre:
- go get github.com/axw/gocov/gocov
- go get github.com/mattn/goveralls
- go get golang.org/x/tools/cmd/cover
override:
- cd ..
- rm -rf /home/ubuntu/.go_workspace/src/github.com/griesbacher/nagflux
- rm -rf /home/ubuntu/.go_project/src/github.com/griesbacher/nagflux
- go get -u -t github.com/griesbacher/nagflux; echo 1
- go build -v github.com/griesbacher/nagflux
- cp nagflux $CIRCLE_ARTIFACTS
database:
override:
- wget https://s3.amazonaws.com/influxdb/influxdb_0.10.1-1_amd64.deb
- sudo dpkg -i influxdb_0.10.1-1_amd64.deb
- influxd &> influx.log:
background: true
- sleep 5
- influx -execute 'show databases'
test:
override:
- influx -execute 'show databases'
- bash coverage.sh
- goveralls -coverprofile=cover.out -service=circle-ci -repotoken=$COVERALLS_TOKEN && rm cover.out
- curl --data "repo=griesbacher/nagflux" http://goreportcard.com/checks
- influx -database 'NAGFLUX_CI_TEST_1' -execute 'select * from /.*/'
- influx -database 'NAGFLUX_CI_TEST_2' -execute 'select * from /.*/'