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-09-23 11:24:32 +00:00
|
|
|
jobs:
|
|
|
|
include:
|
|
|
|
- name: Build
|
2020-09-30 17:26:38 +00:00
|
|
|
install: pip install pytest-cov -r requirements.txt
|
2020-09-23 11:24:32 +00:00
|
|
|
script:
|
|
|
|
- pytest --doctest-modules --ignore=project_euler/ --durations=10 --cov-report=term-missing:skip-covered --cov=. .
|
|
|
|
- name: Project Euler
|
2020-09-30 17:26:38 +00:00
|
|
|
install:
|
2020-09-28 06:18:19 +00:00
|
|
|
- pip install pytest-cov pytest-subtests
|
2020-09-30 17:26:38 +00:00
|
|
|
before_script:
|
2020-09-28 06:18:19 +00:00
|
|
|
- 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:
|
2020-09-30 17:26:38 +00:00
|
|
|
webhooks: https://www.travisbuddy.com/
|
|
|
|
on_success: never
|