ci: allow test job to fail

This commit is contained in:
Karl-Philipp Wulfert
2019-04-02 18:05:11 +02:00
parent 9cf6fde050
commit 385617fe39

View File

@@ -10,7 +10,7 @@ stages:
- test - test
- deploy - deploy
build:build: build:
stage: build stage: build
script: script:
- npm install - npm install
@@ -20,19 +20,28 @@ build:build:
- lib - lib
expire_in: 1 week expire_in: 1 week
test:audit: audit:
stage: test stage: test
script: script:
- npm install
- npm audit - npm audit
allow_failure: true
except:
- schedules
test:mocha: scheduled-audit:
stage: test
script:
- npm audit
only:
- schedules
mocha:
stage: test stage: test
script: script:
- npm install - npm install
- npm test - npm test
deploy:pages: pages:
stage: deploy stage: deploy
script: script:
- npm install - npm install
@@ -44,10 +53,10 @@ deploy:pages:
paths: paths:
- public - public
deploy:image: docker:
image: registry.gitlab.com/openstapps/projectmanagement/builder:latest image: registry.gitlab.com/openstapps/projectmanagement/builder:latest
dependencies: dependencies:
- build:build - build
stage: deploy stage: deploy
variables: variables:
DOCKER_DRIVER: overlay2 DOCKER_DRIVER: overlay2