forked from esa/pagmo2
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathappveyor.yml
160 lines (144 loc) · 9.43 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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
environment:
TWINE_PASSWORD:
secure: fqy2DKVE2zM+97vNPB8xgw3ae3SDPkL/T8RvC6s4ncY=
matrix:
- BUILD_TYPE: "MSVC_64_Python35"
COMPILER: MSVC15
PLATFORM: "x64"
- BUILD_TYPE: "MSVC_64_Python36"
COMPILER: MSVC15
PLATFORM: "x64"
- BUILD_TYPE: "MSVC_64_Debug"
COMPILER: MSVC15
PLATFORM: "x64"
- BUILD_TYPE: "MinGW_64_Debug"
- BUILD_TYPE: "MinGW_64_Python27"
- BUILD_TYPE: "MinGW_64_Python35"
- BUILD_TYPE: "MinGW_64_Python36"
global:
PLATFORMTOOLSET: "v140"
install:
- if [%BUILD_TYPE%]==[MSVC_64_Debug] set PATH=C:\Miniconda36-x64\Scripts;%PATH%
- if [%BUILD_TYPE%]==[MSVC_64_Debug] conda config --add channels conda-forge --force
# NOTE: we clean and update the conda env due to some apparent caching issues in the
# conda version installed on appveyor.
- if [%BUILD_TYPE%]==[MSVC_64_Debug] conda clean --all -y
- if [%BUILD_TYPE%]==[MSVC_64_Debug] conda update conda -y
- if [%BUILD_TYPE%]==[MSVC_64_Debug] conda update --all -y
# NOTE: here we are pinning the boost and boost-cpp packages versions to the current
# pinned conda-forge versions, which can be found out at:
# https://github.com/conda-forge/conda-forge.github.io/blob/master/scripts/pin_the_slow_way.py
# This ensures that we build with the same boost version we use to build the conda packages.
# NOTE: these version numbers need to be updated manually.
- if [%BUILD_TYPE%]==[MSVC_64_Debug] conda create -y --name pagmo python=3.6 cmake boost=1.65.1 boost-cpp=1.65.1 eigen nlopt
# NOTE: need to use "call" because otherwise it won't work within an if block.
- if [%BUILD_TYPE%]==[MSVC_64_Debug] call activate pagmo
- if [%BUILD_TYPE%]==[MSVC_64_Python35] set PATH=C:\Miniconda35-x64\Scripts;%PATH%
- if [%BUILD_TYPE%]==[MSVC_64_Python35] conda config --add channels conda-forge --force
- if [%BUILD_TYPE%]==[MSVC_64_Python35] conda clean --all -y
- if [%BUILD_TYPE%]==[MSVC_64_Python35] conda update conda -y
- if [%BUILD_TYPE%]==[MSVC_64_Python35] conda update --all -y
- if [%BUILD_TYPE%]==[MSVC_64_Python35] conda create -y --name pagmo python=3.5 cmake boost=1.65.1 boost-cpp=1.65.1 eigen nlopt numpy cloudpickle ipyparallel
- if [%BUILD_TYPE%]==[MSVC_64_Python35] call activate pagmo
- if [%BUILD_TYPE%]==[MSVC_64_Python36] set PATH=C:\Miniconda36-x64\Scripts;%PATH%
- if [%BUILD_TYPE%]==[MSVC_64_Python36] conda config --add channels conda-forge --force
- if [%BUILD_TYPE%]==[MSVC_64_Python36] conda clean --all -y
- if [%BUILD_TYPE%]==[MSVC_64_Python36] conda update conda -y
- if [%BUILD_TYPE%]==[MSVC_64_Python36] conda update --all -y
# For the 3.6 build, let's not pin to the boost conda versions: the idea is to test with the latest boost in order
# to pre-empt possible future problems when conda updates the pinned versions.
- if [%BUILD_TYPE%]==[MSVC_64_Python36] conda create -y --name pagmo python=3.6 cmake boost boost-cpp eigen nlopt numpy cloudpickle ipyparallel
- if [%BUILD_TYPE%]==[MSVC_64_Python36] call activate pagmo
# Rename sh.exe as sh.exe in PATH interferes with MinGW.
- if [%BUILD_TYPE%]==[MinGW_64_Debug] rename "C:\Program Files\Git\usr\bin\sh.exe" "sh2.exe"
- if [%BUILD_TYPE%]==[MinGW_64_Python27] rename "C:\Program Files\Git\usr\bin\sh.exe" "sh2.exe"
- if [%BUILD_TYPE%]==[MinGW_64_Python35] rename "C:\Program Files\Git\usr\bin\sh.exe" "sh2.exe"
- if [%BUILD_TYPE%]==[MinGW_64_Python36] rename "C:\Program Files\Git\usr\bin\sh.exe" "sh2.exe"
build_script:
- if [%BUILD_TYPE%]==[MSVC_64_Debug] mkdir build
- if [%BUILD_TYPE%]==[MSVC_64_Debug] cd build
- if [%BUILD_TYPE%]==[MSVC_64_Debug] cmake -G "Visual Studio 14 2015 Win64" -DCMAKE_BUILD_TYPE=Debug -DPAGMO_BUILD_TESTS=YES -DPAGMO_BUILD_TUTORIALS=YES -DPAGMO_WITH_EIGEN3=yes -DPAGMO_WITH_NLOPT=yes ..
- if [%BUILD_TYPE%]==[MSVC_64_Debug] cmake --build . --config Debug --target install
- if [%BUILD_TYPE%]==[MSVC_64_Python35] mkdir build_pagmo
- if [%BUILD_TYPE%]==[MSVC_64_Python35] cd build_pagmo
- if [%BUILD_TYPE%]==[MSVC_64_Python35] cmake -G "Visual Studio 14 2015 Win64" -DCMAKE_INSTALL_PREFIX=%CONDA_PREFIX%/Library -DCMAKE_BUILD_TYPE=Release -DPAGMO_WITH_EIGEN3=yes -DPAGMO_WITH_NLOPT=yes ..
- if [%BUILD_TYPE%]==[MSVC_64_Python35] cmake --build . --config Release --target install
- if [%BUILD_TYPE%]==[MSVC_64_Python35] cd ..
- if [%BUILD_TYPE%]==[MSVC_64_Python35] mkdir build_pygmo
- if [%BUILD_TYPE%]==[MSVC_64_Python35] cd build_pygmo
- if [%BUILD_TYPE%]==[MSVC_64_Python35] cmake -G "Visual Studio 14 2015 Win64" -DCMAKE_INSTALL_PREFIX=%CONDA_PREFIX%/Library -DCMAKE_BUILD_TYPE=Release -DPAGMO_BUILD_PYGMO=yes -DPAGMO_BUILD_PAGMO=no ..
- if [%BUILD_TYPE%]==[MSVC_64_Python35] cmake --build . --config Release --target install
- if [%BUILD_TYPE%]==[MSVC_64_Python36] mkdir build_pagmo
- if [%BUILD_TYPE%]==[MSVC_64_Python36] cd build_pagmo
- if [%BUILD_TYPE%]==[MSVC_64_Python36] cmake -G "Visual Studio 14 2015 Win64" -DCMAKE_INSTALL_PREFIX=%CONDA_PREFIX%/Library -DCMAKE_BUILD_TYPE=Release -DPAGMO_WITH_EIGEN3=yes -DPAGMO_WITH_NLOPT=yes ..
- if [%BUILD_TYPE%]==[MSVC_64_Python36] cmake --build . --config Release --target install
- if [%BUILD_TYPE%]==[MSVC_64_Python36] cd ..
- if [%BUILD_TYPE%]==[MSVC_64_Python36] mkdir build_pygmo
- if [%BUILD_TYPE%]==[MSVC_64_Python36] cd build_pygmo
- if [%BUILD_TYPE%]==[MSVC_64_Python36] cmake -G "Visual Studio 14 2015 Win64" -DCMAKE_INSTALL_PREFIX=%CONDA_PREFIX%/Library -DCMAKE_BUILD_TYPE=Release -DPAGMO_BUILD_PYGMO=yes -DPAGMO_BUILD_PAGMO=no ..
- if [%BUILD_TYPE%]==[MSVC_64_Python36] cmake --build . --config Release --target install
- if [%BUILD_TYPE%]==[MinGW_64_Debug] C:\Python36-x64\python.exe tools\install_appveyor_mingw.py
- if [%BUILD_TYPE%]==[MinGW_64_Python27] C:\Python36-x64\python.exe tools\install_appveyor_mingw.py
- if [%BUILD_TYPE%]==[MinGW_64_Python35] C:\Python36-x64\python.exe tools\install_appveyor_mingw.py
- if [%BUILD_TYPE%]==[MinGW_64_Python36] C:\Python36-x64\python.exe tools\install_appveyor_mingw.py
test_script:
- if [%BUILD_TYPE%]==[MSVC_64_Debug] ctest --output-on-failure
- if [%BUILD_TYPE%]==[MSVC_64_Python35] start /b ipcluster start
- if [%BUILD_TYPE%]==[MSVC_64_Python35] timeout 20
- if [%BUILD_TYPE%]==[MSVC_64_Python35] cd ..
- if [%BUILD_TYPE%]==[MSVC_64_Python35] cd tools
- if [%BUILD_TYPE%]==[MSVC_64_Python35] python -c "import pygmo; pygmo.test.run_test_suite(1)"
- if [%BUILD_TYPE%]==[MSVC_64_Python35] python travis_additional_tests.py
- if [%BUILD_TYPE%]==[MSVC_64_Python35] cd ..
- if [%BUILD_TYPE%]==[MSVC_64_Python35] cd ap_examples
- if [%BUILD_TYPE%]==[MSVC_64_Python35] cd uda_basic
- if [%BUILD_TYPE%]==[MSVC_64_Python35] mkdir build
- if [%BUILD_TYPE%]==[MSVC_64_Python35] cd build
- if [%BUILD_TYPE%]==[MSVC_64_Python35] cmake -G "Visual Studio 14 2015 Win64" -DCMAKE_INSTALL_PREFIX=%CONDA_PREFIX%/Library -DCMAKE_BUILD_TYPE=Release ..
- if [%BUILD_TYPE%]==[MSVC_64_Python35] cmake --build . --config Release --target install
- if [%BUILD_TYPE%]==[MSVC_64_Python35] cd ..
- if [%BUILD_TYPE%]==[MSVC_64_Python35] cd ..
- if [%BUILD_TYPE%]==[MSVC_64_Python35] python test1.py
- if [%BUILD_TYPE%]==[MSVC_64_Python35] cd udp_basic
- if [%BUILD_TYPE%]==[MSVC_64_Python35] mkdir build
- if [%BUILD_TYPE%]==[MSVC_64_Python35] cd build
- if [%BUILD_TYPE%]==[MSVC_64_Python35] cmake -G "Visual Studio 14 2015 Win64" -DCMAKE_INSTALL_PREFIX=%CONDA_PREFIX%/Library -DCMAKE_BUILD_TYPE=Release ..
- if [%BUILD_TYPE%]==[MSVC_64_Python35] cmake --build . --config Release --target install
- if [%BUILD_TYPE%]==[MSVC_64_Python35] cd ..
- if [%BUILD_TYPE%]==[MSVC_64_Python35] cd ..
- if [%BUILD_TYPE%]==[MSVC_64_Python35] python test2.py
- if [%BUILD_TYPE%]==[MSVC_64_Python36] start /b ipcluster start
- if [%BUILD_TYPE%]==[MSVC_64_Python36] timeout 20
- if [%BUILD_TYPE%]==[MSVC_64_Python36] cd ..
- if [%BUILD_TYPE%]==[MSVC_64_Python36] cd tools
- if [%BUILD_TYPE%]==[MSVC_64_Python36] python -c "import pygmo; pygmo.test.run_test_suite(1)"
- if [%BUILD_TYPE%]==[MSVC_64_Python36] python travis_additional_tests.py
- if [%BUILD_TYPE%]==[MSVC_64_Python36] cd ..
- if [%BUILD_TYPE%]==[MSVC_64_Python36] cd ap_examples
- if [%BUILD_TYPE%]==[MSVC_64_Python36] cd uda_basic
- if [%BUILD_TYPE%]==[MSVC_64_Python36] mkdir build
- if [%BUILD_TYPE%]==[MSVC_64_Python36] cd build
- if [%BUILD_TYPE%]==[MSVC_64_Python36] cmake -G "Visual Studio 14 2015 Win64" -DCMAKE_INSTALL_PREFIX=%CONDA_PREFIX%/Library -DCMAKE_BUILD_TYPE=Release ..
- if [%BUILD_TYPE%]==[MSVC_64_Python36] cmake --build . --config Release --target install
- if [%BUILD_TYPE%]==[MSVC_64_Python36] cd ..
- if [%BUILD_TYPE%]==[MSVC_64_Python36] cd ..
- if [%BUILD_TYPE%]==[MSVC_64_Python36] python test1.py
- if [%BUILD_TYPE%]==[MSVC_64_Python36] cd udp_basic
- if [%BUILD_TYPE%]==[MSVC_64_Python36] mkdir build
- if [%BUILD_TYPE%]==[MSVC_64_Python36] cd build
- if [%BUILD_TYPE%]==[MSVC_64_Python36] cmake -G "Visual Studio 14 2015 Win64" -DCMAKE_INSTALL_PREFIX=%CONDA_PREFIX%/Library -DCMAKE_BUILD_TYPE=Release ..
- if [%BUILD_TYPE%]==[MSVC_64_Python36] cmake --build . --config Release --target install
- if [%BUILD_TYPE%]==[MSVC_64_Python36] cd ..
- if [%BUILD_TYPE%]==[MSVC_64_Python36] cd ..
- if [%BUILD_TYPE%]==[MSVC_64_Python36] python test2.py
artifacts:
- path: build\wheel\dist
name: wheels
notifications:
- provider: Webhook
url: https://webhooks.gitter.im/e/1a3742192bd3f7e6d8e2
# Enable this to be able to login to the build worker. You can use the
# `remmina` program in Ubuntu, use the login information that the line below
# prints into the log.
# on_finish:
# - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))