ci: seperate audit jobs from test stage

This commit is contained in:
Rainer Killinger
2020-02-11 15:00:09 +01:00
parent d364df38de
commit 5456d4e7c0

View File

@@ -11,6 +11,7 @@ before_script:
stages:
- build
- test
- audit
- publish
- deploy
@@ -38,7 +39,7 @@ package:
- lib
audit:
stage: test
stage: audit
script:
- npm audit
allow_failure: true
@@ -46,13 +47,13 @@ audit:
- schedules
scheduled-audit:
stage: test
stage: audit
script:
- npm audit
only:
- schedules
mocha:
unit:
stage: test
script:
- npm test
@@ -80,8 +81,8 @@ docker:
- docker:dind
script:
- docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN registry.gitlab.com
- docker build -t registry.gitlab.com/openstapps/api/cli:$CI_BUILD_REF_NAME .
- docker push registry.gitlab.com/openstapps/api/cli:$CI_BUILD_REF_NAME
- docker build -t registry.gitlab.com/openstapps/api/cli:$CI_COMMIT_REF_NAME .
- docker push registry.gitlab.com/openstapps/api/cli:$CI_COMMIT_REF_NAME
- docker build -t registry.gitlab.com/openstapps/api/cli:latest .
- docker push registry.gitlab.com/openstapps/api/cli:latest
tags: