Update tests for gitlab

This commit is contained in:
Jonathan Cremin 2016-05-24 18:03:10 +01:00
parent b3479983aa
commit 13400ea4d3
5 changed files with 33 additions and 24 deletions

View file

@ -3,21 +3,14 @@ services:
- mongo
stages:
- seed
- test
seed:
stage: seed
image: mongo
script:
- mongo --host mongo hostr test/fixtures/mongo-user.js test/fixtures/mongo-file.js
tags:
- docker
test:
stage: test
before_script:
- npm install
- jspm install
- node test/fixtures/mongo-user.js test/fixtures/mongo-file.js
script:
- npm test
tags:
@ -27,4 +20,5 @@ cache:
key: "$CI_BUILD_REF_NAME"
untracked: true
paths:
- node_modules
- node_modules
- web/public/jspm_packages