]> git.proxmox.com Git - mirror_ovs.git/blob - appveyor.yml
cirrus: Use FreeBSD 12.2.
[mirror_ovs.git] / appveyor.yml
1 version: 1.0.{build}
2 image: Visual Studio 2019
3 branches:
4 only:
5 - master
6 configuration:
7 - Debug
8 - Release
9 clone_folder: C:\openvswitch_compile
10 init:
11 - ps: $env:PATH ="C:\Python37;"+$env:PATH
12 - ps: New-Item -Type HardLink -Path "C:\Python37\python3.exe" -Value "C:\Python37\python.exe"
13 - ps: >-
14 mkdir C:\ovs-build-downloads
15
16 mkdir C:\openvswitch\driver
17
18 $source = "https://slproweb.com/download/Win64OpenSSL-1_0_2u.exe"
19
20 $destination = "C:\ovs-build-downloads\Win64OpenSSL-1_0_2u.exe"
21
22 Invoke-WebRequest $source -OutFile $destination
23
24 cd C:\ovs-build-downloads
25
26 .\Win64OpenSSL-1_0_2u.exe /silent /verysilent /sp- /suppressmsgboxes
27
28 Start-Sleep -s 30
29
30 cd C:\openvswitch
31
32 git clone https://git.code.sf.net/p/pthreads4w/code c:\pthreads4w-code
33
34 python3 -m pip install pypiwin32 --disable-pip-version-check
35
36 cd C:\openvswitch_compile
37
38 build_script:
39 - '"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat"'
40 - C:\MinGW\msys\1.0\bin\bash -lc "echo \"C:/MinGW /mingw\" > /etc/fstab"
41 - C:\MinGW\msys\1.0\bin\bash -lc "mv /bin/link.exe /bin/link_copy.exe"
42 # Build pthreads
43 - C:\MinGW\msys\1.0\bin\bash -lc "cd /c/pthreads4w-code && nmake all install"
44 - C:\MinGW\msys\1.0\bin\bash -lc "cd /c/openvswitch_compile && ./boot.sh"
45 - C:\MinGW\msys\1.0\bin\bash -lc "cd /c/openvswitch_compile && ./configure CC=build-aux/cccl LD=\"`which link`\" LIBS=\"-lws2_32 -lShlwapi -liphlpapi -lwbemuuid -lole32 -loleaut32\" --prefix=C:/openvswitch/usr --localstatedir=C:/openvswitch/var --sysconfdir=C:/openvswitch/etc --with-pthread=c:/PTHREADS-BUILT/ --enable-ssl --with-openssl=C:/OpenSSL-Win64 --with-vstudiotarget=\"%CONFIGURATION%\""
46 - C:\MinGW\msys\1.0\bin\bash -lc "cd /c/openvswitch_compile && make -j 4"
47 - C:\MinGW\msys\1.0\bin\bash -lc "cd /c/openvswitch_compile && make datapath_windows_analyze"
48 - C:\MinGW\msys\1.0\bin\bash -lc "cd /c/openvswitch_compile && make install"
49 - C:\MinGW\msys\1.0\bin\bash -lc "cd /c/openvswitch_compile && make windows_installer"
50 - cp C:\PTHREADS-BUILT\bin\pthreadVC3.dll C:\openvswitch\usr\bin
51 - cp C:\PTHREADS-BUILT\bin\pthreadVC3.dll C:\openvswitch\usr\sbin
52 - ps: cp C:\openvswitch_compile\datapath-windows\x64\Win10$env:CONFIGURATION\package\* C:\openvswitch\driver
53 - ps: cp C:\openvswitch_compile\datapath-windows\x64\Win10$env:CONFIGURATION\package.cer C:\openvswitch\driver
54 - ps: cp C:\openvswitch_compile\datapath-windows\misc\* C:\openvswitch\driver
55 - cp c:\openvswitch_compile\windows\ovs-windows-installer\bin\x64\Release\OpenvSwitch.msi c:\OpenvSwitch-%CONFIGURATION%.msi
56
57 after_build:
58 - ps: 7z a C:\ovs-master-$env:CONFIGURATION.zip C:\openvswitch
59 - ps: Push-AppveyorArtifact C:\ovs-master-$env:CONFIGURATION.zip
60 - ps: Push-AppveyorArtifact C:\OpenvSwitch-$env:CONFIGURATION.msi