Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
git2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
git2
Commits
465f8b51
Commit
465f8b51
authored
Jul 26, 2018
by
Edward Thomson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ci: move appveyor to new scripts
parent
f7bb4ff8
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
61 deletions
+21
-61
appveyor.yml
+21
-38
script/appveyor-mingw.sh
+0
-23
No files found.
appveyor.yml
View file @
465f8b51
...
...
@@ -10,52 +10,35 @@ environment:
matrix
:
-
APPVEYOR_BUILD_WORKER_IMAGE
:
Visual Studio 2013
GENERATOR
:
"
Visual
Studio
10
2010"
ARCH
:
32
CMAKE_OPTIONS
:
-G
"Visual Studio 10 2010"
ARCH
:
x86
-
APPVEYOR_BUILD_WORKER_IMAGE
:
Visual Studio 2013
GENERATOR
:
"
Visual
Studio
10
2010
Win64"
ARCH
:
64
CMAKE_OPTIONS
:
-G
"Visual Studio 10 2010 Win64"
ARCH
:
amd
64
-
APPVEYOR_BUILD_WORKER_IMAGE
:
Visual Studio 2015
GENERATOR
:
"
Visual
Studio
14
2015"
ARCH
:
32
CMAKE_OPTIONS
:
-G
"Visual Studio 14 2015"
ARCH
:
x86
-
APPVEYOR_BUILD_WORKER_IMAGE
:
Visual Studio 2015
GENERATOR
:
"
Visual
Studio
14
2015
Win64"
ARCH
:
64
CMAKE_OPTIONS
:
-G
"Visual Studio 14 2015 Win64"
ARCH
:
amd
64
-
APPVEYOR_BUILD_WORKER_IMAGE
:
Visual Studio 2015
GENERATOR
:
"
MSYS
Makefiles"
ARCH
:
i686
# this is for 32-bit MinGW-w64
CMAKE_OPTIONS
:
-G"MinGW
Makefiles"
ARCH
:
x86
-
APPVEYOR_BUILD_WORKER_IMAGE
:
Visual Studio 2015
GENERATOR
:
"
MSYS
Makefiles"
ARCH
:
64
cache
:
-
i686-4.9.2-release-win32-sjlj-rt_v3-rev1.7z
-
x86_64-4.9.2-release-win32-seh-rt_v3-rev1.7z
CMAKE_OPTIONS
:
-G"MinGW Makefiles"
ARCH
:
amd64
build_script
:
install
:
-
set PATH=%TEMP%\mingw64\bin;%TEMP%\mingw32\bin;C:\ProgramData\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\CMake\bin
-
ps
:
|
mkdir build
cd build
if ($env:GENERATOR -ne "MSYS Makefiles") {
cmake -D ENABLE_TRACE=ON -D BUILD_CLAR=ON -D BUILD_EXAMPLES=ON -D MSVC_CRTDBG=ON .. -G"$env:GENERATOR"
cmake --build . --config Debug
if ($env:CMAKE_OPTIONS -eq '-G"MinGW Makefiles"') {
../ci/setup-mingw.ps1
}
-
cmd
:
|
if "%GENERATOR%"=="MSYS Makefiles" (C:\MinGW\msys\1.0\bin\sh --login /c/projects/libgit2/script/appveyor-mingw.sh)
build_script
:
-
cmd
:
powershell ../ci/build.ps1
test_script
:
-
ps
:
|
# Disable DHE key exchange to fix intermittent build failures ("A buffer
# provided was too small") due to SChannel bug. See e.g.
# - https://github.com/aws/aws-sdk-cpp/issues/671
# - https://github.com/dotnet/corefx/issues/7812
New-Item HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\KeyExchangeAlgorithms\Diffie-Hellman -Force | New-ItemProperty -Name Enabled -Value 0 -Force
$ErrorActionPreference="Stop"
Start-FileDownload https://github.com/ethomson/poxyproxy/releases/download/v0.1.0/poxyproxy-0.1.0.jar -FileName poxyproxy.jar
# Run this early so we know it's ready by the time we need it
$proxyJob = Start-Job { java -jar $Env:APPVEYOR_BUILD_FOLDER\build\poxyproxy.jar -d --port 8080 --credentials foo:bar }
ctest -V -R offline
ctest -V -R online
Receive-Job -Job $proxyJob
$env:GITTEST_REMOTE_PROXY_URL = "localhost:8080"
$env:GITTEST_REMOTE_PROXY_USER = "foo"
$env:GITTEST_REMOTE_PROXY_PASS = "bar"
ctest -V -R proxy
-
cmd
:
powershell ../ci/test.ps1
script/appveyor-mingw.sh
deleted
100755 → 0
View file @
f7bb4ff8
#!/bin/sh
set
-e
cd
`
dirname
"
$0
"
`
/..
if
[
"
$ARCH
"
=
"i686"
]
;
then
f
=
i686-4.9.2-release-win32-sjlj-rt_v3-rev1.7z
if
!
[
-e
$f
]
;
then
curl
-LsSO
http://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win32/Personal%20Builds/mingw-builds/4.9.2/threads-win32/sjlj/
$f
fi
7z x
$f
>
/dev/null
export
PATH
=
`
pwd
`
/mingw32/bin:
$PATH
else
f
=
x86_64-4.9.2-release-win32-seh-rt_v3-rev1.7z
if
!
[
-e
$f
]
;
then
curl
-LsSO
http://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win64/Personal%20Builds/mingw-builds/4.9.2/threads-win32/seh/
$f
fi
7z x
$f
>
/dev/null
export
PATH
=
`
pwd
`
/mingw64/bin:
$PATH
fi
cd
build
gcc
--version
cmake
--version
cmake
-D
ENABLE_TRACE
=
ON
-D
BUILD_CLAR
=
ON
-D
BUILD_EXAMPLES
=
ON ..
-G
"
$GENERATOR
"
cmake
--build
.
--config
RelWithDebInfo
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment