]> git.proxmox.com Git - libgit2.git/blob - appveyor.yml
debian/control: Use canonical Vcs-* URLs
[libgit2.git] / appveyor.yml
1 version: '{build}'
2 branches:
3 only:
4 - master
5 - appveyor
6 - /^maint.*/
7 environment:
8 GITTEST_INVASIVE_FS_STRUCTURE: 1
9 GITTEST_INVASIVE_FS_SIZE: 1
10
11 matrix:
12 - GENERATOR: "Visual Studio 11"
13 ARCH: 32
14 - GENERATOR: "Visual Studio 11 Win64"
15 ARCH: 64
16 - GENERATOR: "MSYS Makefiles"
17 ARCH: i686 # this is for 32-bit MinGW-w64
18 - GENERATOR: "MSYS Makefiles"
19 ARCH: 64
20 cache:
21 - i686-4.9.2-release-win32-sjlj-rt_v3-rev1.7z
22 - x86_64-4.9.2-release-win32-seh-rt_v3-rev1.7z
23
24 build_script:
25 - ps: |
26 mkdir build
27 cd build
28 if ($env:GENERATOR -ne "MSYS Makefiles") {
29 cmake -D ENABLE_TRACE=ON -D BUILD_CLAR=ON -D MSVC_CRTDBG=ON .. -G"$env:GENERATOR"
30 cmake --build . --config Debug
31 }
32 - cmd: |
33 if "%GENERATOR%"=="MSYS Makefiles" (C:\MinGW\msys\1.0\bin\sh --login /c/projects/libgit2/script/appveyor-mingw.sh)
34 test_script:
35 - ps: |
36 $ErrorActionPreference="Stop"
37 Start-FileDownload https://github.com/ethomson/poxyproxy/releases/download/v0.1.0/poxyproxy-0.1.0.jar -FileName poxyproxy.jar
38 # Run this early so we know it's ready by the time we need it
39 $proxyJob = Start-Job { java -jar $Env:APPVEYOR_BUILD_FOLDER\build\poxyproxy.jar -d --port 8080 --credentials foo:bar }
40 ctest -V -R libgit2_clar
41 $env:GITTEST_REMOTE_URL="https://github.com/libgit2/non-existent"
42 $env:GITTEST_REMOTE_USER="libgit2test"
43 ctest -V -R libgit2_clar-cred_callback
44 Receive-Job -Job $proxyJob
45 $env:GITTEST_REMOTE_PROXY_URL = "http://foo:bar@localhost:8080"
46 ctest -V -R libgit2_clar-proxy_credentials_in_url
47 $env:GITTEST_REMOTE_PROXY_URL = "http://localhost:8080"
48 $env:GITTEST_REMOTE_PROXY_USER = "foo"
49 $env:GITTEST_REMOTE_PROXY_PASS = "bar"
50 ctest -V -R libgit2_clar-proxy_credentials_request