mirror of
https://github.com/QData/TextAttack.git
synced 2021-10-13 00:05:06 +03:00
update travis for jenkins
This commit is contained in:
@@ -5,9 +5,9 @@ before_install:
|
||||
- python --version
|
||||
- python -m pip install --upgrade pip
|
||||
- pip install black pytest pytest-xdist
|
||||
- rm -rf /home/travis/.cache/textattack
|
||||
install:
|
||||
- pip install -e .
|
||||
script:
|
||||
- black . --check
|
||||
- travis_wait 20 pytest tests -vx --dist=loadfile -n auto
|
||||
# Run the non-slow tests. (Slow tests run on Jenkins.)
|
||||
- pytest tests -vx --dist=loadfile -n auto -k-slow
|
||||
|
||||
@@ -3,3 +3,5 @@
|
||||
[pytest]
|
||||
addopts = -ra
|
||||
testpaths = tests
|
||||
markers =
|
||||
slow: a test that takes >60s to run. we don't run these on travis.
|
||||
|
||||
@@ -124,6 +124,7 @@ attack_test_params = [
|
||||
|
||||
|
||||
@pytest.mark.parametrize("name, command, sample_output_file", attack_test_params)
|
||||
@pytest.mark.slow
|
||||
def test_command_line_attack(capsys, name, command, sample_output_file):
|
||||
""" Runs attack tests and compares their outputs to a reference file.
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user