]> git.proxmox.com Git - ovs.git/blob - appveyor.yml
acinclude: Enable Linux kernel 5.5
[ovs.git] / appveyor.yml
1 version: 1.0.{build}
2 branches:
3 only:
4 - master
5 clone_folder: C:\openvswitch
6 init:
7 - ps: $env:PATH ="C:\Python37;"+$env:PATH
8 - ps: New-Item -Type HardLink -Path "C:\Python37\python3.exe" -Value "C:\Python37\python.exe"
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
20 $source = "https://slproweb.com/download/Win32OpenSSL-1_0_2t.exe"
21
22 $destination = "C:\ovs-build-downloads\Win32OpenSSL-1_0_2t.exe"
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
32 .\Win32OpenSSL-1_0_2t.exe /silent /verysilent /sp- /suppressmsgboxes
33
34 Start-Sleep -s 30
35
36 cd C:\openvswitch
37
38 python3 -m pip install pypiwin32 --disable-pip-version-check
39
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"
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\"
47 - C:\MinGW\msys\1.0\bin\bash -lc "cd /c/openvswitch && make"
48 - C:\MinGW\msys\1.0\bin\bash -lc "cd /c/openvswitch && make datapath_windows_analyze"