-
Notifications
You must be signed in to change notification settings - Fork 0
/
.appveyor.yml
90 lines (69 loc) · 2.71 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
shallow_clone: true
platform:
# - x86
- x64
configuration:
# - Debug
- Release
image:
- Visual Studio 2015
# - Visual Studio 2017
cache:
environment:
global:
PYTHON: "C:\\conda"
matrix:
- PYTHON_VERSION: "3.6"
PYTHON_ARCH: "64"
skip_commits:
# Add [av skip] to commit messages
message: /\[av skip\]/
# # To allow remote connection to appveyor
# init:
# - ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
install:
############################################################################
# Install Win packages
############################################################################
- choco install dependencywalker -y --allow-empty-checksums
############################################################################
# Install Conda
############################################################################
- "git clone --depth 1 git://github.com/astropy/ci-helpers.git"
- "powershell ci-helpers/appveyor/install-miniconda.ps1"
- "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%"
############################################################################
# Install CMake
############################################################################
- ps: |
if (![IO.File]::Exists("C:\cmake-3.10.1-win64-x64\bin\cmake.exe")) {
Start-FileDownload 'https://cmake.org/files/v3.10/cmake-3.10.1-win64-x64.zip'
7z x -y cmake-3.10.1-win64-x64.zip -oC:\
}
$env:PATH="C:\cmake-3.10.1-win64-x64\bin;$env:PATH"
############################################################################
# Install Conda
############################################################################
- conda config --add channels conda-forge
- conda install libmatio
# fix PATH to have dumpbin
- set PATH=%PATH%;C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin
before_build:
- cd %APPVEYOR_BUILD_FOLDER%
- ps: |
mkdir build
cd build
- ps: $env:matio_dir='C:\conda\Library\'
- ps: $env:CMAKE_PREFIX_PATH='C:\conda\Library\cmake'
- cmake -G "Visual Studio 14 2015 Win64" ..
build_script:
- cmake --build . --config %CONFIGURATION%
test_script:
- call %APPVEYOR_BUILD_FOLDER%\build\%CONFIGURATION%\hello.exe
# Check dependencies
- depends.exe /f:1 /c /oc:c:\projects\depends.txt %APPVEYOR_BUILD_FOLDER%\build\%CONFIGURATION%\hello.exe
- appveyor PushArtifact C:\projects\depends.txt
- dumpbin /dependents %APPVEYOR_BUILD_FOLDER%\build\%CONFIGURATION%\hello.exe
deploy: off
# on_finish:
# - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))