forked from openvswitch/ovs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
46 lines (31 loc) · 1.64 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
version: 1.0.{build}
branches:
only:
- master
clone_folder: C:\openvswitch
init:
- ps: >-
mkdir C:\pthreads-win32
mkdir C:\ovs-build-downloads
$source = "ftp://sourceware.org/pub/pthreads-win32/pthreads-w32-2-9-1-release.zip"
$destination = "C:\pthreads-win32\pthreads-win32.zip"
Invoke-WebRequest $source -OutFile $destination
$source = "https://slproweb.com/download/Win32OpenSSL-1_0_2n.exe"
$destination = "C:\ovs-build-downloads\Win32OpenSSL-1_0_2n.exe"
Invoke-WebRequest $source -OutFile $destination
cd C:\pthreads-win32
7z x C:\pthreads-win32\pthreads-win32.zip
cd C:\ovs-build-downloads
.\Win32OpenSSL-1_0_2n.exe /silent /verysilent /sp- /suppressmsgboxes
Start-Sleep -s 30
cd C:\openvswitch
python -m pip install six pypiwin32 --disable-pip-version-check
build_script:
- '"C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\Tools\VsDevCmd"'
- C:\MinGW\msys\1.0\bin\bash -lc "echo \"C:/MinGW /mingw\" > /etc/fstab"
- C:\MinGW\msys\1.0\bin\bash -lc "cp /c/pthreads-win32/Pre-built.2/dll/x86/*.dll /c/openvswitch/."
- C:\MinGW\msys\1.0\bin\bash -lc "mv /bin/link.exe /bin/link_copy.exe"
- C:\MinGW\msys\1.0\bin\bash -lc "cd /c/openvswitch && ./boot.sh"
- 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\"
- C:\MinGW\msys\1.0\bin\bash -lc "cd /c/openvswitch && make"
- C:\MinGW\msys\1.0\bin\bash -lc "cd /c/openvswitch && make datapath_windows_analyze"