]>
Commit | Line | Data |
---|---|---|
d8a24927 GS |
1 | version: 1.0.{build} |
2 | branches: | |
b1db9dd6 | 3 | only: |
d8a24927 GS |
4 | - master |
5 | clone_folder: C:\openvswitch | |
6 | init: | |
80097852 AGS |
7 | - ps: $env:PATH ="C:\Python37;"+$env:PATH |
8 | - ps: New-Item -Type HardLink -Path "C:\Python37\python3.exe" -Value "C:\Python37\python.exe" | |
d8a24927 GS |
9 | - ps: >- |
10 | mkdir C:\pthreads-win32 | |
11 | ||
12 | mkdir C:\ovs-build-downloads | |
13 | ||
14 | $source = "ftp://sourceware.org/pub/pthreads-win32/pthreads-w32-2-9-1-release.zip" | |
15 | ||
16 | $destination = "C:\pthreads-win32\pthreads-win32.zip" | |
17 | ||
18 | Invoke-WebRequest $source -OutFile $destination | |
19 | ||
80097852 | 20 | $source = "https://slproweb.com/download/Win32OpenSSL-1_0_2t.exe" |
d8a24927 | 21 | |
80097852 | 22 | $destination = "C:\ovs-build-downloads\Win32OpenSSL-1_0_2t.exe" |
d8a24927 GS |
23 | |
24 | Invoke-WebRequest $source -OutFile $destination | |
25 | ||
26 | cd C:\pthreads-win32 | |
27 | ||
28 | 7z x C:\pthreads-win32\pthreads-win32.zip | |
29 | ||
30 | cd C:\ovs-build-downloads | |
31 | ||
80097852 | 32 | .\Win32OpenSSL-1_0_2t.exe /silent /verysilent /sp- /suppressmsgboxes |
d8a24927 GS |
33 | |
34 | Start-Sleep -s 30 | |
35 | ||
36 | cd C:\openvswitch | |
37 | ||
0c4d144a | 38 | python3 -m pip install pypiwin32 --disable-pip-version-check |
808c73b4 | 39 | |
d8a24927 GS |
40 | build_script: |
41 | - '"C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\Tools\VsDevCmd"' | |
42 | - C:\MinGW\msys\1.0\bin\bash -lc "echo \"C:/MinGW /mingw\" > /etc/fstab" | |
43 | - C:\MinGW\msys\1.0\bin\bash -lc "cp /c/pthreads-win32/Pre-built.2/dll/x86/*.dll /c/openvswitch/." | |
44 | - C:\MinGW\msys\1.0\bin\bash -lc "mv /bin/link.exe /bin/link_copy.exe" | |
45 | - C:\MinGW\msys\1.0\bin\bash -lc "cd /c/openvswitch && ./boot.sh" | |
4d8f04b3 | 46 | - C:\MinGW\msys\1.0\bin\bash -lc "cd /c/openvswitch && ./configure CC=build-aux/cccl LD=\"`which link`\" LIBS=\"-lws2_32 -lShlwapi -liphlpapi -lwbemuuid -lole32 -loleaut32\" --with-pthread=C:/pthreads-win32/Pre-built.2 --with-openssl=C:/OpenSSL-Win32 --with-vstudiotarget=\"Debug\" |
d8a24927 | 47 | - C:\MinGW\msys\1.0\bin\bash -lc "cd /c/openvswitch && make" |
2f839c02 | 48 | - C:\MinGW\msys\1.0\bin\bash -lc "cd /c/openvswitch && make datapath_windows_analyze" |