Commit d323a650 authored by Tomas's avatar Tomas

chore: Add .gitlab-ci.yml

parent 273b0e49
Pipeline #21050 failed with stages
in 2 minutes and 40 seconds
image: privacybydesign/golang:latest
cache:
key: $CI_COMMIT_REF_SLUG
paths:
- $GOPATH/pkg/mod
stages:
- test
- build
variables:
GOOS: linux
GOARCH: amd64
CGO_ENABLED: 0
OUTPUT_NAME: atumd-${CI_COMMIT_REF_SLUG}-${GOOS}-${GOARCH}
before_script:
- set -euxo pipefail
- go get
unit_tests:
stage: test
script:
- go test ./...
binaries:
stage: build
artifacts:
paths:
- artifacts/*
script:
- go build -a -ldflags '-extldflags "-static"' -o "$OUTPUT_NAME" ./irma
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