forked from tango-controls/pytango
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
155 lines (136 loc) · 5.86 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
version: 9.3.2.dev0.{build}
image: Visual Studio 2015
environment:
cpptango_download_base: https://github.com/tango-controls/cppTango/releases/download/
cpptango_version: 9.3.3
boost_download_base: https://github.com/tango-controls/boost-ci/releases/download/
boost_version: 1.70.0
matrix:
- platform: win32
configuration: Release
ARCH: win32-msvc9
ARCH_PY: win32-msvc9-py27
VC_VER: 9.0
MSVCVERSION: v90
PYTHON_VER: 27
PYTHON_ROOT: c:\Python27\
CMAKE_GENERATOR: "Visual Studio 9 2008"
- platform: x64
configuration: Release
ARCH: x64-msvc9
ARCH_PY: x64-msvc9-py27
VC_VER: 9.0
MSVCVERSION: v90
PYTHON_VER: 27
PYTHON_ROOT: c:\Python27-x64\
CMAKE_GENERATOR: "Visual Studio 9 2008 Win64"
- platform: win32
configuration: Release
ARCH: win32-msvc14
ARCH_PY: win32-msvc14-py36
VC_VER: 14.0
MSVCVERSION: v140
PYTHON_VER: 36
PYTHON_ROOT: c:\Python36\
CMAKE_GENERATOR: "Visual Studio 14 2015"
- platform: x64
configuration: Release
ARCH: x64-msvc14
ARCH_PY: x64-msvc14-py36
VC_VER: 14.0
MSVCVERSION: v140
PYTHON_VER: 36
PYTHON_ROOT: c:\Python36-x64\
CMAKE_GENERATOR: "Visual Studio 14 2015 Win64"
- platform: win32
configuration: Release
ARCH: win32-msvc14
ARCH_PY: win32-msvc14-py37
VC_VER: 14.0
MSVCVERSION: v140
PYTHON_VER: 37
PYTHON_ROOT: c:\Python37\
CMAKE_GENERATOR: "Visual Studio 14 2015"
- platform: x64
configuration: Release
ARCH: x64-msvc14
ARCH_PY: x64-msvc14-py37
VC_VER: 14.0
MSVCVERSION: v140
PYTHON_VER: 37
PYTHON_ROOT: c:\Python37-x64\
CMAKE_GENERATOR: "Visual Studio 14 2015 Win64"
init:
# go to hell Xamarin (see http://help.appveyor.com/discussions/problems/4569)
- del "C:\Program Files (x86)\MSBuild\4.0\Microsoft.Common.Targets\ImportAfter\Xamarin.Common.targets"
- del "C:\Program Files (x86)\MSBuild\14.0\Microsoft.Common.targets\ImportAfter\Xamarin.Common.targets"
- del "C:\Program Files (x86)\MSBuild\12.0\Microsoft.Common.targets\ImportAfter\Xamarin.Common.targets"
# Tango
- cmd: cd "C:\projects\"
- cmd: md libtango
- cmd: cd "C:\projects\"
- if /I %platform%==win32 appveyor DownloadFile %cpptango_download_base%/%cpptango_version%/libtango_%cpptango_version%_%MSVCVERSION%_x86.zip
- if /I %platform%==x64 appveyor DownloadFile %cpptango_download_base%/%cpptango_version%/libtango_%cpptango_version%_%MSVCVERSION%_x64.zip
- cmd: if /I %platform%==win32 7z -y x libtango_%cpptango_version%_%MSVCVERSION%_x86.zip -oC:\projects\libtango\
- cmd: if /I %platform%==x64 7z -y x libtango_%cpptango_version%_%MSVCVERSION%_x64.zip -oC:\projects\libtango\
# boost
- cmd: cd "C:\projects\"
- appveyor DownloadFile %boost_download_base%/%boost_version%/boost-python-%boost_version%_%ARCH%_py%PYTHON_VER%.zip
- cmd: 7z -y x boost-python-%boost_version%_%ARCH%_py%PYTHON_VER%.zip -oC:\projects\
#Pthread-Win32
- cmd: cd "C:\projects\"
- cmd: md pthreads-win32
- cmd: cd "C:\projects\"
- appveyor DownloadFile https://github.com/tango-controls/Pthread_WIN32/releases/download/2.9.1/pthreads-win32-2.9.1_%ARCH%.zip
- cmd: 7z -y x pthreads-win32-2.9.1_%ARCH%.zip -oC:\projects\pthreads-win32\
#VS2008 patch
- cmd: cd "C:\projects\"
- cmd: appveyor DownloadFile https://github.com/menpo/condaci/raw/master/vs2008_patch.zip
- cmd: 7z -y x vs2008_patch.zip -oC:\projects\vs2008_patch\
- cmd: if %ARCH%==x64-msvc9 call C:\projects\vs2008_patch\setup_x64.bat
- cmd: if %ARCH%==x32-msvc9 call C:\projects\vs2008_patch\setup_x86.bat
- cmd: if %ARCH%==x64-msvc9 copy "C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin\vcvars64.bat" "C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin\amd64\vcvarsamd64.bat"
- cmd: cd "C:\projects\pytango"
install:
# Setting Visual Compiler
- cmd: cd "C:\projects\"
- cmd: if %ARCH%==win32-msvc9 call "C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\vcvarsall.bat"
- cmd: if %ARCH%==win32-msvc9 set path=C:\Windows\Microsoft.NET\Framework\v4.0.30319;%path%
- cmd: if %ARCH%==x64-msvc9 call "C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin\vcvars64.bat"
- cmd: if %ARCH%==win32-msvc14 call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat"
- cmd: if %ARCH%==x64-msvc14 call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x64
- cmd: set PYTHON_ROOT=%PYTHON_ROOT%
- "%PYTHON_ROOT%/Scripts/pip.exe install nose wheel numpy"
# Prepare cmake
- cmd: cd "C:\projects\pytango"
- cmd: set BOOST_ROOT=c:/projects/Boost
- cmd: set PTHREAD_WIN=C:/projects/pthreads-win32/
- cmd: if /I %platform%==win32 set TANGO_ROOT=C:/projects/libtango/libtango_%cpptango_version%_%MSVCVERSION%_x86
- cmd: if /I %platform%==x64 set TANGO_ROOT=C:/projects/libtango/libtango_%cpptango_version%_%MSVCVERSION%_x64
- cmd: echo TANGO_ROOT is "%TANGO_ROOT%"
- cmd: echo CMAKE_GENERATOR is '%CMAKE_GENERATOR%'
- cmd: echo PLATFORM is '%platform%'
- cmd: cmake -G "%CMAKE_GENERATOR%" .
clone_folder: C:\projects\pytango
build:
parallel: true
verbosity: minimal
build_script:
- cmd: cd C:/projects/pytango
- cmake --build ./ -j 4 --config Release
after_build:
- cmd: cd C:/projects/pytango/dist
- cmd: dir
- cmd: cd C:/projects/pytango
#copying artifacts
- cmd: move .\dist\pytango*.exe C:/projects/pytango
- cmd: move .\dist\pytango*.whl C:/projects/pytango
on_failure:
#RDP for failure
- ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
on_finish:
#RDP for finish
#- ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
artifacts:
- path: ./*.exe
- path: ./*.whl