Add cleanup commands to GitLab CI

This commit is contained in:
Jan Tuomi
2017-03-06 02:01:47 +02:00
parent 804afeb057
commit 0ed36a63a4
+3
View File
@@ -4,6 +4,9 @@ all_tests:
script:
- sh ./scripts/autoinstall.sh
- docker-compose run web python manage.py test
after_script:
- docker-compose exec web find . -path '*/migrations*' -delete
- docker-compose exec web find . -type f -name '*.pyc' -delete
when: on_success
only:
- develop