2020-03-15 06:55:13 +08:00
|
|
|
os: linux
|
2020-04-28 00:40:46 +08:00
|
|
|
dist: focal
|
2017-11-25 07:10:39 +08:00
|
|
|
language: python
|
2020-02-23 11:23:00 +08:00
|
|
|
python: 3.8
|
2019-07-08 23:27:51 +08:00
|
|
|
cache: pip
|
2020-02-23 11:23:00 +08:00
|
|
|
before_install: pip install --upgrade pip setuptools six
|
2020-05-22 14:10:11 +08:00
|
|
|
install: pip install black flake8
|
2020-09-23 19:24:32 +08: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 19:30:13 +08:00
|
|
|
- mypy --ignore-missing-imports . || true # https://github.com/python/mypy/issues/7907
|
2020-09-23 19:24:32 +08:00
|
|
|
- pytest --doctest-modules --ignore=project_euler/ --durations=10 --cov-report=term-missing:skip-covered --cov=. .
|
|
|
|
- name: Project Euler
|
|
|
|
before_script: pip install pytest-cov
|
|
|
|
script:
|
|
|
|
- pytest --doctest-modules --durations=10 --cov-report=term-missing:skip-covered --cov=project_euler/ project_euler/
|
2020-09-23 19:30:13 +08:00
|
|
|
after_success:
|
|
|
|
- scripts/build_directory_md.py 2>&1 | tee DIRECTORY.md
|
2020-06-08 20:11:01 +08:00
|
|
|
notifications:
|
|
|
|
webhooks: https://www.travisbuddy.com/
|
2020-06-10 18:40:52 +08:00
|
|
|
on_success: never
|