update ci

This commit is contained in:
Neargye 2018-05-28 16:57:38 +05:00
parent 4fa2614c30
commit b27bc04ca9
3 changed files with 20 additions and 14 deletions

View file

@ -26,7 +26,7 @@ before_build:
- if exist build RMDIR /S /Q build
- if not exist build mkdir build
- cd build
- cmake .. -G "%GENERATOR%"
- cmake .. -G "%GENERATOR%" -DCMAKE_BUILD_TYPE=${CONFIGURATION}
build_script:
- cmake --build . --config %CONFIGURATION%

View file

@ -13,6 +13,12 @@ matrix:
include:
- os: linux
compiler: g++
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.8
env:
- CXX_COMPILER=g++-4.8 CC_COMPILER=gcc-4.8 CONFIGURATION=Debug
@ -159,73 +165,73 @@ matrix:
compiler: clang++
osx_image: xcode7.0
env:
- CONFIGURATION=Debug
- CXX_COMPILER=clang++ CC_COMPILER=clang CONFIGURATION=Debug
- os: osx
compiler: clang++
osx_image: xcode7.1
env:
- CONFIGURATION=Debug
- CXX_COMPILER=clang++ CC_COMPILER=clang CONFIGURATION=Debug
- os: osx
compiler: clang++
osx_image: xcode7.2
env:
- CONFIGURATION=Debug
- CXX_COMPILER=clang++ CC_COMPILER=clang CONFIGURATION=Debug
- os: osx
compiler: clang++
osx_image: xcode7.3
env:
- CONFIGURATION=Debug
- CXX_COMPILER=clang++ CC_COMPILER=clang CONFIGURATION=Debug
- os: osx
compiler: clang++
osx_image: xcode8.0
env:
- CONFIGURATION=Debug
- CXX_COMPILER=clang++ CC_COMPILER=clang CONFIGURATION=Debug
- os: osx
compiler: clang++
osx_image: xcode8.1
env:
- CONFIGURATION=Debug
- CXX_COMPILER=clang++ CC_COMPILER=clang CONFIGURATION=Debug
- os: osx
compiler: clang++
osx_image: xcode8.2
env:
- CONFIGURATION=Debug
- CXX_COMPILER=clang++ CC_COMPILER=clang CONFIGURATION=Debug
- os: osx
compiler: clang++
osx_image: xcode8.3
env:
- CONFIGURATION=Debug
- CXX_COMPILER=clang++ CC_COMPILER=clang CONFIGURATION=Debug
- os: osx
compiler: clang++
osx_image: xcode9.0
env:
- CONFIGURATION=Debug
- CXX_COMPILER=clang++ CC_COMPILER=clang CONFIGURATION=Debug
- os: osx
compiler: clang++
osx_image: xcode9.1
env:
- CONFIGURATION=Debug
- CXX_COMPILER=clang++ CC_COMPILER=clang CONFIGURATION=Debug
- os: osx
compiler: clang++
osx_image: xcode9.2
env:
- CONFIGURATION=Debug
- CXX_COMPILER=clang++ CC_COMPILER=clang CONFIGURATION=Debug
- os: osx
compiler: clang++
osx_image: xcode9.3
env:
- CONFIGURATION=Debug
- CXX_COMPILER=clang++ CC_COMPILER=clang CONFIGURATION=Debug
install:
- export CC=${CC_COMPILER}

View file

@ -7,7 +7,7 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
if((CMAKE_CXX_COMPILER_ID MATCHES "GNU") OR (CMAKE_CXX_COMPILER_ID MATCHES "Clang"))
add_compile_options(-Wall -Wextra -pedantic)
add_compile_options(-Wall -Wextra -pedantic-errors)
elseif(CMAKE_CXX_COMPILER_ID MATCHES "MSVC")
add_compile_options(/W4)
check_cxx_compiler_flag(/permissive HAS_PERMISSIVE_FLAG)