summaryrefslogtreecommitdiff
path: root/appveyor.yml
Commit message (Collapse)AuthorAgeFilesLines
* appveyor: Bump outdated links and add artifactsAlin Gabriel Serdean2020-10-041-12/+28
| | | | | | | | | | | | | | | | | Bump OpenSSL. Add release and debug configuration. Build and add Windows installer to generated artifacts. Build and zip prebuilt version. Co-authored-by: Yonggang Luo <luoyonggang@gmail.com> Signed-off-by: Yonggang Luo <luoyonggang@gmail.com> Co-authored-by: Jinjun Gao <jinjung@vmware.com> Signed-off-by: Jinjun Gao <jinjung@vmware.com> Signed-off-by: Alin Gabriel Serdean <aserdean@ovn.org> Acked-by: Ilya Maximets <i.maximets@ovn.org>
* windows: Update build with latest pthread projectAlin Gabriel Serdean2020-10-041-11/+7
| | | | | | | | | pthreads-win32 has moved too PThreads4W. This patch updates the build steps, CI (appveyor) and documentation. Signed-off-by: Alin Gabriel Serdean <aserdean@ovn.org> Acked-by: Ilya Maximets <i.maximets@ovn.org>
* Remove dependency on python3-sixTimothy Redaelli2019-12-201-1/+1
| | | | | | | | | | | Since Python 2 support was removed in 1ca0323e7c29 ("Require Python 3 and remove support for Python 2."), python3-six is not needed anymore. Moreover python3-six is not available on RHEL/CentOS7 without using EPEL and so this patch is needed in order to release OVS 2.13 on RHEL7. Signed-off-by: Timothy Redaelli <tredaelli@redhat.com> Signed-off-by: Ben Pfaff <blp@ovn.org>
* appveyor: Update OpenSSL link and python3 to pathAlin Gabriel Serdean2019-10-091-3/+5
| | | | | | | | | | | | | | | This patch fixes the appveyor build by adding the python version 3 to path as per: https://www.appveyor.com/docs/windows-images-software/#python We also create a hardlink for python3 in the same directory to ease up scripts which checks for its existence. This patch also bumps the OpenSSL version from 1.0.2n to 1.0.2t. Signed-off-by: Alin Gabriel Serdean <aserdean@ovn.org> Acked-by: Ben Pfaff <blp@ovn.org> Signed-off-by: William Tu <u9012063@gmail.com>
* Require Python 3 and remove support for Python 2.Ben Pfaff2019-09-271-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Python 2 reaches end-of-life on January 1, 2020, which is only a few months away. This means that OVS needs to stop depending on in the next release that should occur roughly that same time. Therefore, this commit removes all support for Python 2. It also makes Python 3 a mandatory build dependency. Some of the interesting consequences: - HAVE_PYTHON, HAVE_PYTHON2, and HAVE_PYTHON3 conditionals have been removed, since we now know that Python3 is available. - $PYTHON and $PYTHON2 are removed, and $PYTHON3 is always available. - Many tests for Python 2 support have been removed, and the ones that depended on Python 3 now run unconditionally. This allowed several macros in the testsuite to be removed, making the code clearer. This does make some of the changes to the testsuite files large due to indentation level changes. - #! lines for Python now use /usr/bin/python3 instead of /usr/bin/python. - Packaging depends on Python 3 packages. Acked-by: Numan Siddique <nusiddiq@redhat.com> Tested-by: Numan Siddique <nusiddiq@redhat.com> Signed-off-by: Ben Pfaff <blp@ovn.org>
* util: Fix abs_file_name() bugs on Windows.Ben Pfaff2018-08-031-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | abs_file_name() believed that a file name that begins with / or contains : is absolute and that any other file name is relative. On Windows, this is wrong in at least the following ways: * / and \ are interchangeable on Windows. * A name that begins with \\ or // is also absolute. * A name that begins with X: but not X:\ is not absolute. * A name with : in some position other than the second position is not absolute (although it might not be valid either?). Furthermore, Windows has more than one current working directory (one per volume letter), so trying to make a file name absolute by just prefixing the current working directory for the current volume results in silliness. This patch attempts to fix the problem. This makes OVS link against shlwapi, which is needed to use PathIsRelative(). Found by inspection. Acked-by: Alin Gabriel Serdean <aserdean@ovn.org> Signed-off-by: Ben Pfaff <blp@ovn.org>
* AppVeyor: Add Win10 compilation to the buildAlin Gabriel Serdean2018-03-051-1/+1
| | | | | | | | | | People from AppVeyor are nice and included the Windows 10 DDK (driver development kit). This patch allows AppVeyor to compile the Win10 target. Signed-off-by: Alin Gabriel Serdean <aserdean@ovn.org> Acked-by: Shashank Ram <shashank08@gmail.com>
* datapath-windows: Support to selectively compile targetsShashank Ram2018-03-021-2/+2
| | | | | | | | | | | | | | | | | Adds support to selectively compile kernel driver for target versions. This is useful when environments to compile for all targets might not be available on the user's machine, or if the user wants to only compile some targets selectively. Also once appveyor has support to build Win10 targets, we will not pass the "--with-vstudiotargetver" to the configure script. Signed-off-by: Shashank Ram <rams@vmware.com> Acked-by: Anand Kumar <kumaranand@vmware.com> Acked-by: Alin Gabriel Serdean <aserdean@ovn.org> Signed-off-by: Alin Gabriel Serdean <aserdean@ovn.org>
* appveyor: Bump OpenSSL versionAlin Gabriel Serdean2018-01-111-3/+3
| | | | | | | | | | The URL https://slproweb.com/download/Win32OpenSSL-1_0_2L.exe is no longer valid. Bump the version of OpenSSL to 1_0_2n. Signed-off-by: Alin Gabriel Serdean <aserdean@ovn.org> Acked-by: Ben Pfaff <blp@ovn.org>
* appveyor: Fix broken URLAlin Serdean2017-07-151-1/+1
| | | | | | | | | | The commit 2e72898bbab40f48cc3fe77ce0273bb9bb66e9ac bumped the OpenSSL version, but got the URL wrong. Use uppercase `L` instead of lowercase `l`. Signed-off-by: Alin Gabriel Serdean <aserdean@cloudbasesolutions.com> Signed-off-by: Ben Pfaff <blp@ovn.org>
* appveyor: Bump OpenSSL versionAlin Serdean2017-07-131-3/+3
| | | | | | | | | | The URL https://slproweb.com/download/Win32OpenSSL-1_0_2k.exe is no longer valid. Bump the version of OpenSSL to 1_0_2l. Signed-off-by: Alin Gabriel Serdean <aserdean@cloudbasesolutions.com> Signed-off-by: Ben Pfaff <blp@ovn.org>
* appveyor: Add new make targetAlin Serdean2017-05-251-0/+1
| | | | | | | | | This patch adds the new make target 'datapath_windows_analyze' (static analysis over the windows datapath code) to the appveyor build. Signed-off-by: Alin Gabriel Serdean <aserdean@cloudbasesolutions.com> Acked-by: Anand Kumar <kumaranand@vmware.com> Signed-off-by: Gurucharan Shetty <guru@ovn.org>
* appveyor: Bump OpenSSL versionAlin Serdean2017-01-311-3/+3
| | | | | | | | | | The URL https://slproweb.com/download/Win32OpenSSL-1_0_2j.exe is no longer valid. Bump to the variables to the latest version of OpenSSL version. Signed-off-by: Alin Gabriel Serdean <aserdean@cloudbasesolutions.com> Signed-off-by: Ben Pfaff <blp@ovn.org>
* appveyor.yml: Install python "pypiwin32" module.Alin Serdean2017-01-041-1/+1
| | | | | | | pypiwin32 is now required for the build. Signed-off-by: Alin Gabriel Serdean <aserdean@cloudbasesolutions.com> Signed-off-by: Gurucharan Shetty <guru@ovn.org>
* Windows: Add internal switch port per OVS bridgeAlin Serdean2016-12-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch updates the following commands in the vswitch: ovs-vsctl add-br br-test ovs-vsctl del-br br-test ovs-vsctl add-br br-test: This command will now create an internal port on the MSFT virtual switch using the WMI interface from Msvm_VirtualEthernetSwitchManagementService leveraging the method AddResourceSettings. Before creating the actual port, the switch will be queried to see if there is not a port already created (good for restarts when restarting the vswitch daemon). If there is a port defined it will return success and log a message. After checking if the port already exists the command will also verify if the forwarding extension (windows datapath) is enabled and on a single switch. If it is not activated or if it is activated on multiple switches it will return an error and a message will be logged. After the port was created on the switch, we will disable the adapter on the host and rename to the corresponding OVS bridge name for consistency. The user will enable and set the values he wants after creation. ovs-vsctl del-br br-test This command will remove an internal port on the MSFT virtual switch using the Msvm_VirtualEthernetSwitchManagementService class and executing the method RemoveResourceSettings. Both commands will be blocking until the WMI job is finished, this allows us to guarantee that the ports are created and their name are set before issuing a netlink message to the windows datapath. This patch also includes helpers for normal WMI retrievals and initializations. Appveyor and documentation has been modified to include the libraries needed for COM objects. This patch was tested individually using IMallocSpy and CRT heap checks to ensure no new memory leaks are introduced. Tested on the following OS's: Windows 2012, Windows 2012r2, Windows 2016 Signed-off-by: Alin Gabriel Serdean <aserdean@cloudbasesolutions.com> Acked-by: Paul Boca <pboca@cloudbasesolutions.com> Acked-by: Sairam Venugopal <vsairam@vmware.com> Signed-off-by: Gurucharan Shetty <guru@ovn.org>
* appveyor: Update OpenSSL versionAlin Serdean2016-10-041-3/+3
| | | | | | | | | OpenSSL version changed from 1.0.2h to 1.0.2j. This patch bumps the version for the appveyor config. Signed-off-by: Alin Gabriel Serdean <aserdean@cloudbasesolutions.com> Signed-off-by: Gurucharan Shetty <guru@ovn.org>
* appveyor: Update OpenSSL versionAlin Serdean2016-05-171-3/+3
| | | | | | | | | OpenSSL version changed from 1.0.2g to 1.0.2h this patch bumps the version. Signed-off-by: Alin Gabriel Serdean <aserdean@cloudbasesolutions.com> Acked-by: Sairam Venugopal <vsairam@vmware.com> Signed-off-by: Ben Pfaff <blp@ovn.org>
* build windows: Update OpenSSL download linkAlin Serdean2016-03-231-3/+3
| | | | | | | This patch updates the appveyor dowload link for OpenSSL prebuilt binaries. Signed-off-by: Alin Gabriel Serdean <aserdean@cloudbasesolutions.com> Signed-off-by: Ben Pfaff <blp@ovn.org>
* build windows: Update OpenSSL download linkAlin Serdean2016-02-121-3/+3
| | | | | | | This patch updates the appveyor dowload link for OpenSSL prebuilt binaries. Signed-off-by: Alin Gabriel Serdean <aserdean@cloudbasesolutions.com> Signed-off-by: Gurucharan Shetty <guru@ovn.org>
* appveyor.yml: Install python "six" module.Ben Pfaff2016-01-201-0/+2
| | | | | | | | | | | | | | | It is now required for the build. Thanks to Alin Gabriel Serdean for helping figure out the correct solution here. This adds --diable-pip-version-check because upgrading pip (as suggested by the error that this option suppresses) causes pip to fail, which is in turn a bug in pip that manifests only on Windows: https://github.com/pypa/pip/issues/3383. Signed-off-by: Ben Pfaff <blp@ovn.org> Acked-by: Alin Gabriel Serdean <aserdean@cloudbasesolutions.com>
* Update appveyor OpenSSL linkAlin Serdean2016-01-041-3/+3
| | | | | | | | The link of OpenSSL 1_0_2d is no longer available update it to the current version. Signed-off-by: Alin Gabriel Serdean <aserdean@cloudbasesolutions.com> Signed-off-by: Gurucharan Shetty <guru@ovn.org>
* appveyor: Renew SSL link.Alin Serdean2015-08-281-3/+3
| | | | | | | 1_0_2a version not available for download. Signed-off-by: Alin Gabriel Serdean <aserdean@cloudbasesolutions.com> Signed-off-by: Gurucharan Shetty <gshetty@nicira.com>
* This commit adds the windows installer to the OVS tree.Alin Gabriel Serdean2015-06-071-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Requirements are the following: Visual Studio Community 2013 WiX Toolset 3.9 Microsoft_VC120_CRT_x86.msm More detailed information on the requirements and build instructions can be found under: https://github.com/cloudbase/ovs-windows-installer/blob/master/README.rst To run and make the installer issue the following: ./boot.sh ./configure CC=./build-aux/cccl LD="`which link`" \ LIBS="-lws2_32 -liphlpapi" --prefix="C:/openvswitch/usr" \ --localstatedir="C:/openvswitch/var" --sysconfdir="C:/openvswitch/etc" \ --with-pthread="C:/pthread" --with-vstudiotarget="Release" make clean && make -j16 windows_installer To uninstall one could use the following Powershell commandlets: $app = Get-WmiObject -Class Win32_Product | Where-Object ` { $_.Name -match "Open Vswitch" } $app.Uninstall() Signed-off-by: Alin Gabriel Serdean <aserdean@cloudbasesolutions.com> Co-authored-by: Alessandro Pilotti <apilotti@cloudbasesolutions.com> Signed-off-by: Alessandro Pilotti <apilotti@cloudbasesolutions.com> Signed-off-by: Gurucharan Shetty <gshetty@nicira.com>
* appveyor: Add a newer ssl link.Gurucharan Shetty2015-06-051-3/+3
| | | | | | | The older version is no longer available for download. Signed-off-by: Gurucharan Shetty <gshetty@nicira.com> Acked-by: Alin Serdean <aserdean@cloudbasesolutions.com>
* Link library updates for appveyorAlin Serdean2015-06-051-1/+1
| | | | | | | Add the library iphlpapi to the appveyor.yml build script. Signed-off-by: Alin Gabriel Serdean <aserdean@cloudbasesolutions.com> Signed-off-by: Gurucharan Shetty <gshetty@nicira.com>
* appveyor: Build windows kernel datapath.Gurucharan Shetty2015-02-061-1/+1
| | | | | Signed-off-by: Gurucharan Shetty <gshetty@nicira.com> Acked-by: Nithin Raju <nithin@vmware.com>
* appveyor: Provide a autobuild service for Windows.Gurucharan Shetty2015-02-051-0/+43
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>