|
|
|
|
@ -11,6 +11,7 @@ |
|
|
|
|
@story('deploy', ['on' => 'localhost']) |
|
|
|
|
clone_repository |
|
|
|
|
create_symlinks |
|
|
|
|
install_req |
|
|
|
|
run_tests |
|
|
|
|
update_symlinks |
|
|
|
|
deployment_option_cleanup |
|
|
|
|
@ -35,11 +36,18 @@ echo '>> Создание симлинков' |
|
|
|
|
@endif |
|
|
|
|
@endtask |
|
|
|
|
|
|
|
|
|
@task('run_tests', ['on' => 'localhost']) |
|
|
|
|
echo '>> Запускаем тесты' |
|
|
|
|
@task('install_req', ['on' => 'localhost']) |
|
|
|
|
echo '>> Подтягиваем зависимости' |
|
|
|
|
@if ($branch) |
|
|
|
|
cd {{ $new_release_dir }} |
|
|
|
|
source /www/servers/python-server/bin/activate && pip install -r requirements.txt && python manage.py migrate && python manage.py test |
|
|
|
|
source /www/servers/python-server/bin/activate && pip install -r requirements.txt |
|
|
|
|
@endif |
|
|
|
|
@endtask |
|
|
|
|
|
|
|
|
|
@task('run_tests', ['on' => 'localhost']) |
|
|
|
|
echo '>> Запускаем миграции тесты' |
|
|
|
|
@if ($branch) |
|
|
|
|
python manage.py migrate && python manage.py test |
|
|
|
|
@endif |
|
|
|
|
@endtask |
|
|
|
|
|
|
|
|
|
|