Gitlab
This commit is contained in:
parent
f9210edfc6
commit
b3479983aa
1 changed files with 30 additions and 0 deletions
30
.gitlab-ci.yml
Normal file
30
.gitlab-ci.yml
Normal file
|
@ -0,0 +1,30 @@
|
|||
image: node:6
|
||||
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
|
||||
script:
|
||||
- npm test
|
||||
tags:
|
||||
- docker
|
||||
|
||||
cache:
|
||||
key: "$CI_BUILD_REF_NAME"
|
||||
untracked: true
|
||||
paths:
|
||||
- node_modules
|
Loading…
Add table
Add a link
Reference in a new issue