add older compilers

This commit is contained in:
pantor
2019-01-21 21:42:52 +01:00
parent dbcd5265fc
commit 5553ee7526
3 changed files with 27 additions and 4 deletions

View File

@@ -4,6 +4,14 @@ sudo: required
matrix:
include:
- os: linux
compiler: gcc
env: COMPILER=g++-5
addons:
apt:
sources: ['ubuntu-toolchain-r-test']
packages: g++-5
- os: linux
compiler: gcc
env: COMPILER=g++-6
@@ -11,6 +19,7 @@ matrix:
apt:
sources: ['ubuntu-toolchain-r-test']
packages: g++-6
- os: linux
compiler: gcc
env:
@@ -22,6 +31,7 @@ matrix:
packages:
- g++-7
- doxygen
- os: linux
compiler: gcc
env:
@@ -41,6 +51,14 @@ matrix:
sources: ubuntu-toolchain-r-test
packages: g++-8
- os: linux
compiler: clang
env: COMPILER=clang++-5.0
addons:
apt:
sources: ['ubuntu-toolchain-r-test', 'llvm-toolchain-trusty-5.0']
packages: ['clang-5.0', 'libstdc++-7-dev']
- os: linux
compiler: clang
env: COMPILER=clang++-6.0

View File

@@ -262,8 +262,8 @@ render("Hello{# Todo #}!", data); // "Hello!"
## Supported compilers
Inja uses `string_view` from C++17, everything else should work with C++11. Currently, the following compilers are tested:
Inja uses `string_view` from C++17, but includes the [polyfill](https://github.com/martinmoene/string-view-lite) from martinmoene. This way, the minimum version is C++11. Currently, the following compilers are tested:
- GCC 7.0 - 8.0 (and possibly later)
- Clang 6.0 (and possibly later)
- Microsoft Visual C++ 2017 / Build Tools 15.1.548.43366 (and possibly later)
- GCC 5.0 - 8.0 (and possibly later)
- Clang 5.0 - 6.0 (and possibly later)
- Microsoft Visual C++ 2015 - 2017 (and possibly later)

View File

@@ -2,6 +2,11 @@ version: '{build}'
environment:
matrix:
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
platform: x64
FLAGS: "/permissive- /utf-8 /Zc:__cplusplus"
GENERATOR: Visual Studio 14 2015
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
platform: x64
FLAGS: "/permissive- /std:c++17 /utf-8 /Zc:__cplusplus"