From 4a7934d86f85250c57d40c689b50a613de19b402 Mon Sep 17 00:00:00 2001 From: Aleksa Sarai Date: Sat, 24 Dec 2016 09:37:56 +1100 Subject: [PATCH] travis: add travis-ci This sets up a working Travis CI configuration, that runs all of our integration and unit tests (and also checks a simple raw-build on the Travis server). Signed-off-by: Aleksa Sarai --- .travis.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 00000000..5daaa184 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,26 @@ +language: go +go: + - 1.6.x + - 1.7.x +# - master + +# `make ci` uses Docker. +sudo: required +services: + - docker + +env: + global: + - BUILDTAGS="seccomp apparmor selinux ambient" + +before_install: + - sudo apt-get -qq update + - sudo apt-get install -y libseccomp-dev libapparmor-dev + - go get -u github.com/golang/lint/golint + - go get -u github.com/vbatts/git-validation + - go get -u github.com/mvdan/sh/cmd/shfmt + +script: + - git-validation -run DCO,short-subject -v -range ${TRAVIS_COMMIT_RANGE} + - make BUILDTAGS="${BUILDTAGS}" + - make BUILDTAGS="${BUILDTAGS}" clean validate test