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: ...@@ -13,6 +13,11 @@ before_script:
- mkdir -p $GOPATH/src/$(dirname $REPO_NAME) - mkdir -p $GOPATH/src/$(dirname $REPO_NAME)
- ln -svf $CI_PROJECT_DIR $GOPATH/src/$REPO_NAME - ln -svf $CI_PROJECT_DIR $GOPATH/src/$REPO_NAME
- cd $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: stages:
- test - test
...@@ -22,11 +27,11 @@ test: ...@@ -22,11 +27,11 @@ test:
script: script:
- go fmt $(go list ./... | grep -v /vendor/) - go fmt $(go list ./... | grep -v /vendor/)
- go vet $(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: build:
script: script:
- go build -race -ldflags "-extldflags '-static'" -o $CI_PROJECT_DIR/mybinary - go build -o $CI_PROJECT_DIR/mybinary .
artifacts: artifacts:
paths: paths:
- mybinary - mybinary
Supports Markdown
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