This commit is contained in:
Elias Kosunen 2018-06-05 11:56:11 +03:00
parent 25f9b090ec
commit d1976cfb65
6 changed files with 10 additions and 32 deletions

View File

@ -21,7 +21,7 @@ matrix:
- env: BUILD=Doc - env: BUILD=Doc
sudo: required sudo: required
# g++ 6 on Linux with C++14 # g++ 6 on Linux with C++14
- env: CXX_COMPILER=g++-6 BUILD=Debug STANDARD=14 - env: CXX=g++-6 BUILD=Debug STANDARD=14
compiler: gcc compiler: gcc
addons: addons:
apt: apt:
@ -30,7 +30,7 @@ matrix:
- ubuntu-toolchain-r-test - ubuntu-toolchain-r-test
packages: packages:
- g++-6 - g++-6
- env: CXX_COMPILER=g++-6 BUILD=Release STANDARD=14 - env: CXX=g++-6 BUILD=Release STANDARD=14
compiler: gcc compiler: gcc
addons: addons:
apt: apt:
@ -47,7 +47,7 @@ matrix:
compiler: clang compiler: clang
os: osx os: osx
# clang 6.0 on Linux with C++14 # clang 6.0 on Linux with C++14
- env: CXX_COMPILER=clang++-6.0 BUILD=Debug STANDARD=14 - env: CXX=clang++-6.0 BUILD=Debug STANDARD=14
compiler: clang compiler: clang
addons: addons:
apt: apt:
@ -59,7 +59,7 @@ matrix:
- llvm-toolchain-trusty - llvm-toolchain-trusty
- llvm-toolchain-trusty-6.0 - llvm-toolchain-trusty-6.0
# clang 4.0 on Linux with C++14 # clang 4.0 on Linux with C++14
- env: CXX_COMPILER=clang++-4.0 BUILD=Debug STANDARD=11 - env: CXX=clang++-4.0 BUILD=Debug STANDARD=11
compiler: clang compiler: clang
addons: addons:
apt: apt:
@ -71,10 +71,10 @@ matrix:
- llvm-toolchain-trusty - llvm-toolchain-trusty
- llvm-toolchain-trusty-4.0 - llvm-toolchain-trusty-4.0
# g++ 4.8 on Linux with C++11 # g++ 4.8 on Linux with C++11
- env: CXX_COMPILER=g++-4.8 BUILD=Debug STANDARD=11 - env: CXX=g++-4.8 BUILD=Debug STANDARD=11
compiler: gcc compiler: gcc
# g++ 4.4 on Linux with C++11 # g++ 4.4 on Linux with C++11
- env: CXX_COMPILER=g++-4.4 BUILD=Debug STANDARD=11 - env: CXX=g++-4.4 BUILD=Debug STANDARD=11
compiler: gcc compiler: gcc
addons: addons:
apt: apt:
@ -118,13 +118,10 @@ matrix:
- tree ./libs - tree ./libs
allow_failures: allow_failures:
# Errors # Errors
- env: CXX_COMPILER=g++-4.8 BUILD=Debug STANDARD=11 - env: CXX=g++-4.4 BUILD=Debug STANDARD=11
compiler: gcc
- env: CXX_COMPILER=g++-4.4 BUILD=Debug STANDARD=11
compiler: gcc compiler: gcc
before_script: before_script:
- if [[ "${TRAVIS_OS_NAME}" == "linux" ]]; then export CXX=${CXX_COMPILER}; fi
- if [[ "${BUILD}" != "Doc" ]]; then ${CXX} --version; fi - if [[ "${BUILD}" != "Doc" ]]; then ${CXX} --version; fi
script: script:

View File

@ -1 +0,0 @@
support/appveyor.yml

View File

@ -294,7 +294,7 @@ class fp {
significand_type f; significand_type f;
int e; int e;
static constexpr int significand_size = sizeof(significand_type) * char_size; static FMT_CONSTEXPR_DECL const int significand_size = sizeof(significand_type) * char_size;
fp(uint64_t f, int e): f(f), e(e) {} fp(uint64_t f, int e): f(f), e(e) {}

View File

@ -32,16 +32,9 @@ else:
if platform == 'x64': if platform == 'x64':
generator += ' Win64' generator += ' Win64'
cmake_command.append('-G' + generator) cmake_command.append('-G' + generator)
# build_command = ['msbuild', r'C:\projects\fmt\build\fmt.sln', '/m:4',
# r'/logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"']
build_command = ['cmake', '--build', '.', '--config', config, '--', '/m:4'] build_command = ['cmake', '--build', '.', '--config', config, '--', '/m:4']
test_command = ['ctest', '-C', config, '-T', 'Test'] test_command = ['ctest', '-C', config]
with open('DartConfiguration.tcl', 'w+') as file:
pass
check_call(cmake_command) check_call(cmake_command)
check_call(build_command) check_call(build_command)
check_call(test_command) check_call(test_command)
# Upload test results
# check_call([r'../support/appveyor-test-upload.ps1', '-configuration', config, '-jobid', jobid])

View File

@ -1,11 +0,0 @@
param (
[Parameter(Mandatory=$true)][string]$configuration,
[Parameter(Mandatory=$true)][string]$jobid
)
$XSLInputElement = New-Object System.Xml.Xsl.XslCompiledTransform
$XslInputElement.Load("https://raw.githubusercontent.com/rpavlik/jenkins-ctest-plugin/master/ctest-to-junit.xsl")
$file = $(ls Testing\*\Test.xml) | Select -first 1
$XSLInputElement.Transform((Resolve-Path $file), (Join-Path (Resolve-Path .) "ctest-to-junit-results.xml"))
$wc = New-Object 'System.Net.WebClient'
$wc.UploadFile("https://ci.appveyor.com/api/testresults/junit/$jobid", (Resolve-Path .\ctest-to-junit-results.xml))

View File

@ -145,7 +145,7 @@ if (FMT_PEDANTIC)
no-windows-h-test PRIVATE ${PROJECT_SOURCE_DIR}/include) no-windows-h-test PRIVATE ${PROJECT_SOURCE_DIR}/include)
target_compile_definitions(no-windows-h-test PRIVATE FMT_USE_WINDOWS_H=0) target_compile_definitions(no-windows-h-test PRIVATE FMT_USE_WINDOWS_H=0)
if (FMT_PEDANTIC) if (FMT_PEDANTIC)
target_compile_options(no-windows-h-test ${PEDANTIC_COMPILE_FLAGS}) target_compile_options(no-windows-h-test PRIVATE ${PEDANTIC_COMPILE_FLAGS})
endif () endif ()
target_include_directories(no-windows-h-test SYSTEM PUBLIC gtest gmock) target_include_directories(no-windows-h-test SYSTEM PUBLIC gtest gmock)
endif () endif ()