These tests are similar to Go unit tests except that they're targetting tesing of a running cAdvisor client. They do this by interacting with the testing framework that is able to talk to the running cAdvisor. This cAdvisor could be local or remote.
17 lines
468 B
YAML
17 lines
468 B
YAML
language: go
|
|
go:
|
|
- 1.3
|
|
install:
|
|
- true
|
|
before_script:
|
|
- go get code.google.com/p/go.tools/cmd/vet
|
|
- go get github.com/kr/godep
|
|
- wget http://s3.amazonaws.com/influxdb/influxdb_latest_amd64.deb
|
|
- sudo dpkg -i influxdb_latest_amd64.deb
|
|
- sudo service influxdb start
|
|
script:
|
|
- export PATH=$PATH:$HOME/gopath/bin
|
|
- godep go test -v -race -test.short github.com/google/cadvisor/...
|
|
- godep go build github.com/google/cadvisor
|
|
- go vet github.com/google/cadvisor
|