Skip to content

Commit

Permalink
Add "make install" in build
Browse files Browse the repository at this point in the history
  • Loading branch information
ruicao93 committed Jun 17, 2020
1 parent 3833c85 commit 4441e86
Showing 1 changed file with 39 additions and 15 deletions.
54 changes: 39 additions & 15 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,54 +3,78 @@ image: Visual Studio 2013
branches:
only:
- build_2.13
clone_folder: C:\openvswitch
clone_folder: C:\openvswitch_compile
init:
- ps: $env:PATH ="C:\Python37;"+$env:PATH
- ps: New-Item -Type HardLink -Path "C:\Python37\python3.exe" -Value "C:\Python37\python.exe"
- ps: >-
mkdir C:\pthreads-win32
mkdir C:\ovs-build-downloads
mkdir C:\ovs-build-downloads\ssl
mkdir C:\openvswitch\driver
mkdir C:\openvswitch\redist
$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_2u.exe"
$source = "https://slproweb.com/download/Win64OpenSSL-1_0_2u.exe"
$destination = "C:\ovs-build-downloads\Win64OpenSSL-1_0_2u.exe"
Invoke-WebRequest $source -OutFile $destination
$source = "https://indy.fulgan.com/SSL/openssl-1.0.2u-x64_86-win64.zip"
$destination = "C:\ovs-build-downloads\ssl\openssl-1.0.2u-x64_86-win64.zip"
$destination = "C:\ovs-build-downloads\Win32OpenSSL-1_0_2u.exe"
Invoke-WebRequest $source -OutFile $destination
$source = "https://download.microsoft.com/download/3/2/2/3224B87F-CFA0-4E70-BDA3-3DE650EFEBA5/vcredist_x64.exe"
$destination = "C:\openvswitch\redist\vcredist_x64.exe"
Invoke-WebRequest $source -OutFile $destination
7z x C:\ovs-build-downloads\ssl\openssl-1.0.2u-x64_86-win64.zip -oC:\ovs-build-downloads\ssl
cd C:\pthreads-win32
7z x C:\pthreads-win32\pthreads-win32.zip
cd C:\ovs-build-downloads
.\Win32OpenSSL-1_0_2u.exe /silent /verysilent /sp- /suppressmsgboxes
.\Win64OpenSSL-1_0_2u.exe /silent /verysilent /sp- /suppressmsgboxes
Start-Sleep -s 30
cd C:\openvswitch
cd C:\openvswitch_compile
python3 -m pip install pypiwin32 --disable-pip-version-check
build_script:
- '"C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\Tools\VsDevCmd.bat"'
- '"C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat" amd64'
- 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 "cp /c/pthreads-win32/Pre-built.2/dll/x64/*.dll /c/openvswitch_compile/."
- 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 -j2"
- C:\MinGW\msys\1.0\bin\bash -lc "cd /c/openvswitch && make datapath_windows_analyze"
- C:\MinGW\msys\1.0\bin\bash -lc "cd /c/openvswitch && make install"
- C:\MinGW\msys\1.0\bin\bash -lc "cd /c/openvswitch_compile && ./boot.sh"
- 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-win32/Pre-built.2 --enable-ssl --with-openssl=C:/OpenSSL-Win64 --with-vstudiotarget=\"Debug\"
- C:\MinGW\msys\1.0\bin\bash -lc "cd /c/openvswitch_compile && make -j2"
- C:\MinGW\msys\1.0\bin\bash -lc "cd /c/openvswitch_compile && make install"
- cp C:\ovs-build-downloads\ssl\libeay32.dll C:\openvswitch\usr\bin
- cp C:\ovs-build-downloads\ssl\libeay32.dll C:\openvswitch\usr\sbin
- cp C:\ovs-build-downloads\ssl\ssleay32.dll C:\openvswitch\usr\bin
- cp C:\ovs-build-downloads\ssl\ssleay32.dll C:\openvswitch\usr\sbin
- cp C:\pthreads-win32\Pre-built.2\dll\x64\pthreadVC2.dll C:\openvswitch\usr\bin
- cp C:\pthreads-win32\Pre-built.2\dll\x64\pthreadVC2.dll C:\openvswitch\usr\sbin
- ps: cp C:\openvswitch_compile\datapath-windows\x64\Win10Debug\package\* C:\openvswitch\driver
- ps: cp C:\openvswitch_compile\datapath-windows\x64\Win10Debug\package.cer C:\openvswitch\driver
- ps: cp C:\openvswitch_compile\datapath-windows\misc\* C:\openvswitch\driver

after_build:
- ps: 7z a C:\ovs-2.13.zip C:\openvswitch
- ps: Push-AppveyorArtifact C:\ovs-2.13.zip
on_finish:
- ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))

0 comments on commit 4441e86

Please sign in to comment.