Nodejs.gitlab-ci.yml 729 Bytes
Newer Older
1 2 3 4 5 6
# Official framework image. Look for the different tagged releases at:
# https://hub.docker.com/r/library/node/tags/
image: node:latest

# Pick zero or more services to be used on all builds.
# Only needed when using a docker container to run your tests in.
7
# Check out: http://docs.gitlab.com/ce/ci/docker/using_docker_images.html#what-is-a-service
8 9 10 11 12 13 14 15 16
services:
  - mysql:latest
  - redis:latest
  - postgres:latest

# This folder is cached between builds
# http://docs.gitlab.com/ce/ci/yaml/README.html#cache
cache:
  paths:
Will Hall's avatar
Will Hall committed
17
    - node_modules/
18 19 20

test_async:
  script:
Will Hall's avatar
Will Hall committed
21 22
    - npm install
    - node ./specs/start.js ./specs/async.spec.js
23 24 25

test_db:
  script:
Will Hall's avatar
Will Hall committed
26 27
    - npm install
    - node ./specs/start.js ./specs/db-postgres.spec.js