mirror of
https://github.com/fmtlib/fmt.git
synced 2024-12-25 15:21:54 +00:00
Remove appveyor config
This commit is contained in:
parent
cf8d3c3229
commit
30cb2b3122
@ -1,34 +0,0 @@
|
|||||||
#!/usr/bin/env python
|
|
||||||
# Build the project on AppVeyor.
|
|
||||||
|
|
||||||
import os
|
|
||||||
from subprocess import check_call
|
|
||||||
|
|
||||||
build = os.environ['BUILD']
|
|
||||||
config = os.environ['CONFIGURATION']
|
|
||||||
platform = os.environ['PLATFORM']
|
|
||||||
path = os.environ['PATH']
|
|
||||||
image = os.environ['APPVEYOR_BUILD_WORKER_IMAGE']
|
|
||||||
jobid = os.environ['APPVEYOR_JOB_ID']
|
|
||||||
cmake_command = ['cmake', '-DFMT_PEDANTIC=ON', '-DCMAKE_BUILD_TYPE=' + config, '..']
|
|
||||||
# Add MSBuild 14.0 to PATH as described in
|
|
||||||
# http://help.appveyor.com/discussions/problems/2229-v140-not-found-on-vs2105rc.
|
|
||||||
os.environ['PATH'] = r'C:\Program Files (x86)\MSBuild\15.0\Bin;' + path
|
|
||||||
if image == 'Visual Studio 2019':
|
|
||||||
generator = 'Visual Studio 16 2019'
|
|
||||||
if platform == 'x64':
|
|
||||||
cmake_command.extend(['-A', 'x64'])
|
|
||||||
else:
|
|
||||||
if image == 'Visual Studio 2015':
|
|
||||||
generator = 'Visual Studio 14 2015'
|
|
||||||
elif image == 'Visual Studio 2017':
|
|
||||||
generator = 'Visual Studio 15 2017'
|
|
||||||
if platform == 'x64':
|
|
||||||
generator += ' Win64'
|
|
||||||
cmake_command.append('-G' + generator)
|
|
||||||
build_command = ['cmake', '--build', '.', '--config', config, '--', '/m:4']
|
|
||||||
test_command = ['ctest', '-C', config]
|
|
||||||
|
|
||||||
check_call(cmake_command)
|
|
||||||
check_call(build_command)
|
|
||||||
check_call(test_command)
|
|
@ -1,31 +0,0 @@
|
|||||||
configuration:
|
|
||||||
- Debug
|
|
||||||
- Release
|
|
||||||
|
|
||||||
clone_depth: 1
|
|
||||||
|
|
||||||
image:
|
|
||||||
- Visual Studio 2015
|
|
||||||
|
|
||||||
platform:
|
|
||||||
- x64
|
|
||||||
|
|
||||||
environment:
|
|
||||||
CTEST_OUTPUT_ON_FAILURE: 1
|
|
||||||
MSVC_DEFAULT_OPTIONS: ON
|
|
||||||
BUILD: msvc
|
|
||||||
|
|
||||||
before_build:
|
|
||||||
- mkdir build
|
|
||||||
- cd build
|
|
||||||
|
|
||||||
build_script:
|
|
||||||
- python ../support/appveyor-build.py
|
|
||||||
|
|
||||||
on_failure:
|
|
||||||
- appveyor PushArtifact Testing/Temporary/LastTest.log
|
|
||||||
- appveyor AddTest test
|
|
||||||
|
|
||||||
# Uncomment this to debug AppVeyor failures.
|
|
||||||
#on_finish:
|
|
||||||
# - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
|
|
Loading…
Reference in New Issue
Block a user