diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 14ecc2ac33b46deef91ef84e689818616e53b82f..ba8f6d4a16ab81ecd8d0d767f990f4975a33237d 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,9 +1,9 @@ -image: privacybydesign/golang_dep:latest +image: privacybydesign/golang_sql:latest -cache: - key: $CI_COMMIT_REF_SLUG - paths: - - vendor/ +#cache: +# key: $CI_COMMIT_REF_SLUG +# paths: +# - vendor/ stages: - test @@ -15,10 +15,12 @@ variables: before_script: - set -euxo pipefail + - 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")" - ln -s "$CI_PROJECT_DIR" "$GOPATH/src/$PACKAGE_NAME" - cd "$GOPATH/src/$PACKAGE_NAME" - - dep ensure -v unit_tests: stage: test