forked from meta-toolkit/metapy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.appveyor.yml
57 lines (54 loc) · 2.5 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
version: '{build}'
platform: x64
configuration: Release
os: Visual Studio 2015
environment:
MSYSTEM: MINGW64
matrix:
- PYTHON_PATH: C:/Python27-x64
PYTHON_VERSION: 27
- PYTHON_PATH: C:/Python33-x64
PYTHON_VERSION: 33
- PYTHON_PATH: C:/Python34-x64
PYTHON_VERSION: 34
- PYTHON_PATH: C:/Python35-x64
PYTHON_VERSION: 35
- PYTHON_PATH: C:/Python36-x64
PYTHON_VERSION: 36
artifacts:
- path: 'dist\*.whl'
name: 'Wheels'
install:
- set PATH=%PYTHON_PATH%;%PYTHON_PATH%\Scripts;C:\msys64\usr\bin;%PATH%
- bash -lc ""
- bash -lc "pacman --noconfirm --needed -Sy bash pacman pacman-mirrors msys2-runtime msys2-runtime-devel"
# kludge for error: "mingw-w64-x86_64-gcc: /mingw64/etc/gdbinit exists in filesystem"
- bash -lc "rm -f /mingw64/etc/gdbinit"
# we don't actually need ada, fortran, libgfortran, or objc, but in
# order to update gcc we need to also update those packages as well...
- bash -lc "pacman --noconfirm -S mingw-w64-x86_64-{gcc,gcc-ada,gcc-fortran,gcc-libgfortran,gcc-objc,cmake,make,zlib}"
# as of 2017-08-16, msys2's cmake does broken things when linking
# executables leading to segfaults during indexing. The bug is
# introduced in cmake 3.9.1-1, so we manually downgrade to cmake
# 3.8.2-2 here.
- bash -lc "wget http://repo.msys2.org/mingw/x86_64/mingw-w64-x86_64-cmake-3.8.2-2-any.pkg.tar.xz"
- bash -lc "pacman --noconfirm -U mingw-w64-x86_64-cmake-3.8.2-2-any.pkg.tar.xz"
- python --version
- pip install --disable-pip-version-check --user --upgrade pip
- pip install wheel
# Python 3.3 and 3.4 on Windows don't seem to come with a libpython33.a
# or libpython34.a, so we need to generate one if it doesn't exist
- bash -lc "if [ ! -f $PYTHON_PATH/libs/libpython$PYTHON_VERSION.a ]; then cd $PYTHON_PATH/libs && gendef /c/windows/system32/python$PYTHON_VERSION.dll && dlltool --as-flags=--64 -m i386:x86-64 -k --output-lib libpython$PYTHON_VERSION.a --input-def python$PYTHON_VERSION.def; fi"
before_build:
- cd %APPVEYOR_BUILD_FOLDER%
- git submodule update --init --recursive
build_script:
- bash -lc "export PATH=/mingw64/bin:$PATH && cd $APPVEYOR_BUILD_FOLDER && pip wheel -w dist --verbose ./"
deploy:
description: 'metapy $(APPVEYOR_REPO_TAG_NAME)'
provider: GitHub
auth_token:
secure: 1wiaQIQwvj+mZew4b8pvXNh/yXAmeu6VkwDDOp6F1O5cEuio5xLsCZLyHe4agKWJ
artifact: 'Wheels'
on:
appveyor_repo_tag: true