Do not check celery status during unit tests
This commit is contained in:
parent
6d854b86ac
commit
cd4e1ead62
|
@ -44,9 +44,9 @@ matrix:
|
|||
- docker-compose -f $dcfile_postgres run --workdir="/app" --no-deps --rm web bash -c "pip3 freeze"
|
||||
- docker-compose -f $dcfile_postgres run --workdir="/app/controller" --no-deps --rm driver gradle build
|
||||
- docker-compose -f $dcfile_postgres run --workdir="/app" --no-deps --rm web bash -c "python3 -m unittest discover -s analysis/tests -v"
|
||||
- docker-compose -f $dcfile_postgres run --rm web bash -c "./wait-for-it.sh && python3 manage.py makemigrations website && python3 manage.py test --noinput -v 2"
|
||||
- docker-compose -f $dcfile_postgres run --rm web bash -c "sed -i 's/CHECK_CELERY = True/CHECK_CELERY = False/' website/settings/constants.py && ./wait-for-it.sh && python3 manage.py makemigrations website && python3 manage.py test --noinput -v 2"
|
||||
- docker-compose -f $dcfile_postgres rm -f -s -v
|
||||
- docker-compose -f $dcfile_mysql run --rm web bash -c "./wait-for-it.sh && python3 manage.py makemigrations website && python3 manage.py test --noinput -v 2"
|
||||
- docker-compose -f $dcfile_mysql run --rm web bash -c "sed -i 's/CHECK_CELERY = True/CHECK_CELERY = False/' website/settings/constants.py && ./wait-for-it.sh && python3 manage.py makemigrations website && python3 manage.py test --noinput -v 2"
|
||||
- docker-compose -f $dcfile_mysql rm -f -s -v
|
||||
after_success: true
|
||||
before_deploy:
|
||||
|
|
|
@ -43,7 +43,7 @@ then
|
|||
|
||||
elif [ "$service" = "web" ]
|
||||
then
|
||||
apt_pkgs="python3-dev gcc g++ mysql-client libmysqlclient-dev python-mysqldb postgresql-client"
|
||||
apt_pkgs="python3-dev gcc g++ mysql-client libmysqlclient-dev python-mysqldb postgresql-client telnet"
|
||||
|
||||
rm_pkgs="gcc g++"
|
||||
|
||||
|
|
Loading…
Reference in New Issue