mirror of
				https://github.com/fmtlib/fmt.git
				synced 2025-11-03 23:51:41 +01:00 
			
		
		
		
	* Add a _lot_ more warnings to FMT_PEDANTIC Fix these warnings * Add more compilers to CI Fix (some) of the compiler errors with them * Enable -Werror on CI Increase warning level on MSVC when compiling with FMT_PEDANTIC * Add VS 2013 and 2015 to Appveyor * Fix Appveyor tests Formatting * Implement requested changes Fix some of the MSVC warnings Implement C++11 integer_sequence * Reintroduce appveyor-build.py * Remove ranges-test from tests * Remove (some) explicit warning suppressions Fix C++ standard setting in CI * Remove (some) explicit warning suppressions Fix C++ standard setting in CI * Fix test builds with C++11 * Enable pedantic warnings on tests * Fix warnings from edits to master * Cleanups * Add C++11 support to ranges.h Re-enable ranges-test Fix a Visual Studio error about function not returning a value in printf.h Fix a bug in .travis.yml
		
			
				
	
	
		
			41 lines
		
	
	
		
			1.5 KiB
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			41 lines
		
	
	
		
			1.5 KiB
		
	
	
	
		
			Python
		
	
	
	
	
	
#!/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, '..']
 | 
						|
if build == 'mingw':
 | 
						|
    cmake_command.append('-GMinGW Makefiles')
 | 
						|
    build_command = ['mingw32-make', '-j4']
 | 
						|
    test_command = ['mingw32-make', 'test']
 | 
						|
    # Remove the path to Git bin directory from $PATH because it breaks
 | 
						|
    # MinGW config.
 | 
						|
    path = path.replace(r'C:\Program Files (x86)\Git\bin', '')
 | 
						|
    os.environ['PATH'] = r'C:\MinGW\bin;' + path
 | 
						|
else:
 | 
						|
    # 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 2013':
 | 
						|
        generator = 'Visual Studio 12 2013'
 | 
						|
    elif 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)
 |