我们最近在我们的flake8测试命令中添加了一个CircleCI Python测试。但是,因为在python manage.py test之前运行Django测试,所以我无法在测试中看到任何实际错误:
#!/bin/bash -eo pipefail
cd lucy-web
source venv/bin/activate
python manage.py compilescss --verbosity 0
python manage.py collectstatic --clear --no-input --verbosity 0
flake8
python manage.py test
./dashboard/tests/test_families.py:1135:13: E128 continuation line under-indented for visual indent
./dashboard/tests/test_families.py:1147:13: E128 continuation line under-indented for visual indent
Exited with code 1我想用修改后的配置重新运行这些测试,在这个配置中,python manage.py test和flake8可以互换。这个是可能的吗?
发布于 2018-02-17 22:19:28
是。您可以在该作业中再次运行它们,这不是很好,或者使用CircleCI 2.0工作流,这是两个很棒的作业。一种是“传统”排序,另一种是反向排序。
然后,这两个作业可以并行运行,而不会真正增加构建时间。
恕我直言,
里卡多·费利西亚诺
开发人员布道者,CircleCI
https://stackoverflow.com/questions/48834062
复制相似问题