From 385617fe391b0e5cdaf9d3bb19e47fa7b8be2772 Mon Sep 17 00:00:00 2001 From: Karl-Philipp Wulfert Date: Tue, 2 Apr 2019 18:05:11 +0200 Subject: [PATCH] ci: allow test job to fail --- .gitlab-ci.yml | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index bfbd41d6..09f14605 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -10,7 +10,7 @@ stages: - test - deploy -build:build: +build: stage: build script: - npm install @@ -20,19 +20,28 @@ build:build: - lib expire_in: 1 week -test:audit: +audit: stage: test script: - - npm install - npm audit + allow_failure: true + except: + - schedules -test:mocha: +scheduled-audit: + stage: test + script: + - npm audit + only: + - schedules + +mocha: stage: test script: - npm install - npm test -deploy:pages: +pages: stage: deploy script: - npm install @@ -44,10 +53,10 @@ deploy:pages: paths: - public -deploy:image: +docker: image: registry.gitlab.com/openstapps/projectmanagement/builder:latest dependencies: - - build:build + - build stage: deploy variables: DOCKER_DRIVER: overlay2