2016-07-20 14:59:25 -04:00
|
|
|
before_script:
|
|
|
|
# Install dependencies
|
2017-02-28 16:16:12 -05:00
|
|
|
- sh test/docker_install.sh > /dev/null
|
2017-02-28 16:11:34 -05:00
|
|
|
- yarn
|
2016-07-20 14:59:25 -04:00
|
|
|
|
|
|
|
services:
|
2017-02-28 16:11:34 -05:00
|
|
|
- mariadb:latest
|
2017-02-28 16:14:17 -05:00
|
|
|
- postgres:alpine
|
2016-07-20 14:59:25 -04:00
|
|
|
|
|
|
|
variables:
|
|
|
|
MYSQL_ROOT_PASSWORD: foo-bar-baz
|
|
|
|
MYSQL_DATABASE: test
|
|
|
|
MYSQL_USER: test
|
|
|
|
MYSQL_PASSWORD: test
|
|
|
|
POSTGRES_DB: test
|
|
|
|
POSTGRES_USER: test
|
|
|
|
POSTGRES_PASSWORD: test
|
|
|
|
|
|
|
|
# This folder is cached between builds
|
|
|
|
# http://docs.gitlab.com/ce/ci/yaml/README.html#cache
|
|
|
|
cache:
|
|
|
|
paths:
|
|
|
|
- node_modules/
|
|
|
|
|
|
|
|
test:6:
|
2017-02-28 16:11:34 -05:00
|
|
|
image: node:6-alpine
|
2017-02-28 16:14:17 -05:00
|
|
|
script: yarn run test
|
2016-07-20 14:59:25 -04:00
|
|
|
|
|
|
|
test:latest:
|
2017-02-28 16:11:34 -05:00
|
|
|
image: node:alpine
|
2017-02-28 16:14:17 -05:00
|
|
|
script: yarn run test
|