Criterion/appveyor.yml

90 lines
2.1 KiB
YAML
Raw Permalink Normal View History

2016-06-20 09:19:08 +02:00
version: 2.2.2_b{build}-{branch}
2015-03-16 10:30:43 +01:00
2015-09-06 01:01:48 +02:00
os: Visual Studio 2015
2015-03-16 10:30:43 +01:00
init:
- git config --global core.autocrlf input
- 'SET PATH=C:\MinGW\bin;%PATH%;C:\MinGW\msys\1.0\bin;%APPVEYOR_BUILD_FOLDER%\build;%APPVEYOR_BUILD_FOLDER%\build\Debug'
2015-03-16 11:26:03 +01:00
environment:
COVERALLS_REPO_TOKEN:
secure: 5nuCg+faxFPeppoNNcSwVobswAVFUf8ut83vw8CX/4W2y0kZkGmwEfCUxSQWiQDU
CI_NAME: appveyor
CI_JOB_ID: $(APPVEYOR_JOB_ID)
GCOV_PREFIX: $(APPVEYOR_BUILD_FOLDER)
2015-09-06 01:01:48 +02:00
matrix:
- COMPILER: mingw
2015-09-06 02:52:13 +02:00
GENERATOR: "MSYS Makefiles"
CXXFLAGS: -D__NO_INLINE__
2015-09-06 02:04:06 +02:00
- COMPILER: msvc
2015-09-06 02:52:13 +02:00
GENERATOR: "Visual Studio 14 2015"
CFLAGS: /MP
CXXFLAGS: /MP
2015-03-16 11:26:03 +01:00
2015-03-16 10:30:43 +01:00
clone_depth: 5
platform:
- x86
- x64
2015-03-16 10:30:43 +01:00
configuration:
- Debug
- Release
- RelWithDebInfo
2015-03-16 10:30:43 +01:00
install:
2015-09-07 11:16:31 +02:00
- ps: $env:RELEASE_NAME = $env:APPVEYOR_REPO_BRANCH -replace "/", "-"
# Hack to make git think it is on the tip of the repo branch
- 'git checkout -B %APPVEYOR_REPO_BRANCH%'
# Configure project
2015-08-20 05:52:52 +02:00
- 'mkdir build && cd build'
2015-09-06 02:52:13 +02:00
- >
cmake
-Wno-dev
2015-09-22 00:16:45 +02:00
-DCTESTS=ON
2015-11-01 10:02:19 +01:00
-DI18N=OFF
2015-09-07 11:16:31 +02:00
-DCMAKE_INSTALL_PREFIX="criterion-%RELEASE_NAME%"
-DCMAKE_BUILD_TYPE="%CONFIGURATION%"
%CMAKE_OPTS%
2015-09-06 02:52:13 +02:00
-G "%GENERATOR%"
..
2015-03-16 10:30:43 +01:00
build_script:
2015-09-07 11:04:33 +02:00
- cmake --build .
2015-09-06 01:01:48 +02:00
before_deploy:
2015-09-06 01:22:58 +02:00
- ps: |
2015-09-07 11:16:31 +02:00
$archive = "criterion-$env:RELEASE_NAME-windows-$env:COMPILER-$env:PLATFORM"
cmake --build . --target install
7z a -ttar "$archive.tar" "criterion-$env:RELEASE_NAME"
7z a -tbzip2 "../$archive.tar.bz2" "$archive.tar"
Push-AppveyorArtifact "../$archive.tar.bz2"
2015-08-20 05:52:52 +02:00
2015-03-16 10:30:43 +01:00
test_script:
- cmake --build . --target criterion_tests
- ps: |
ctest -j2
if (-not $lastexitcode -eq 0) {
type Testing/Temporary/LastTest.log
}
2015-03-16 10:30:43 +01:00
#after_test:
# - 'make coveralls'
2015-03-17 01:06:41 +01:00
2015-03-16 10:30:43 +01:00
notifications:
- provider: Email
to: [franklinmathieu@gmail.com]
on_build_status_changed: true
2015-08-20 03:12:00 +02:00
deploy:
provider: GitHub
auth_token:
secure: MnZZQeoxBVnpV9GSSvVok5Je0/N2d/fzG4+ITw95/tYSgZ8rleBV23a5sCwAea3r
2015-09-07 11:16:31 +02:00
artifact: 'criterion-$(RELEASE_NAME)-windows-$(COMPILER)-$(PLATFORM).tar.bz2'
2015-08-20 03:12:00 +02:00
draft: false
prerelease: false
on:
appveyor_repo_tag: true
configuration: RelWithDebInfo