Test runner
This commit is contained in:
parent
307abddbbf
commit
778162922e
4
.gitignore
vendored
4
.gitignore
vendored
|
|
@ -21,4 +21,6 @@ logs/
|
|||
/geoip_db/
|
||||
|
||||
# dev
|
||||
./docker-compose.override.yml
|
||||
./docker-compose.override.yml
|
||||
|
||||
celerybeat-schedule
|
||||
|
|
|
|||
|
|
@ -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.
Loading…
Reference in New Issue
Block a user