Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
irmago
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
IRMA
Github mirrors
irmago
Compare Revisions
547c04551c94bf3fc6069fd42de6c1f12962f867...65b0772b1df3413d882cd9d7ecbddf0588d2b578
Source
65b0772b1df3413d882cd9d7ecbddf0588d2b578
Select Git revision
...
Target
547c04551c94bf3fc6069fd42de6c1f12962f867
Select Git revision
Compare
Commits (2)
chore: update .gitlab-ci.yml to use golang_sql docker image
· 935444b0
Sietse Ringers
authored
Mar 07, 2020
935444b0
wip
· 65b0772b
Sietse Ringers
authored
Mar 07, 2020
65b0772b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
.gitlab-ci.yml
.gitlab-ci.yml
+8
-6
No files found.
.gitlab-ci.yml
View file @
65b0772b
image
:
privacybydesign/golang_
dep
:latest
image
:
privacybydesign/golang_
sql
:latest
cache
:
key
:
$CI_COMMIT_REF_SLUG
paths
:
-
vendor
/
-
vendor/go/pkg/mod
/
stages
:
-
test
-
build
variables
:
GOFLAGS
:
-mod=readonly
GOPATH
:
${CI_PROJECT_DIR}/vendor/go
PACKAGE_NAME
:
github.com/privacybydesign/irmago
PLATFORMS
:
linux/amd64 darwin/amd64 windows/amd64 linux/arm linux/arm64
before_script
:
-
set -euxo pipefail
-
mkdir -p "$GOPATH/src/$(dirname "$PACKAGE_NAME")"
-
ln -s "$CI_PROJECT_DIR" "$GOPATH/src/$PACKAGE_NAME
"
-
cd "$GOPATH/src/$PACKAGE_NAME
"
-
dep ensure -v
-
service mysql start
-
mysql -e "create database test
"
-
mysql -e "grant all privileges on *.* to 'testuser'@'localhost' identified by 'testpassword'
"
-
mysql -e "flush privileges"
unit_tests
:
stage
:
test
...
...