From b3479983aa8edf0ccbb0962ef063d37b8a711c6e Mon Sep 17 00:00:00 2001 From: Jonathan Cremin Date: Tue, 24 May 2016 00:02:35 +0100 Subject: [PATCH] Gitlab --- .gitlab-ci.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..f0114a0 --- /dev/null +++ b/.gitlab-ci.yml @@ -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