Skip to content
Snippets Groups Projects
Commit 7e9cbdb6 authored by Mathias Picker's avatar Mathias Picker
Browse files

ci

parent da959273
No related branches found
No related tags found
No related merge requests found
Pipeline #87964 passed
image: docker:stable
stages:
- build
- test
before_script:
- apt-get update
- apt-get -y upgrade
- apt-get -y install mysql-server
image: node:latest
variables:
# Configure server/src/mysql-pool.js
......@@ -16,9 +7,24 @@ variables:
MYSQL_PASSWORD: '' # Default root password is empty string
MYSQL_DATABASE: todo-test
stages:
- build
- test
install:
stage: build
script:
- npm install
artifacts:
paths:
- node_modules
test:
stage: test
script:
- apt-get update
- apt-get -y upgrade
- apt-get -y install mysql-server
- service mysql start
# Workaround from https://github.com/mysqljs/mysql/issues/1507#issuecomment-242885003
- echo "UPDATE user SET authentication_string=password(''), plugin='mysql_native_password' WHERE
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment