forked from igraph/igraph
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
69 lines (56 loc) · 2.63 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
64
65
66
67
68
69
# Ignore branches with names starting with certain keywords:
branches:
except:
- /^(github|travis)\/.+$/
# We are using Python 3.5 because Python requires MSVC 14 from
# version 3.5 onwards so it does not matter which Python version we pick as
# long as it's later than 3.5.
environment:
PATH: C:\msys64\usr\bin;C:\msys64\mingw64\bin;C:\Windows\System32;C:\Windows;%PATH%
MSYSTEM: MINGW64
TARGET_ARCH: "x64"
matrix:
- MSVC_VERSION: "14"
PYTHON_VERSION: "3.5"
- MSVC_VERSION: "NONE"
# We always use a 64-bit machine, but can build x86 distributions
# with the PYTHON_ARCH variable (which is used by CMD_IN_ENV).
platform:
- x64
init:
- cmd: "ECHO MSVC_VERSION=%MSVC_VERSION%"
# all our builds have to happen in install...
build: false
install:
- cmd: set PYTHONUNBUFFERED=1
# update msys2 keyring first
- C:\msys64\usr\bin\bash -lc "curl -O http://repo.msys2.org/msys/x86_64/msys2-keyring-r21.b39fb11-1-any.pkg.tar.xz"
- C:\msys64\usr\bin\bash -lc "curl -O http://repo.msys2.org/msys/x86_64/msys2-keyring-r21.b39fb11-1-any.pkg.tar.xz.sig"
- C:\msys64\usr\bin\bash -lc "pacman --noconfirm -U msys2-keyring-r21.b39fb11-1-any.pkg.tar.xz"
# update msys2
- C:\msys64\usr\bin\bash -lc "pacman --needed --noconfirm -Sy pacman-mirrors"
- C:\msys64\usr\bin\bash -lc "pacman --noconfirm -Sy"
- C:\msys64\usr\bin\bash -lc "pacman --needed --noconfirm -S zstd"
- C:\msys64\usr\bin\bash -lc "pacman --needed --noconfirm -S autoconf automake bison flex"
- C:\msys64\usr\bin\bash -lc "pacman --needed --noconfirm -S libxml2-devel zip xz"
# Now start with the build: first the msys2 based one
- cmd: bash bootstrap.sh
- cmd: bash configure --enable-verify-finally
# now make the msvc-specific distribution
- cmd: if [%MSVC_VERSION%] NEQ [NONE] make msvc
- cmd: if [%MSVC_VERSION%] NEQ [NONE] cd igraph-*-msvc
# and run the build (use make or msbuild.exe, depending on whether we use MSVC)
- cmd: if %MSVC_VERSION%==NONE make
- cmd: if %MSVC_VERSION%==14 call "%VS140COMNTOOLS%\vsvars32.bat"
- cmd: if %MSVC_VERSION%==14 devenv /upgrade igraph.vcproj
- cmd: if %MSVC_VERSION%==14 msbuild.exe igraph.vcxproj /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
test_script:
- cmd: cd "%APPVEYOR_BUILD_FOLDER%"
- cmd: set "PATH=%APPVEYOR_BUILD_FOLDER%\src\.libs;%PATH%"
- cmd: path
- cmd: if %MSVC_VERSION%==NONE make check
on_failure:
- cmd: echo zipping everything after a failure...
- cmd: cd "%APPVEYOR_BUILD_FOLDER%"
- cmd: 7z a failed_state.zip . |grep -v "Compressing"
- cmd: appveyor PushArtifact failed_state.zip