forked from LLNL/zfp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
67 lines (56 loc) · 2.2 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
version: 1.0.0-{build}
environment:
# zfpy only build for Release builds (otherwise need debug python libs python27_d.lib)
matrix:
- COMPILER: msvc
GENERATOR: Visual Studio 15 2017 Win64
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
PLATFORM: x64
BUILD_TYPE: Release
PYTHON_VERSION: 35
- COMPILER: msvc
GENERATOR: Visual Studio 15 2017
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
PLATFORM: Win32
BUILD_TYPE: Release
PYTHON_VERSION: 35
- COMPILER: msvc
GENERATOR: Visual Studio 14 2015 Win64
PLATFORM: x64
BUILD_TYPE: Release
PYTHON_VERSION: 35
- COMPILER: msvc
GENERATOR: Visual Studio 14 2015
PLATFORM: Win32
BUILD_TYPE: Release
PYTHON_VERSION: 27
- COMPILER: mingw
GENERATOR: MinGW Makefiles
PLATFORM: Win32
BUILD_TYPE: Release
- COMPILER: mingw-w64
GENERATOR: MinGW Makefiles
PLATFORM: x64
BUILD_TYPE: Release
install:
- if "%COMPILER%"=="mingw" set PATH=C:\MinGW\bin;%PATH%
- if "%COMPILER%"=="mingw-w64" set PATH=C:\MinGW\bin;%PATH%
# set env vars for Python system dir (assumed to always be MSVC)
- ps: |
if ($env:PYTHON_VERSION) {
$env:PYTHON_DIR = "C:\Python$env:PYTHON_VERSION"
if ($env:PLATFORM -eq "x64") {
$env:PYTHON_DIR = "$env:PYTHON_DIR-x64"
}
$env:PYTHON_LIB_PATH = "$env:PYTHON_DIR\libs\python$env:PYTHON_VERSION.lib"
}
# placing these behind a conditional for some reason prevents CMake from picking up the virtualenv
- if "%COMPILER%"=="msvc" if "%BUILD_TYPE%"=="Release" set PATH=%PYTHON_DIR%;%PYTHON_DIR%\Scripts;%PATH%
- if "%COMPILER%"=="msvc" if "%BUILD_TYPE%"=="Release" pip install virtualenv
- if "%COMPILER%"=="msvc" if "%BUILD_TYPE%"=="Release" set VIRTUALENV_NAME=pyVirtualEnv
- if "%COMPILER%"=="msvc" if "%BUILD_TYPE%"=="Release" virtualenv %VIRTUALENV_NAME%
- if "%COMPILER%"=="msvc" if "%BUILD_TYPE%"=="Release" "%VIRTUALENV_NAME%\\Scripts\\activate.bat"
- if "%COMPILER%"=="msvc" if "%BUILD_TYPE%"=="Release" pip install -r python\requirements.txt
- if "%COMPILER%"=="msvc" if "%BUILD_TYPE%"=="Release" python --version
build_script:
- sh appveyor.sh