-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TOLP-4019 Removed test and push stages from GitLab CI
- Loading branch information
1 parent
60b1242
commit 55781ab
Showing
1 changed file
with
0 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,10 +15,7 @@ include: | |
stages: | ||
- lint | ||
- build | ||
- unit test | ||
- push | ||
- deploy | ||
- integration test | ||
|
||
build-api: | ||
extends: .build-template | ||
|
@@ -38,57 +35,6 @@ build-ui: | |
DOCKERFILE: 'submissions-ui/Dockerfile' | ||
NAME: "submissions-ui" | ||
|
||
build-ui-test: | ||
extends: .build-template | ||
variables: | ||
DOCKER_HOST: "tcp://docker:2375" | ||
DOCKER_TLS_CERTDIR: '' | ||
PART: "submissions-ui" | ||
DOCKERFILE: 'submissions-ui/Dockerfile.dev' | ||
NAME: "submissions-ui-test" | ||
|
||
test-ui: | ||
image: $DOCKER_IMAGE | ||
stage: unit test | ||
services: | ||
- name: $DIND_IMAGE | ||
alias: docker | ||
variables: | ||
DOCKER_HOST: "tcp://docker:2375" | ||
DOCKER_TLS_CERTDIR: '' | ||
before_script: | ||
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY | ||
script: | ||
- docker run -e CI=true $CI_REGISTRY_IMAGE/submissions-ui-test:$CI_COMMIT_SHA yarn test | ||
except: | ||
- qa | ||
- staging | ||
- production | ||
|
||
push-api: | ||
extends: .push-template | ||
variables: | ||
GIT_STRATEGY: none | ||
DOCKER_HOST: "tcp://docker:2375" | ||
DOCKER_TLS_CERTDIR: '' | ||
NAME: submissions-api | ||
|
||
push-ui: | ||
extends: .push-template | ||
variables: | ||
GIT_STRATEGY: none | ||
DOCKER_HOST: "tcp://docker:2375" | ||
DOCKER_TLS_CERTDIR: '' | ||
NAME: submissions-ui | ||
|
||
push-ui-test: | ||
extends: .push-template | ||
variables: | ||
GIT_STRATEGY: none | ||
DOCKER_HOST: "tcp://docker:2375" | ||
DOCKER_TLS_CERTDIR: '' | ||
NAME: submissions-ui-test | ||
|
||
deploy-qa: | ||
extends: .swarm-deploy-template | ||
environment: | ||
|
@@ -131,26 +77,3 @@ deploy-production: | |
only: | ||
- production | ||
when: manual | ||
|
||
test-api: | ||
extends: .swarm-deploy-template | ||
image: $DOCKER_IMAGE | ||
stage: integration test | ||
resource_group: testing | ||
services: | ||
- name: $DIND_IMAGE | ||
alias: docker | ||
environment: | ||
name: testing | ||
url: http://172.27.21.168:8000 | ||
variables: | ||
DOCKER_HOST: "ssh://[email protected]" | ||
EXTRA_DEPLOY_FILES: "-c docker-compose.gitlab-test.yml" | ||
STACK_NAME: submissions | ||
script: | ||
- sleep 60 | ||
- docker exec $(docker ps -q -f name="submissions_submissions-api") bash -c "pytest -v" | ||
except: | ||
- qa | ||
- staging | ||
- production |