1 Star 0 Fork 6

Michael/Simbody

forked from Gitee 极速下载/Simbody 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
appveyor.yml 2.29 KB
一键复制 编辑 原始数据 按行查看 历史
Christopher Dembia 提交于 2018-04-23 18:44 . [appveyor] Build visualizer.
# Windows testing using Visual Studio.
# Syntax for this file:
# http://www.appveyor.com/docs/appveyor-yml
# See http://msdn.microsoft.com/en-us/library/ms164311.aspx for
# command-line options to MSBuild.
# Speeding up a Visual Studio build.
# http://blogs.msdn.com/b/vcblog/archive/2011/01/05/damn-my-vc-project-is-building-slower-in-vs2010-what-do-i-do-now-a-step-by-step-guide.aspx
shallow_clone: true
image: Visual Studio 2017
platform: x64
# No need to run CI on the branch if we're also running CI for a PR.
skip_branch_with_pr: true
nuget:
disable_publish_on_pr: true
environment:
CMAKE_GENERATOR: "Visual Studio 15 2017 Win64"
matrix:
# Use the Visual Studio 14 2015 toolset.
- CMAKE_TOOLSET: "v140"
NUGET_PACKAGE_ID_SUFFIX: "-VC140"
# Use the Visual Studio 15 2017 toolset.
- CMAKE_TOOLSET: "v141"
NUGET_PACKAGE_ID_SUFFIX: "-VC141"
build_script:
# Must create separate build dir, otherwise can't read test files
# for some reason.
- mkdir build
- cd build
# Treat all warnings as errors.
- cmake .. -G"%CMAKE_GENERATOR%" -T"%CMAKE_TOOLSET%" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=C:\simbody
# See http://msdn.microsoft.com/en-us/library/ms164311.aspx for
# command-line options to MSBuild.
- cmake --build . --target ALL_BUILD --config Release -- /maxcpucount:4 /verbosity:quiet /p:TreatWarningsAsErrors="true"
test_script:
- ctest --parallel 4 --build-config Release --output-on-failure
after_test:
## On master branch, create NuGet package for Simbody, for use by OpenSim.
# Detect if we are on the master branch.
- IF %APPVEYOR_REPO_BRANCH% EQU master IF NOT DEFINED APPVEYOR_PULL_REQUEST_NUMBER SET DISTR=TRUE
# Install Simbody.
- IF DEFINED DISTR cmake --build . --target install --config Release -- /maxcpucount /verbosity:quiet
# Create NuGet package.
- IF DEFINED DISTR cd %APPVEYOR_BUILD_FOLDER%
# Create a nupkg. The install directory is to be packaged.
- IF DEFINED DISTR nuget pack doc/.simbody.nuspec -Properties "packageIdSuffix=%NUGET_PACKAGE_ID_SUFFIX%" -BasePath C:\simbody
# The line above creates the file simbody%NUGET_PACKAGE_ID_SUFFIX%.0.0.0.nupkg.
# Push this file to Appveyor's NuGet account feed, to be used by OpenSim.
- IF DEFINED DISTR appveyor PushArtifact simbody%NUGET_PACKAGE_ID_SUFFIX%.0.0.0.nupkg
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C/C++
1
https://gitee.com/zhyue8888/Simbody.git
git@gitee.com:zhyue8888/Simbody.git
zhyue8888
Simbody
Simbody
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385