Skip to content

Commit

Permalink
TOLP-4019 Removed test and push stages from GitLab CI
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-varley committed Jun 9, 2022
1 parent 60b1242 commit 55781ab
Showing 1 changed file with 0 additions and 77 deletions.
77 changes: 0 additions & 77 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,7 @@ include:
stages:
- lint
- build
- unit test
- push
- deploy
- integration test

build-api:
extends: .build-template
Expand All @@ -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:
Expand Down Expand Up @@ -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

0 comments on commit 55781ab

Please sign in to comment.