forked from ray-project/asv
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
63 lines (48 loc) · 2.02 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# AppVeyor.com is a Continuous Integration service to build and run tests under
# Windows
environment:
global:
PYTHON: "C:\\conda"
MINICONDA_VERSION: "latest"
CMD_IN_ENV: "cmd /E:ON /V:ON /C .\\.continuous-integration\\appveyor\\windows_sdk.cmd"
matrix:
- PYTHON_VERSION: "3.6"
platform: x64
PYTHON_ARCH: "64"
- PYTHON_VERSION: "2.7"
platform: x86
PYTHON_ARCH: "32"
cache:
- '%LOCALAPPDATA%\pip\Cache'
install:
# Clear tmpdir (sometimes left behind by appveyor?)
- rmdir /s /q %APPVEYOR_BUILD_FOLDER%\\tmp & exit /b 0
# Install miniconda using a powershell script.
- "powershell .continuous-integration/appveyor/install-miniconda.ps1"
- "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%"
# Install the build and runtime dependencies of the project.
- "conda update -q --yes conda"
- "conda install -q --yes python=%PYTHON_VERSION% conda six pip pytest pytest-xdist lockfile"
# Pre-download all necessary packages
- "python .continuous-integration/download_reqs.py --conda --pip=pip-cache"
- "set PIP_FIND_LINKS=file:///projects/asv/pip-cache"
# Tell conda to not use hardlinks: on Windows it's not possible
# to delete hard links to files in use, which causes problem when
# trying to cleanup environments during the tests
- "conda config --set always_copy True"
- "conda config --set allow_softlinks False"
# Check that we have the expected version of Python
- "python --version"
# In-place build
- "%CMD_IN_ENV% python setup.py build_ext -i"
# Not a .NET project
build: false
test_script:
- "python -m pytest -l --basetemp=%APPVEYOR_BUILD_FOLDER%\\tmp -vv -n 3 --offline 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"