【发布时间】:2018-02-16 20:02:51
【问题描述】:
我们最近在 CircleCI 测试命令中添加了 flake8 Python linter 测试。但是,因为它在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 被切换。这可能吗?
【问题讨论】:
标签: circleci