2015-02-05 09:49:26 -08:00
|
|
|
version: 1.0.{build}
|
2020-09-24 09:22:38 +03:00
|
|
|
image: Visual Studio 2019
|
2015-02-05 09:49:26 -08:00
|
|
|
branches:
|
2018-02-27 11:57:37 -08:00
|
|
|
only:
|
2015-02-05 09:49:26 -08:00
|
|
|
- master
|
|
|
|
clone_folder: C:\openvswitch
|
|
|
|
init:
|
2019-10-09 17:10:08 +03:00
|
|
|
- ps: $env:PATH ="C:\Python37;"+$env:PATH
|
|
|
|
- ps: New-Item -Type HardLink -Path "C:\Python37\python3.exe" -Value "C:\Python37\python.exe"
|
2015-02-05 09:49:26 -08:00
|
|
|
- ps: >-
|
|
|
|
mkdir C:\ovs-build-downloads
|
|
|
|
|
2019-10-09 17:10:08 +03:00
|
|
|
$source = "https://slproweb.com/download/Win32OpenSSL-1_0_2t.exe"
|
2015-02-05 09:49:26 -08:00
|
|
|
|
2019-10-09 17:10:08 +03:00
|
|
|
$destination = "C:\ovs-build-downloads\Win32OpenSSL-1_0_2t.exe"
|
2015-02-05 09:49:26 -08:00
|
|
|
|
|
|
|
Invoke-WebRequest $source -OutFile $destination
|
|
|
|
|
|
|
|
cd C:\pthreads-win32
|
|
|
|
|
|
|
|
7z x C:\pthreads-win32\pthreads-win32.zip
|
|
|
|
|
|
|
|
cd C:\ovs-build-downloads
|
|
|
|
|
2019-10-09 17:10:08 +03:00
|
|
|
.\Win32OpenSSL-1_0_2t.exe /silent /verysilent /sp- /suppressmsgboxes
|
2015-02-05 09:49:26 -08:00
|
|
|
|
|
|
|
Start-Sleep -s 30
|
|
|
|
|
|
|
|
cd C:\openvswitch
|
|
|
|
|
2020-09-24 09:22:38 +03:00
|
|
|
git clone https://git.code.sf.net/p/pthreads4w/code c:\pthreads4w-code
|
|
|
|
|
2019-12-20 18:35:08 +01:00
|
|
|
python3 -m pip install pypiwin32 --disable-pip-version-check
|
2016-01-20 17:15:16 -08:00
|
|
|
|
2015-02-05 09:49:26 -08:00
|
|
|
build_script:
|
2020-09-24 09:22:38 +03:00
|
|
|
- '"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat"'
|
2015-02-05 09:49:26 -08:00
|
|
|
- C:\MinGW\msys\1.0\bin\bash -lc "echo \"C:/MinGW /mingw\" > /etc/fstab"
|
|
|
|
- C:\MinGW\msys\1.0\bin\bash -lc "mv /bin/link.exe /bin/link_copy.exe"
|
2020-09-24 09:22:38 +03:00
|
|
|
# Build pthreads
|
|
|
|
- C:\MinGW\msys\1.0\bin\bash -lc "cd /c/pthreads4w-code && nmake all install"
|
2015-02-05 09:49:26 -08:00
|
|
|
- C:\MinGW\msys\1.0\bin\bash -lc "cd /c/openvswitch && ./boot.sh"
|
2020-09-24 09:22:38 +03:00
|
|
|
- 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-BUILT/ --with-openssl=C:/OpenSSL-Win32 --with-vstudiotarget=\"Debug\"
|
2015-02-05 09:49:26 -08:00
|
|
|
- C:\MinGW\msys\1.0\bin\bash -lc "cd /c/openvswitch && make"
|
2017-05-23 17:59:07 +00:00
|
|
|
- C:\MinGW\msys\1.0\bin\bash -lc "cd /c/openvswitch && make datapath_windows_analyze"
|