mirror of
https://github.com/kubernetes-sigs/prometheus-adapter.git
synced 2026-04-06 01:38:10 +00:00
[build] set up Travis CI to run the unit tests
This commit sets up Travis CI to run the unit tests. It installs glide, initializes the vendor directory, and then runs `make test`.
This commit is contained in:
parent
78d9749971
commit
349128f5a5
1 changed files with 23 additions and 0 deletions
23
.travis.yml
Normal file
23
.travis.yml
Normal file
|
|
@ -0,0 +1,23 @@
|
||||||
|
language: go
|
||||||
|
|
||||||
|
go:
|
||||||
|
- 1.8
|
||||||
|
|
||||||
|
# blech, Travis downloads with capitals in DirectXMan12, which confuses go
|
||||||
|
go_import_path: github.com/directxman12/k8s-prometheus-adapter
|
||||||
|
|
||||||
|
addons:
|
||||||
|
apt:
|
||||||
|
sources:
|
||||||
|
- sourceline: 'ppa:masterminds/glide'
|
||||||
|
packages:
|
||||||
|
- glide
|
||||||
|
|
||||||
|
install:
|
||||||
|
- make -B vendor
|
||||||
|
|
||||||
|
script: make test
|
||||||
|
|
||||||
|
cache:
|
||||||
|
directories:
|
||||||
|
- ~/.glide
|
||||||
Loading…
Add table
Add a link
Reference in a new issue