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