Skip to content
Snippets Groups Projects
Commit 9e9d933d authored by Eyvind Nikolai Holt's avatar Eyvind Nikolai Holt
Browse files

Merge branch 'master' into 'test'

# Conflicts:
#   dao/persondao.js
#   dao/persondao.test.js
#   server.js
parents ba674809 006d767c
No related branches found
No related tags found
1 merge request!1Til o3
Pipeline #22870 passed with stage
in 1 minute and 24 seconds
image: node:8
# Set up MySQL test-database
services:
- mysql:5.5
# Configure test-database
variables:
MYSQL_DATABASE: supertestdb
MYSQL_ROOT_PASSWORD: secret
# Install node libraries
before_script:
- npm install
# Run JEST tests
run_tests:
stage: test
script:
- npm test
artifacts:
paths:
- coverage/
# Publish coverage report on gitlab-pages
pages:
stage: deploy
dependencies:
- run_tests
script:
- mkdir .public
- cp -r coverage/* .public
- mv .public public
artifacts:
paths:
- public
only:
- master
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment