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/
# dev
./docker-compose.override.yml
./docker-compose.override.yml
celerybeat-schedule

View File

@ -1,48 +1,39 @@
image: docker:latest
stages:
- hello
#stages:
# - build
# - test
- build
- test
# - deploy
# - clean
#
- clean
before_script:
- apk add --update python python-dev py-pip gcc libc-dev libffi-dev openssl-dev make
- pip install docker-compose
hello:
clean:
stage: clean
script:
- echo 'Test GitLab CI'
only:
- feature/develop_ci
- 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
#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:
# stage: deploy
# only:

Binary file not shown.