Skip to content

Commit

Permalink
enabled gitlab ci
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianrudnik committed Apr 5, 2019
1 parent ba57927 commit 91130c8
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
image: golang:latest

stages:
- test
- build

test:
stage: test
script:
- go vet -mod=vendor ./...
- go test -mod=vendor -cover -race ./...

compile:
stage: build
script:
- go build -mod=vendor -race -ldflags "-extldflags '-static'" -o $CI_PROJECT_DIR/uritool
artifacts:
paths:
- uritool

0 comments on commit 91130c8

Please sign in to comment.