1
0
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:
Jack Morris
2020-06-17 15:38:38 -04:00
parent dddf722aa3
commit dbac606afc
3 changed files with 5 additions and 2 deletions

View File

@@ -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

View File

@@ -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.

View File

@@ -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.
"""