Test runner

This commit is contained in:
Виктор Гладких 2019-10-23 10:39:10 +03:00
parent 307abddbbf
commit 778162922e
3 changed files with 27 additions and 34 deletions

4
.gitignore vendored
View File

@ -21,4 +21,6 @@ logs/
/geoip_db/ /geoip_db/
# dev # dev
./docker-compose.override.yml ./docker-compose.override.yml
celerybeat-schedule

View File

@ -1,48 +1,39 @@
image: docker:latest image: docker:latest
stages: stages:
- hello - build
- test
#stages:
# - build
# - test
# - deploy # - deploy
# - clean - clean
#
before_script: before_script:
- apk add --update python python-dev py-pip gcc libc-dev libffi-dev openssl-dev make - apk add --update python python-dev py-pip gcc libc-dev libffi-dev openssl-dev make
- pip install docker-compose - pip install docker-compose
hello: clean:
stage: clean
script: script:
- echo 'Test GitLab CI' - docker-compose -f compose-ci.yml stop
only: - docker-compose -f compose-ci.yml rm --force gm_app
- feature/develop_ci when: always
buid:
stage: build
script:
- docker-compose -f compose-ci.yml build gm_app
when: always
test:
stage: test
script:
- docker-compose -f compose-ci.yml run agro python manage.py test -v 3 --noinput
when: always
#clean:
# stage: clean
# script:
# - docker-compose -f compose-ci.yml stop
# - docker-compose -f compose-ci.yml rm --force gm_app
# when: always
#
#
#buid:
# stage: build
# script:
# - docker-compose -f compose-ci.yml build gm_app
# when: always
#
#
#test:
# stage: test
# script:
# - docker-compose -f compose-ci.yml run agro python manage.py test -v 3 --noinput
# when: always
#
#
#deploy-develop: #deploy-develop:
# stage: deploy # stage: deploy
# only: # only:

Binary file not shown.