mirror of
https://github.com/codespell-project/codespell.git
synced 2025-08-06 18:24:41 +08:00
35 lines
1003 B
YAML
35 lines
1003 B
YAML
clone_depth: 50
|
|
|
|
environment:
|
|
matrix:
|
|
- PYTHON: C:\Python37-x64
|
|
PYTHON_VERSION: 3.7
|
|
PYTHON_ARCH: 64
|
|
|
|
cache:
|
|
# Cache downloaded pip packages and built wheels.
|
|
- '%LOCALAPPDATA%\pip\Cache\http'
|
|
- '%LOCALAPPDATA%\pip\Cache\wheels'
|
|
|
|
install:
|
|
- "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%"
|
|
- "pip install pytest pytest-cov pytest-dependency setuptools flake8 coverage chardet codecov"
|
|
- "python setup.py develop"
|
|
|
|
build: false # Not a C# project, build stuff at the test step instead.
|
|
|
|
test_script:
|
|
- "codespell --help"
|
|
- "flake8"
|
|
- "pytest codespell_lib"
|
|
|
|
on_success:
|
|
- "codecov"
|
|
# Remove old or huge cache files to hopefully not exceed the 1GB cache limit.
|
|
# (adapted from PyInstaller)
|
|
- C:\cygwin\bin\find "%LOCALAPPDATA%\pip" -type f -mtime +360 -delete
|
|
- C:\cygwin\bin\find "%LOCALAPPDATA%\pip" -type f -size +10M -delete
|
|
- C:\cygwin\bin\find "%LOCALAPPDATA%\pip" -empty -delete
|
|
# Show size of cache
|
|
- C:\cygwin\bin\du -hs "%LOCALAPPDATA%\pip\Cache"
|