From 349128f5a5daeacec55e49c427fc408dc0fa9009 Mon Sep 17 00:00:00 2001 From: Solly Ross Date: Tue, 27 Jun 2017 16:11:25 -0400 Subject: [PATCH] [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`. --- .travis.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 00000000..6ff351d9 --- /dev/null +++ b/.travis.yml @@ -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