Skip to content

Commit

Permalink
Testing new runner
Browse files Browse the repository at this point in the history
  • Loading branch information
glogiotatidis committed Apr 27, 2020
1 parent 4bb7234 commit 385adcb
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ stages:
build-images:
stage: build
tags:
- meao
- ec2-54-184-139-53.us-west-2.compute.amazonaws.com
script:
- docker build -t ${DOCKER_IMAGE_TAG} --build-arg GIT_SHA=${CI_COMMIT_SHA} --pull .
- docker push ${DOCKER_IMAGE_TAG}
Expand All @@ -34,14 +34,14 @@ build-images:
check-migrations:
extends: .test-stage
tags:
- meao
- ec2-54-184-139-53.us-west-2.compute.amazonaws.com
script:
- ${DOCKER_RUN_CMD} bash -c './manage.py makemigrations | grep "No changes detected"'

run-flake8:
extends: .test-stage
tags:
- meao
- ec2-54-184-139-53.us-west-2.compute.amazonaws.com
rules:
- allow_failure: true
script:
Expand All @@ -50,16 +50,15 @@ run-flake8:
run-unit-tests:
extends: .test-stage
tags:
- meao
- ec2-54-184-139-53.us-west-2.compute.amazonaws.com
coverage: '/TOTAL.+ ([0-9]{1,3}%)/'
script:
- ${DOCKER_RUN_CMD} bash -c 'coverage run ./manage.py test --parallel; coverage report'

.deploy:
stage: deploy
tags:
- meao
- aws
- ec2-54-184-139-53.us-west-2.compute.amazonaws.com
script:
- bin/update-config.sh

Expand Down

0 comments on commit 385adcb

Please sign in to comment.