-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.appveyor.yml
47 lines (37 loc) · 1.47 KB
/
.appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# AppVeyor.com is a Continuous Integration service to build and run tests under
# Windows
environment:
global:
CONDA_PATH: "C:\\Miniconda3-x64"
matrix:
- PYTHON_VERSION: "3.7"
platform: x64
cache:
- '%LOCALAPPDATA%\pip\Cache'
install:
# Append webdriver paths
- "SET PATH=%PATH%;C:\\Tools\\WebDriver;C:\\Program Files (x86)\\Mozilla Firefox"
# Clear tmpdir (sometimes left behind by appveyor?)
- rmdir /s /q %APPVEYOR_BUILD_FOLDER%\\tmp & exit /b 0
# Setup conda environment
- "%CONDA_PATH%\\Scripts\\activate.bat"
# Install the build and runtime dependencies of the project.
- conda update conda -y
- conda install -q --yes python=%PYTHON_VERSION% conda pip pytest pytest-xdist pytest-timeout filelock selenium conda-build bzip2 pympler
- python -m pip install -U pip
- python -m pip install pytest-rerunfailures json5 pympler
# Check that we have the expected version of Python
- python --version
build_script:
# In-place build
- python -m pip install .
- dir asv
test_script:
- python -m pytest -l --basetemp=%APPVEYOR_BUILD_FOLDER%\\tmp -v --environment-type=conda --webdriver=ChromeHeadless --timeout=300 --durations=100 test
after_build:
# Clear up pip cache
- 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"