代码拉取完成,页面将自动刷新
version: 0.3.0_b{build}-{branch}
init:
- git config --global core.autocrlf input
- set MSYSTEM=MINGW64
- ps: |
$ErrorActionPreference='silentlycontinue'
if ($env:COMPILER -eq "mingw") {
$env:PATH = "C:\msys64\usr\bin;" + $env:PATH
if ($env:PLATFORM -eq "x86") {
$env:PATH = "C:\msys64\mingw32\bin;" + $env:PATH
pacman --noconfirm --needed -S cmake make mingw-w64-i686-toolchain mingw-w64-i686-cmake 2> $NULL
} elseif ($env:PLATFORM -eq "x64") {
$env:PATH = "C:\msys64\mingw64\bin;" + $env:PATH
pacman --noconfirm --needed -S cmake make mingw-w64-x86_64-toolchain mingw-w64-x86_64-cmake 2> $NULL
}
} else {
if ($env:PLATFORM -ne "x86") {
$env:CMAKE_OPTS = $env:CMAKE_OPTS + " -A $env:PLATFORM"
}
}
$error.Clear()
- echo CMAKE_OPTS = %CMAKE_OPTS%
- set "PATH=%PATH%;%APPVEYOR_BUILD_FOLDER%\build;%APPVEYOR_BUILD_FOLDER%\build\%CONFIGURATION%"
environment:
COVERALLS_REPO_TOKEN:
secure: 5nuCg+faxFPeppoNNcSwVobswAVFUf8ut83vw8CX/4W2y0kZkGmwEfCUxSQWiQDU
CI_NAME: appveyor
CI_JOB_ID: $(APPVEYOR_JOB_ID)
GCOV_PREFIX: $(APPVEYOR_BUILD_FOLDER)
matrix:
- COMPILER: mingw
GENERATOR: "MSYS Makefiles"
CMAKE_OPTS: -DCMAKE_TOOLCHAIN_FILE="../.cmake/Toolchains/Toolchain-mingw-w64.cmake"
- COMPILER: msvc
GENERATOR: "Visual Studio 14 2015"
CFLAGS: /MP
CXXFLAGS: /MP
clone_depth: 5
platform:
- x86
- x64
configuration:
- Debug
- Release
- RelWithDebInfo
install:
- 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
- 'mkdir build && cd build'
- >
cmake
-Wno-dev
-DCMAKE_INSTALL_PREFIX="mimick-%RELEASE_NAME%"
-DCMAKE_BUILD_TYPE="%CONFIGURATION%"
-DCMAKE_SYSTEM_PROCESSOR="%PLATFORM%"
%CMAKE_OPTS%
-G "%GENERATOR%"
..
build_script:
- cmake --build .
before_deploy:
- ps: |
$archive = "mimick-$env:RELEASE_NAME-windows-$env:COMPILER-$env:PLATFORM"
cmake --build . --target install
7z a -ttar "$archive.tar" "mimick-$env:RELEASE_NAME"
7z a -tbzip2 "../$archive.tar.bz2" "$archive.tar"
Push-AppveyorArtifact "../$archive.tar.bz2"
test_script:
- ps: |
ctest --output-on-failure --timeout 10
if (-not $lastexitcode -eq 0) {
type Testing/Temporary/LastTest.log
$host.setshouldexit(1)
}
notifications:
- provider: Email
to: [franklinmathieu@gmail.com]
on_build_status_changed: true
deploy:
provider: GitHub
auth_token:
secure: MnZZQeoxBVnpV9GSSvVok5Je0/N2d/fzG4+ITw95/tYSgZ8rleBV23a5sCwAea3r
artifact: 'mimick-$(RELEASE_NAME)-windows-$(COMPILER)-$(PLATFORM).tar.bz2'
draft: false
prerelease: false
on:
appveyor_repo_tag: true
configuration: RelWithDebInfo
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。