Skip to content

Commit 6c693e0

Browse files
committed
Create basic AppVeyor config for tksvg package
1 parent 79ac0fc commit 6c693e0

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.appveyor.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
environment:
2+
matrix:
3+
- PYTHON: "C:\\PYTHON38-x64"
4+
build: off
5+
install:
6+
- set PATH=C:\msys64\usr\bin;%PATH%
7+
# Load PGP Keys for Msys64
8+
- bash -lc "curl -O http://repo.msys2.org/msys/x86_64/msys2-keyring-r21.b39fb11-1-any.pkg.tar.xz"
9+
- bash -lc "curl -O http://repo.msys2.org/msys/x86_64/msys2-keyring-r21.b39fb11-1-any.pkg.tar.xz.sig"
10+
- bash -lc "pacman-key --verify msys2-keyring-r21.b39fb11-1-any.pkg.tar.xz.sig"
11+
- bash -lc "pacman -U --noconfirm --config <(echo) msys2-keyring-r21.b39fb11-1-any.pkg.tar.xz"
12+
# Kill gpg-agent due to bug in MSYS
13+
- TaskKill /IM gpg-agent.exe /F
14+
# Update known packages
15+
- bash -lc "pacman --needed --noconfirm -Syu"
16+
- bash -lc "pacman --needed --noconfirm -Sy"
17+
# Install Python build dependencies
18+
- "%PYTHON%\\python.exe -m pip install scikit-build nose"
19+
# Now using MinGW pkg-config and related executables
20+
- set PATH=C:\msys64\mingw64\bin;%PATH%
21+
# Download Dependencies (dependency walker)
22+
- appveyor DownloadFile https://github.com/lucasg/Dependencies/releases/download/v1.10/Dependencies_x64_Release.zip
23+
- 7z e Dependencies_x64_Release.zip -odeps -y
24+
# Add %PYTHON% to the path for libffi-7.dll
25+
- set PATH=%PYTHON%;C:\msys64\mingw64\lib;%PATH%
26+
build_script:
27+
- "%PYTHON%\\python.exe setup.py build bdist_wheel"
28+
- "%PYTHON%\\python.exe setup.py install"
29+
# Simplify PATH so as to test binary distribution
30+
- set PATH=C:\WINDOWS\system32;C:\WINDOWS
31+
test_script:
32+
- "%PYTHON%\\python.exe -m nose"
33+
artifacts:
34+
- path: "/dist/*.whl"
35+

0 commit comments

Comments
 (0)