.gitlab-ci.yml 461 Bytes
Newer Older
1
image: node:6.12.2
2

3
4
5
6
7
8
9
10
services:
    - postgres:latest

variables:
    POSTGRES_DB: 'blendb_fixture'
    POSTGRES_USER: 'runner'
    POSTGRES_PASSWORD: ''

11
12
cache:
    paths:
13
        - node_modules
14
15
16
17
18
19

before_script:
    - npm install --silent

run_tests:
    script:
20
        - mv config/ci_test.yaml.example config/test.yaml
21
        - mv config/ci_test.env.example config/test.env
22
        - npm test
23
        - npm run lint
24
25
    tags:
        - node
26
        - postgres