From 8852861e5f83dd4400c79c73aaadcf7348c0aa65 Mon Sep 17 00:00:00 2001 From: Levi Olson Date: Mon, 30 Apr 2018 14:58:02 -0500 Subject: [PATCH] adding stages to deployment scripts --- .gitlab-ci.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 0964aa9..cc946e2 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -7,16 +7,22 @@ cache: paths: - node_modules/ + stages: + - test + - deploy + before_script: - apt-get update -qq && apt-get install -y -qq sshpass test_coverage: + stage: test script: - npm install - npm install --global mocha nyc - npm run coverage deploy_prod: + stage: deploy script: - echo "Deploying to Production" - npm install