diff --git a/.travis.yml b/.travis.yml index 7867df4..fccb757 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 diff --git a/README.md b/README.md index cc91438..a6913ae 100644 --- a/README.md +++ b/README.md @@ -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) diff --git a/appveyor.yml b/appveyor.yml index 4ca4074..90bf78f 100755 --- a/appveyor.yml +++ b/appveyor.yml @@ -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"