Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Travis CI: Run failing pytest in allow_failures mode
  • Loading branch information
cclauss committed Jul 30, 2019
commit 429909bb0474870308748e79b029e0fec912968b
35 changes: 34 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,43 @@ python: 3.7
cache: pip
before_install: pip install --upgrade pip setuptools
install: pip install -r requirements.txt
matrix:
include:
- name: "Main tests"
# The following files currently fail pytests. See issues: #1016, #1044, #1080
# Here they are run allow_failures mode and when each passes pytest, it can be
# removed BOTH lists below. Complex now but simple once all files pass pytest.
- env: FILE=data_structures/stacks/balanced_parentheses.py
before_script: true # override main
script: pytest ${FILE} --doctest-modules
- env: FILE=data_structures/stacks/infix_to_postfix_conversion.py
before_script: true
script: pytest ${FILE} --doctest-modules
# - env: FILE=file_transfer_protocol/ftp_client_server.py
# before_script: true
# script: pytest ${FILE} --doctest-modules
- env: FILE=file_transfer_protocol/ftp_send_receive.py
before_script: true
script: pytest ${FILE} --doctest-modules
- env: FILE=machine_learning/linear_regression.py
before_script: true
script: pytest ${FILE} --doctest-modules
- env: FILE=machine_learning/perceptron.py
before_script: true
script: pytest ${FILE} --doctest-modules
- env: FILE=machine_learning/random_forest_classification/random_forest_classification.py
before_script: true
script: pytest ${FILE} --doctest-modules
- env: FILE=machine_learning/random_forest_regression/random_forest_regression.py
before_script: true
script: pytest ${FILE} --doctest-modules
allow_failures:
- before_script: true
before_script:
- black --check . || true
- flake8 . --count --select=E9,F401,F63,F7,F82 --show-source --statistics
script:
- scripts/validate_filenames.py # no uppercase and no spaces
- scripts/validate_filenames.py # no uppercase, no spaces, in a directory
- mypy --ignore-missing-imports .
- pytest . --doctest-modules
--ignore=data_structures/stacks/balanced_parentheses.py
Expand All @@ -19,6 +51,7 @@ script:
--ignore=machine_learning/perceptron.py
--ignore=machine_learning/random_forest_classification/random_forest_classification.py
--ignore=machine_learning/random_forest_regression/random_forest_regression.py

after_success:
- scripts/build_directory_md.py > DIRECTORY.md
- cat DIRECTORY.md