Commit 935444b0 authored by Sietse Ringers's avatar Sietse Ringers

chore: update .gitlab-ci.yml to use golang_sql docker image

parent e2cf67ff
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/
stages: stages:
- test - test
...@@ -15,10 +15,13 @@ variables: ...@@ -15,10 +15,13 @@ variables:
before_script: before_script:
- set -euxo pipefail - set -euxo pipefail
- service mysql start
- mysql -e "create database test"
- mysql -e "grant all privileges on *.* to 'testuser'@'localhost' identified by 'testpassword'"
- mysql -e "flush privileges"
- mkdir -p "$GOPATH/src/$(dirname "$PACKAGE_NAME")" - mkdir -p "$GOPATH/src/$(dirname "$PACKAGE_NAME")"
- ln -s "$CI_PROJECT_DIR" "$GOPATH/src/$PACKAGE_NAME" - ln -s "$CI_PROJECT_DIR" "$GOPATH/src/$PACKAGE_NAME"
- cd "$GOPATH/src/$PACKAGE_NAME" - cd "$GOPATH/src/$PACKAGE_NAME"
- dep ensure -v
unit_tests: unit_tests:
stage: test stage: test
......
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