代码拉取完成,页面将自动刷新
version: 'build-{build}-{branch}'
platform: x64
build:
parallel: true
cache:
- c:\tools\vcpkg\installed\ -> testing\dependencies\appveyor\install.bat
- c:\msys64\var\cache\pacman\pkg -> testing\dependencies\appveyor\install.bat
- c:\Deps\conda\ -> testing\dependencies\appveyor\anaconda.ps1
- c:\Deps\boost_1_67_0 -> testing\dependencies\appveyor\boost.bat
image:
- Visual Studio 2017
environment:
# Create expected SHELL variable for pipenv.
SHELL: 'windows'
CTEST_OUTPUT_ON_FAILURE: '1'
matrix:
- CMAKE_GENERATOR: 'MSYS Makefiles'
BUILDFLAGS: 'VERBOSE=1'
- CMAKE_GENERATOR: 'Visual Studio 15 2017 Win64'
BUILDFLAGS: '/verbosity:normal'
- CMAKE_GENERATOR: 'Ninja'
BUILDFLAGS: '-v'
- CMAKE_GENERATOR: 'Visual Studio 15 2017 Win64'
BUILDFLAGS: '/verbosity:normal'
ANACONDA_TESTS_ONLY: '1'
matrix:
fast_finish: true
init:
- set PATH=C:\msys64\MINGW64\bin;C:\msys64\usr\bin;%PATH%
- set PATH=C:\Python37-x64;C:\Python37-x64\Scripts;%PATH%
# Remove Python 2.7 from path
- set PATH=%PATH:C:\Python27;=%
- set PATH=%PATH:C:\Python27\Scripts;=%
# Add Anaconda to PATH
- set PATH=C:\Deps\conda\Scripts;C:\Deps\conda\library\bin;%PATH%
# Put Boost libraries on PATH
- set PATH=C:\Deps\boost_1_67_0\lib;%PATH%
install:
- python -m pip install pipenv
- '%APPVEYOR_BUILD_FOLDER%\testing\dependencies\appveyor\install.bat'
- '%APPVEYOR_BUILD_FOLDER%\testing\dependencies\appveyor\boost.bat'
- ps: .$env:APPVEYOR_BUILD_FOLDER\testing\dependencies\appveyor\anaconda.ps1
- ps: .$env:APPVEYOR_BUILD_FOLDER\testing\dependencies\appveyor\install-msmpi.ps1
# extract step has to happen before the sh.exe workaround otherwise 7z will complain
before_build:
- python --version
- cmake --version
- cd C:\projects
- appveyor DownloadFile https://github.com/dev-cafe/cmake-cookbook/archive/%APPVEYOR_REPO_COMMIT%.zip
- '%APPVEYOR_BUILD_FOLDER%\testing\dependencies\appveyor\extract.bat'
# the pipenv lock was added as workaround for pipenv complaining about wrong checksum
# after upgrade to Python 3.7 on Appveyor
build_script:
- bash -c "cd /c/projects/cmake-cookbook-no-symlinks && pipenv lock"
- bash -c "cd /c/projects/cmake-cookbook-no-symlinks && pipenv install"
- if "%ANACONDA_TESTS_ONLY%"=="1" (
bash -c "cd /c/projects/cmake-cookbook-no-symlinks && pipenv run python testing/collect_tests.py 'chapter-11/recipe-04'"
) else (
bash -c "cd /c/projects/cmake-cookbook-no-symlinks && pipenv run python testing/collect_tests.py 'chapter-01/recipe-*'" &&
bash -c "cd /c/projects/cmake-cookbook-no-symlinks && pipenv run python testing/collect_tests.py 'chapter-02/recipe-*'" &&
bash -c "cd /c/projects/cmake-cookbook-no-symlinks && pipenv run python testing/collect_tests.py 'chapter-03/recipe-*'" &&
bash -c "cd /c/projects/cmake-cookbook-no-symlinks && pipenv run python testing/collect_tests.py 'chapter-04/recipe-*'" &&
bash -c "cd /c/projects/cmake-cookbook-no-symlinks && pipenv run python testing/collect_tests.py 'chapter-05/recipe-*'" &&
bash -c "cd /c/projects/cmake-cookbook-no-symlinks && pipenv run python testing/collect_tests.py 'chapter-06/recipe-*'" &&
bash -c "cd /c/projects/cmake-cookbook-no-symlinks && pipenv run python testing/collect_tests.py 'chapter-07/recipe-*'" &&
bash -c "cd /c/projects/cmake-cookbook-no-symlinks && pipenv run python testing/collect_tests.py 'chapter-08/recipe-*'" &&
bash -c "cd /c/projects/cmake-cookbook-no-symlinks && pipenv run python testing/collect_tests.py 'chapter-09/recipe-*'" &&
bash -c "cd /c/projects/cmake-cookbook-no-symlinks && pipenv run python testing/collect_tests.py 'chapter-10/recipe-*'" &&
bash -c "cd /c/projects/cmake-cookbook-no-symlinks && pipenv run python testing/collect_tests.py 'chapter-11/recipe-0[1-3]'" &&
bash -c "cd /c/projects/cmake-cookbook-no-symlinks && pipenv run python testing/collect_tests.py 'chapter-12/recipe-*'" &&
bash -c "cd /c/projects/cmake-cookbook-no-symlinks && pipenv run python testing/collect_tests.py 'chapter-13/recipe-*'" &&
bash -c "cd /c/projects/cmake-cookbook-no-symlinks && pipenv run python testing/collect_tests.py 'chapter-14/recipe-*'"
)
deploy: off
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。