forked from Griesbacher/nagflux
-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
35 lines (32 loc) · 1.13 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
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:
- go test -v ./...
post:
- influx -execute 'show databases'
- influx -database 'NAGFLUX_CI_TEST' -execute 'select * from /.*/ limit 5'
- 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