mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-07 05:52:57 +00:00
feat: utilize api-cli for e2e integration test
This commit is contained in:
committed by
Rainer Killinger
parent
bbbe4d5f1f
commit
ce06e735be
@@ -3,6 +3,7 @@ image: registry.gitlab.com/openstapps/projectmanagement/node
|
||||
stages:
|
||||
- build
|
||||
- test
|
||||
- audit
|
||||
- publish
|
||||
- deploy
|
||||
|
||||
@@ -16,15 +17,30 @@ build:
|
||||
paths:
|
||||
- node_modules/
|
||||
|
||||
test:
|
||||
unit:
|
||||
stage: test
|
||||
dependencies:
|
||||
- build
|
||||
script:
|
||||
- npm run test
|
||||
- npm run test-unit
|
||||
|
||||
audit:
|
||||
integration:
|
||||
image: registry.gitlab.com/openstapps/projectmanagement/builder
|
||||
stage: test
|
||||
dependencies:
|
||||
- build
|
||||
variables:
|
||||
DOCKER_DRIVER: overlay2
|
||||
services:
|
||||
- docker:dind
|
||||
script:
|
||||
- docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN $CI_REGISTRY
|
||||
- docker-compose -f integration-test.yml pull && docker-compose -f integration-test.yml up --abort-on-container-exit --exit-code-from apicli
|
||||
tags:
|
||||
- docker
|
||||
|
||||
audit:
|
||||
stage: audit
|
||||
dependencies:
|
||||
- build
|
||||
script:
|
||||
@@ -45,13 +61,13 @@ pages:
|
||||
- public
|
||||
|
||||
scheduled-audit:
|
||||
stage: test
|
||||
stage: audit
|
||||
script:
|
||||
- npm audit
|
||||
only:
|
||||
- schedules
|
||||
|
||||
test:ci:
|
||||
ci:
|
||||
stage: test
|
||||
dependencies:
|
||||
- build
|
||||
|
||||
Reference in New Issue
Block a user