Commit 31e103cb authored by Lukas Böhm's avatar Lukas Böhm 🎱
Browse files

Update .gitlab-ci.yml file

parent 6c9459e6
Pipeline #59902 failed with stage
in 13 seconds
......@@ -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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment