mirror of
https://github.com/openvswitch/ovs
synced 2025-08-30 13:58:14 +00:00
appveyor: Provide a autobuild service for Windows.
The appveyor.yml file added through this commit lets AppVeyor auto build service to run a build of OVS on Windows platform. Signed-off-by: Gurucharan Shetty <gshetty@nicira.com>
This commit is contained in:
@@ -247,6 +247,15 @@ type: External network', in the HyperV virtual network switch configuration.
|
|||||||
this is still a work in progress. Till the support is complete we recommend
|
this is still a work in progress. Till the support is complete we recommend
|
||||||
disabling TX/RX offloads for both the VM's as well as the HyperV.
|
disabling TX/RX offloads for both the VM's as well as the HyperV.
|
||||||
|
|
||||||
|
Windows autobuild service
|
||||||
|
-------------------------
|
||||||
|
|
||||||
|
AppVeyor (appveyor.com) provides a free Windows autobuild service for
|
||||||
|
opensource projects. Open vSwitch has integration with AppVeyor for
|
||||||
|
continuous build. A developer can build test his changes for Windows by
|
||||||
|
logging into appveyor.com using a github account, creating a new project
|
||||||
|
by linking it to his development repository in github and triggering
|
||||||
|
a new build.
|
||||||
|
|
||||||
TODO
|
TODO
|
||||||
----
|
----
|
||||||
|
@@ -65,6 +65,7 @@ PYCOV_CLEAN_FILES = build-aux/check-structs,cover
|
|||||||
# A list of Markdown-formatted documentation that will automatically be
|
# A list of Markdown-formatted documentation that will automatically be
|
||||||
# included in the "make dist-docs" output.
|
# included in the "make dist-docs" output.
|
||||||
docs = \
|
docs = \
|
||||||
|
appveyor.yml \
|
||||||
CONTRIBUTING.md \
|
CONTRIBUTING.md \
|
||||||
CodingStyle.md \
|
CodingStyle.md \
|
||||||
DESIGN.md \
|
DESIGN.md \
|
||||||
|
43
appveyor.yml
Normal file
43
appveyor.yml
Normal file
@@ -0,0 +1,43 @@
|
|||||||
|
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 = "http://slproweb.com/download/Win32OpenSSL-1_0_1L.exe"
|
||||||
|
|
||||||
|
$destination = "C:\ovs-build-downloads\Win32OpenSSL-1_0_1L.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_1L.exe /silent /verysilent /sp- /suppressmsgboxes
|
||||||
|
|
||||||
|
Start-Sleep -s 30
|
||||||
|
|
||||||
|
cd C:\openvswitch
|
||||||
|
|
||||||
|
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 --with-pthread=C:/pthreads-win32/Pre-built.2 --with-openssl=C:/OpenSSL-Win32"
|
||||||
|
- C:\MinGW\msys\1.0\bin\bash -lc "cd /c/openvswitch && make"
|
Reference in New Issue
Block a user