enable gitlab-ci testing

This commit is contained in:
Martin Weinelt 2017-04-02 22:43:05 +02:00
parent 4c19c282e8
commit 3be24c138a
No known key found for this signature in database
GPG key ID: BD4AA0528F63F17E

25
.gitlab-ci.yml Normal file
View file

@ -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