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
- 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