forked from Griesbacher/nagflux
-
Notifications
You must be signed in to change notification settings - Fork 0
/
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 /.*/'