Skip to content
Snippets Groups Projects
Commit 31e103cb authored by Lukas Böhm's avatar Lukas Böhm :8ball:
Browse files

Update .gitlab-ci.yml file

parent 6c9459e6
No related branches found
No related tags found
No related merge requests found
Pipeline #59902 failed
......@@ -13,6 +13,11 @@ before_script:
- mkdir -p $GOPATH/src/$(dirname $REPO_NAME)
- ln -svf $CI_PROJECT_DIR $GOPATH/src/$REPO_NAME
- cd $GOPATH/src/$REPO_NAME
- mkdir -p ./test/data
- mkdir -p ./test/temp
- export DATABASE_URI=sqlite:test.db
- export MEDIA_DIR=./media/test
stages:
- test
......@@ -22,11 +27,11 @@ test:
script:
- go fmt $(go list ./... | grep -v /vendor/)
- go vet $(go list ./... | grep -v /vendor/)
- go test -race $(go list ./... | grep -v /vendor/) -v -cover
- go test $(go list ./... | grep -v /vendor/) -v -cover
build:
script:
- go build -race -ldflags "-extldflags '-static'" -o $CI_PROJECT_DIR/mybinary
- go build -o $CI_PROJECT_DIR/mybinary .
artifacts:
paths:
- mybinary
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment