.gitlab-ci.yml 582 Bytes
Newer Older
1 2 3
before_script:
    # Install dependencies
    - bash test/docker_install.sh > /dev/null
4
    - npm install
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30

services:
  - mysql:latest
  - postgres:latest

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:
  image: node:6
  script: npm run test

test:latest:
  image: node:latest
Timothy J Warren committed
31
  script: npm run test