2020-03-14 22:55:13 +00:00
|
|
|
os: linux
|
2020-04-27 16:40:46 +00:00
|
|
|
dist: focal
|
2017-11-24 23:10:39 +00:00
|
|
|
language: python
|
2020-02-23 03:23:00 +00:00
|
|
|
python: 3.8
|
2019-07-08 15:27:51 +00:00
|
|
|
cache: pip
|
2020-02-23 03:23:00 +00:00
|
|
|
before_install: pip install --upgrade pip setuptools six
|
2020-05-22 06:10:11 +00:00
|
|
|
install: pip install black flake8
|
2020-09-23 11:24:32 +00:00
|
|
|
jobs:
|
|
|
|
include:
|
|
|
|
- name: Build
|
|
|
|
before_script:
|
|
|
|
- black --check . || true
|
|
|
|
- flake8 --ignore=E203,W503 --max-complexity=25 --max-line-length=88 --statistics --count .
|
|
|
|
- scripts/validate_filenames.py # no uppercase, no spaces, in a directory
|
|
|
|
- pip install -r requirements.txt # fast fail on black, flake8, validate_filenames
|
|
|
|
script:
|
2020-09-23 11:30:13 +00:00
|
|
|
- mypy --ignore-missing-imports . || true # https://github.com/python/mypy/issues/7907
|
2020-09-23 11:24:32 +00:00
|
|
|
- pytest --doctest-modules --ignore=project_euler/ --durations=10 --cov-report=term-missing:skip-covered --cov=. .
|
|
|
|
- name: Project Euler
|
2020-09-28 06:18:19 +00:00
|
|
|
before_script:
|
|
|
|
- pip install pytest-cov pytest-subtests
|
|
|
|
- pytest --tb=no --no-summary --capture=no project_euler/validate_solutions.py || true # fail fast on wrong solution
|
2020-09-23 11:24:32 +00:00
|
|
|
script:
|
|
|
|
- pytest --doctest-modules --durations=10 --cov-report=term-missing:skip-covered --cov=project_euler/ project_euler/
|
2020-09-23 11:30:13 +00:00
|
|
|
after_success:
|
|
|
|
- scripts/build_directory_md.py 2>&1 | tee DIRECTORY.md
|
2020-06-08 12:11:01 +00:00
|
|
|
notifications:
|
|
|
|
webhooks: https://www.travisbuddy.com/
|
2020-06-10 10:40:52 +00:00
|
|
|
on_success: never
|