diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000000000000000000000000000000000000..5fb543ed78575932874e11163c155442ba64077b --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,33 @@ +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