Skip to content

Commit

Permalink
appveyor: Integrate with coveralls.
Browse files Browse the repository at this point in the history
  • Loading branch information
jrfonseca committed Mar 17, 2016
1 parent cfe7ee9 commit 11259c2
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,15 @@ branches:
except:
- /^travis.*$/

shallow_clone: true
clone_depth: 5

cache:
- x86_64-4.9.2-release-win32-seh-rt_v4-rev4.7z
- i686-4.9.2-release-win32-dwarf-rt_v4-rev4.7z

environment:
COVERALLS_REPO_TOKEN:
secure: QOuiktPDkbsZmX/lOynJrOrrpR09k8C14rSPRjGnohwrgc4Ee97qjoEQpODFb1ZK
CTEST_OUTPUT_ON_FAILURE: 1
_NT_SYMBOL_PATH: srv*C:\symbols*http://msdl.microsoft.com/download/symbols
matrix:
Expand All @@ -28,6 +30,8 @@ environment:
install:
- if not exist "%MINGW_ARCHIVE%" appveyor DownloadFile "%MINGW_URL%" -FileName "%MINGW_ARCHIVE%"
- 7z x -y "%MINGW_ARCHIVE%" > nul
- python -m ensurepip
- python -m pip install https://github.com/jrfonseca/cpp-coveralls/archive/ntpath.zip
# CMake refuses to generate MinGW Makefiles if sh.exe is in the Path
- ps: Get-Command sh.exe -All | Remove-Item

Expand All @@ -38,7 +42,8 @@ before_build:
- cmake --version
- ps: (Get-Item "${Env:WINDBG_DIR}\dbghelp.dll").VersionInfo
- if "%APPVEYOR_REPO_TAG%"=="true" (set CMAKE_BUILD_TYPE=Release) else (set CMAKE_BUILD_TYPE=Debug)
- cmake -H. -Bbuild\mingw -G "MinGW Makefiles" -DCMAKE_BUILD_TYPE=%CMAKE_BUILD_TYPE% -DWINDBG_DIR="%WINDBG_DIR%"
- if "%APPVEYOR_REPO_TAG%"=="true" (set ENABLE_COVERAGE=0) else (set ENABLE_COVERAGE=1)
- cmake -H. -Bbuild\mingw -G "MinGW Makefiles" -DCMAKE_BUILD_TYPE=%CMAKE_BUILD_TYPE% -DENABLE_COVERAGE=%ENABLE_COVERAGE% -DWINDBG_DIR="%WINDBG_DIR%"

build_script:
- cmake --build build\mingw --use-stderr --target all -- -j%NUMBER_OF_PROCESSORS%
Expand All @@ -54,6 +59,9 @@ after_build:
- if "%MINGW_DIR%"=="mingw64" python tests\apps\test.py build\mingw\bin\catchsegv.exe build\msvc32\Debug build\msvc64\Debug
- cmake --build build\mingw --use-stderr --target package

on_success:
- C:\Python27\Scripts\coveralls --include src --gcov-options="-lp"

artifacts:
- path: build\mingw\drmingw-*.7z

Expand Down

0 comments on commit 11259c2

Please sign in to comment.