...
 
Commits (2)
image: privacybydesign/golang_dep:latest image: privacybydesign/golang_sql:latest
cache: cache:
key: $CI_COMMIT_REF_SLUG key: $CI_COMMIT_REF_SLUG
paths: paths:
- vendor/ - vendor/go/pkg/mod/
stages: stages:
- test - test
- build - build
variables: variables:
GOFLAGS: -mod=readonly
GOPATH: ${CI_PROJECT_DIR}/vendor/go
PACKAGE_NAME: github.com/privacybydesign/irmago PACKAGE_NAME: github.com/privacybydesign/irmago
PLATFORMS: linux/amd64 darwin/amd64 windows/amd64 linux/arm linux/arm64 PLATFORMS: linux/amd64 darwin/amd64 windows/amd64 linux/arm linux/arm64
before_script: before_script:
- set -euxo pipefail - set -euxo pipefail
- mkdir -p "$GOPATH/src/$(dirname "$PACKAGE_NAME")" - service mysql start
- ln -s "$CI_PROJECT_DIR" "$GOPATH/src/$PACKAGE_NAME" - mysql -e "create database test"
- cd "$GOPATH/src/$PACKAGE_NAME" - mysql -e "grant all privileges on *.* to 'testuser'@'localhost' identified by 'testpassword'"
- dep ensure -v - mysql -e "flush privileges"
unit_tests: unit_tests:
stage: test stage: test
......