1 Star 0 Fork 0

herolin12/dart

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.appveyor.yml 3.09 KB
一键复制 编辑 原始数据 按行查看 历史
# Specify version format
version: "{build}"
image:
- Visual Studio 2019
# - Ubuntu1604
# - Ubuntu1804
platform: x64
# specify custom environment variables
environment:
MSVC_DEFAULT_OPTIONS: ON
CMAKE_TOOLCHAIN_FILE: -DCMAKE_TOOLCHAIN_FILE="C:\tools\vcpkg\scripts\buildsystems\vcpkg.cmake"
matrix:
- CMAKE_GENERATOR: -G"Visual Studio 16 2019"
CMAKE_TOOLCHAIN: -T"v142"
# build configuration, i.e. Debug, Release, etc.
configuration:
- Debug
# - Release
# scripts that are called at very beginning, before repo cloning
init:
- cmd: cmake --version
- cmd: msbuild /version
# branches to build
branches:
# blacklist
except:
- gh-pages
# scripts that run after cloning repository
install:
#------------------
# Windows 10
#------------------
# update vcpkg
# - cmd: cd C:\tools\vcpkg
# - cmd: git pull
# - cmd: .\bootstrap-vcpkg.bat
- cmd: if "%platform%"=="Win32" set VCPKG_ARCH=x86-windows
- cmd: if "%platform%"=="x64" set VCPKG_ARCH=x64-windows
# remove outdated versions
# - cmd: vcpkg remove --outdated --recurse
# install required dependencies
- cmd: vcpkg install --recurse --triplet %VCPKG_ARCH% assimp boost-system boost-filesystem ccd eigen3 fcl
# install optional dependencies
# 'dart-utils' needs tinyxml2 and boost algorithm/lexical-cast
# and also boost-math to resolve a circular dependency with lexical-cast
- cmd: vcpkg install --recurse --triplet %VCPKG_ARCH% boost-algorithm boost-lexical-cast boost-math bullet3 freeglut ode opengl tinyxml2
#- vcpkg install --recurse --triplet %VCPKG_ARCH% flann ipopt nlopt osg urdfdom
- cmd: vcpkg integrate install
- cmd: cd "%APPVEYOR_BUILD_FOLDER%"
#-------------------------------
# Ubuntu 16.04 LTS && 18.04 LTS
#-------------------------------
- sh: sudo apt-get update
- sh: sudo apt-get --yes install build-essential cmake pkg-config git
- sh: sudo apt-get --yes install libeigen3-dev libassimp-dev libccd-dev libfcl-dev libboost-system-dev
- sh: sudo apt-get --yes install libnlopt-dev coinor-libipopt-dev libbullet-dev libflann-dev libtinyxml2-dev liburdfdom-dev libxi-dev libxmu-dev freeglut3-dev libopenscenegraph-dev
- sh: sudo apt-get --yes install clang-format-6.0
# preserve contents of selected directories and files across project builds
cache:
- C:\tools\vcpkg\installed -> .appveyor.yml
build_script:
#------------------
# Windows 10
#------------------
- cmd: mkdir build && cd build
- cmd: cmake %CMAKE_GENERATOR% -A x64 -DCMAKE_BUILD_TYPE=%configuration% -DDART_VERBOSE=ON -DDART_MSVC_DEFAULT_OPTIONS="%MSVC_DEFAULT_OPTIONS%" %CMAKE_TOOLCHAIN_FILE% %CMAKE_TOOLCHAIN% ..
# - cmd: cmake --build . --target ALL_BUILD --config %configuration% -- /maxcpucount:4
#-------------------------------
# Ubuntu 16.04 LTS && 18.04 LTS
#-------------------------------
- sh: mkdir build && cd build
- sh: cmake -DCMAKE_BUILD_TYPE=$configuration -DDART_TREAT_WARNINGS_AS_ERRORS=ON ..
- sh: make -j4 tests examples tutorials
- sh: make check-format
test_script:
#- cmd: ctest --build-config %configuration% --parallel 4 --output-on-failure
- sh: ctest -j4
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/herolin12/dart.git
git@gitee.com:herolin12/dart.git
herolin12
dart
dart
master

搜索帮助