feat: utilize api-cli for e2e integration test

This commit is contained in:
Rainer Killinger
2020-04-14 12:56:37 +02:00
committed by Rainer Killinger
parent bbbe4d5f1f
commit ce06e735be
7 changed files with 943 additions and 876 deletions

View File

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