appveyor.yml 1.71 KB
Newer Older
Edward Thomson committed
1 2 3 4
version: '{build}'
branches:
  only:
  - master
5
  - /^maint.*/
6
environment:
7 8
  GITTEST_INVASIVE_FS_STRUCTURE: 1
  GITTEST_INVASIVE_FS_SIZE: 1
9

10 11 12 13 14
  matrix:
  - GENERATOR: "Visual Studio 11"
    ARCH: 32
  - GENERATOR: "Visual Studio 11 Win64"
    ARCH: 64
15
  - GENERATOR: "MSYS Makefiles"
Tony Kelman committed
16 17 18 19 20 21
    ARCH: i686 # this is for 32-bit MinGW-w64
  - 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
22

Edward Thomson committed
23
build_script:
24
- ps: |
Edward Thomson committed
25 26
    mkdir build
    cd build
27
    if ($env:GENERATOR -ne "MSYS Makefiles") {
28 29
      cmake -D ENABLE_TRACE=ON -D BUILD_CLAR=ON -D MSVC_CRTDBG=ON .. -G"$env:GENERATOR"
      cmake --build . --config Debug
30
    }
Tony Kelman committed
31 32
- cmd: |
    if "%GENERATOR%"=="MSYS Makefiles" (C:\MinGW\msys\1.0\bin\sh --login /c/projects/libgit2/script/appveyor-mingw.sh)
Edward Thomson committed
33
test_script:
34
- ps: |
35
    $ErrorActionPreference="Stop"
36
    Start-FileDownload https://github.com/ethomson/poxyproxy/releases/download/v0.1.0/poxyproxy-0.1.0.jar -FileName poxyproxy.jar
37
    # Run this early so we know it's ready by the time we need it
38
    $proxyJob = Start-Job { java -jar $Env:APPVEYOR_BUILD_FOLDER\build\poxyproxy.jar -d --port 8080 --credentials foo:bar }
39
    ctest -V -R libgit2_clar
40 41
    $env:GITTEST_REMOTE_URL="https://github.com/libgit2/non-existent"
    $env:GITTEST_REMOTE_USER="libgit2test"
42
    ctest -V -R libgit2_clar-cred_callback
43
    Receive-Job -Job $proxyJob
44
    $env:GITTEST_REMOTE_PROXY_URL = "http://foo:bar@localhost:8080"
45
    ctest -V -R libgit2_clar-proxy_credentials_in_url
46
    $env:GITTEST_REMOTE_PROXY_URL = "http://localhost:8080"
47 48
    $env:GITTEST_REMOTE_PROXY_USER = "foo"
    $env:GITTEST_REMOTE_PROXY_PASS = "bar"
49
    ctest -V -R libgit2_clar-proxy_credentials_request