From 3be24c138acd059994156b8e2278e1a1b996d27a Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Sun, 2 Apr 2017 22:43:05 +0200 Subject: [PATCH] enable gitlab-ci testing --- .gitlab-ci.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..0d1ea45 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,25 @@ +.build_template: &build + stage: test + + # before_script: + # - # install depds etc... + + script: + - mkdir -p ${GOPATH}/src/git.darmstadt.ccc.de/ffda + - ln -rs ../fastd-exporter ${GOPATH}/src/git.darmstadt.ccc.de/ffda/ + - cd ${GOPATH}/src/git.darmstadt.ccc.de/ffda/fastd-exporter + - go fmt + - git diff --exit-code + - go get ./... + - go build + - ls -lah fastd-exporter + +test:1.7: + <<: *build + image: golang:1.7 + + +test:1.8: + <<: *build + image: golang:1.8 +