.gitlab-ci.yml 366 Bytes
Newer Older
Even Gultvedt's avatar
commit  
Even Gultvedt committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
image: node:8

# Set up MySQL test-database
services:
  - mysql:5.5

variables:
  MYSQL_DATABASE: supertestdb
  MYSQL_ROOT_PASSWORD: secret

#install node libraries
before_script:
  - cd server
  - npm install
Even Gultvedt's avatar
Even Gultvedt committed
15
16
  #- cd ../client
  #- npm install
Even Gultvedt's avatar
commit  
Even Gultvedt committed
17
18
19
20
21

# Run JEST tests
run_tests:
  stage: test
  script:
Even Gultvedt's avatar
Even Gultvedt committed
22
23
24
    - cd ../server
    - npm test
    - cd ../client
Even Gultvedt's avatar
commit  
Even Gultvedt committed
25
    - npm test