-
Notifications
You must be signed in to change notification settings - Fork 36
/
appveyor.yml
105 lines (91 loc) · 3.35 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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
environment:
global:
P: "c:/projects/libs"
BOOSTROOT: c:\Libraries\boost_1_67_0
BOOST_LIBRARYDIR_WIN32: C:\Libraries\boost_1_67_0\lib32-msvc-14.0
BOOST_LIBRARYDIR_WIN64: C:\Libraries\boost_1_67_0\lib64-msvc-14.0
PYTHON: "C:/Python27"
PYTHON_VERSION: 2.7
MINICONDA: C:\Miniconda
# ACCOUNT:
# secure: F8Xu4syZJRRLmTnPDOUjr5bG7Lk6UburldIUuxZ/OJQ=
# Operating system (build VM template)
os: Visual Studio 2015
version: dynamomd-{build}
# scripts that are called at very beginning, before repo cloning
init:
# Disable popups as they hang the build as there is nobody to click on the OK button...
# Hanging the build is a lot less user friendly than reporting a build failure.
#
# Disable of system hard error popup
# See: https://msdn.microsoft.com/en-us/library/bb513638%28VS.85%29.aspx
- reg add "HKLM\SYSTEM\CurrentControlSet\Control\Windows" /f /v ErrorMode /d 2
# Disable the following popup on program failure:
# | ** <program name> has stopped working ** |
# | Windows can check online for a solution to the problem|
# | - Check online for a solution and close the program |
# | - Close the program |
# See: https://msdn.microsoft.com/en-us/library/bb513638%28VS.85%29.aspx
- reg add "HKLM\Software\Microsoft\Windows\Windows Error Reporting" /f /v DontShowUI /d 1
platform:
- Win32
- x64
configuration: Release
install:
#- cinst cmake.portable wget 7zip.commandline
- cinst wixtoolset
- "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%"
- "set PATH=%MINICONDA%;%MINICONDA%\\Scripts;%PATH%"
- conda config --set always_yes yes --set changeps1 no
- conda update -q conda
- conda info -a
- "conda create -q -n test-environment python=%PYTHON_VERSION% numpy scipy"
- activate test-environment
# - pip install XXX
clone_folder: c:\projects\dynamo
before_build:
#Xamarin (a unused SDK) fills the build log with warnings, so delete it
- del "C:\Program Files (x86)\MSBuild\14.0\Microsoft.Common.targets\ImportAfter\Xamarin.Common.targets"
- cmd: dir C:\Libraries
- echo "# Configuring..."
- cd c:\projects\dynamo
- cmd: md build
- cmd: cd build
- echo Running cmake...
- cmd: if "%platform%"=="Win32" cmake .. -G "Visual Studio 14 2015" -DCMAKE_BUILD_TYPE=%configuration% -DBOOSTROOT="%BOOSTROOT%" -DBOOST_LIBRARYDIR="%BOOST_LIBRARYDIR_WIN32%" -DPACKAGE_SUFFIX="-windows-32bit"
- cmd: if "%platform%"=="x64" cmake .. -G "Visual Studio 14 2015 Win64" -DCMAKE_BUILD_TYPE=%configuration% -DBOOSTROOT="%BOOSTROOT%" -DBOOST_LIBRARYDIR="%BOOST_LIBRARYDIR_WIN64%" -DPACKAGE_SUFFIX="-windows-64bit"
- cmd: cd ..
build_script:
- echo "# Building..."
- cd build
- cmake --build . --config %configuration%
- cpack -G WIX
- cpack -G ZIP
- cd ..
test_script:
- cd build
- set CTEST_OUTPUT_ON_FAILURE=1
- ctest --build-config %configuration%
- cd ..
after_build:
- echo "# Building packages..."
- cd build
- cpack --verbose -G WIX
- cpack --verbose -G ZIP
- cd ..
artifacts:
- path: build/*.zip
name: DynamoMD.zip
type: zip
- path: build/*.msi
name: DynamoMD.msi
deploy:
provider: GitHub
auth_token:
secure: 6ygNbRKlgvqJICjIJ3T7P6HHLgLRM7l5DXVeC+VykO3jBCvLV7DwjA0Yey6awZLM
artifact: DynamoMD.zip, DynamoMD.msi
draft: false
prerelease: false
force_update: true
on:
appveyor_repo_tag: true