mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-22 13:26:10 +01:00
Use Python3.5 (well, PIP) on AppVeyor to solve deprecation warnings
This commit is contained in:
parent
9ff2b81164
commit
019b0a0fe0
55
appveyor.yml
55
appveyor.yml
@ -11,11 +11,39 @@ branches:
|
|||||||
- /dev-travis.+/
|
- /dev-travis.+/
|
||||||
|
|
||||||
|
|
||||||
|
# We need a more up to date pip because Python 2.7 is EOL soon
|
||||||
|
init:
|
||||||
|
- set PATH=C:\Python35\Scripts;%PATH%
|
||||||
|
|
||||||
|
|
||||||
|
install:
|
||||||
|
- ps: if (($env:CONFIGURATION) -eq "Debug" -And ($env:coverage) -eq "1" ) { pip --disable-pip-version-check install codecov }
|
||||||
|
- ps: if (($env:CONFIGURATION) -eq "Debug" -And ($env:coverage) -eq "1" ) { .\misc\installOpenCppCoverage.ps1 }
|
||||||
|
|
||||||
|
|
||||||
|
before_build:
|
||||||
|
- set CXXFLAGS=%additional_flags%
|
||||||
|
# Indirection because appveyor doesn't handle multiline batch scripts properly
|
||||||
|
# https://stackoverflow.com/questions/37627248/how-to-split-a-command-over-multiple-lines-in-appveyor-yml/37647169#37647169
|
||||||
|
# https://help.appveyor.com/discussions/questions/3888-multi-line-cmd-or-powershell-warning-ignore
|
||||||
|
- cmd: .\misc\appveyorBuildConfigurationScript.bat
|
||||||
|
|
||||||
|
|
||||||
|
# build with MSBuild
|
||||||
|
build:
|
||||||
|
project: Build\Catch2.sln # path to Visual Studio solution or project
|
||||||
|
parallel: true # enable MSBuild parallel builds
|
||||||
|
verbosity: normal # MSBuild verbosity level {quiet|minimal|normal|detailed}
|
||||||
|
|
||||||
|
test_script:
|
||||||
|
- set CTEST_OUTPUT_ON_FAILURE=1
|
||||||
|
- cmd: .\misc\appveyorTestRunScript.bat
|
||||||
|
|
||||||
|
|
||||||
# Sadly we cannot use the standard "dimensions" based approach towards
|
# Sadly we cannot use the standard "dimensions" based approach towards
|
||||||
# specifying the different builds, as there is no way to add one-offs
|
# specifying the different builds, as there is no way to add one-offs
|
||||||
# builds afterwards. This means that we will painfully specify each
|
# builds afterwards. This means that we will painfully specify each
|
||||||
# build explicitly.
|
# build explicitly.
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
matrix:
|
matrix:
|
||||||
- FLAVOR: VS 2019 x64 Debug
|
- FLAVOR: VS 2019 x64 Debug
|
||||||
@ -101,28 +129,3 @@ environment:
|
|||||||
additional_flags: "/permissive- /std:c++latest"
|
additional_flags: "/permissive- /std:c++latest"
|
||||||
platform: x64
|
platform: x64
|
||||||
configuration: Debug
|
configuration: Debug
|
||||||
|
|
||||||
|
|
||||||
install:
|
|
||||||
- ps: if (($env:CONFIGURATION) -eq "Debug" -And ($env:coverage) -eq "1" ) { python -m pip --disable-pip-version-check install codecov }
|
|
||||||
- ps: if (($env:CONFIGURATION) -eq "Debug" -And ($env:coverage) -eq "1" ) { .\misc\installOpenCppCoverage.ps1 }
|
|
||||||
|
|
||||||
|
|
||||||
#Cmake will autodetect the compiler, but we set the arch
|
|
||||||
before_build:
|
|
||||||
- set CXXFLAGS=%additional_flags%
|
|
||||||
# Indirection because appveyor doesn't handle multiline batch scripts properly
|
|
||||||
# https://stackoverflow.com/questions/37627248/how-to-split-a-command-over-multiple-lines-in-appveyor-yml/37647169#37647169
|
|
||||||
# https://help.appveyor.com/discussions/questions/3888-multi-line-cmd-or-powershell-warning-ignore
|
|
||||||
- cmd: .\misc\appveyorBuildConfigurationScript.bat
|
|
||||||
|
|
||||||
|
|
||||||
# build with MSBuild
|
|
||||||
build:
|
|
||||||
project: Build\Catch2.sln # path to Visual Studio solution or project
|
|
||||||
parallel: true # enable MSBuild parallel builds
|
|
||||||
verbosity: normal # MSBuild verbosity level {quiet|minimal|normal|detailed}
|
|
||||||
|
|
||||||
test_script:
|
|
||||||
- set CTEST_OUTPUT_ON_FAILURE=1
|
|
||||||
- cmd: .\misc\appveyorTestRunScript.bat
|
|
||||||
|
Loading…
Reference in New Issue
Block a user