c04f8a5bb9
* -Wsuggest-override is not supported by gcc before 5.0 * GCC prior to 5.0 should ignore not only -Wnon-virtual-dtor but also -Weffc++, otherwise non-virtual destructor problems will still be reported. * The `#pragma GCC diagnostic push' should be used before setting up the temporary environment. * When using GCC4.8, use manual lexical analysis instead of regular expressions. * Add gcc4.8 stuff to travis file.
99 lines
2.4 KiB
YAML
99 lines
2.4 KiB
YAML
sudo: required
|
|
dist: trusty
|
|
language: cpp
|
|
os:
|
|
- linux
|
|
matrix:
|
|
include:
|
|
- os: linux
|
|
env: COMPILER=g++-6
|
|
addons:
|
|
apt:
|
|
packages:
|
|
- g++-6
|
|
sources: &sources
|
|
- llvm-toolchain-trusty-3.8
|
|
- llvm-toolchain-trusty-5.0
|
|
- ubuntu-toolchain-r-test
|
|
- os: linux
|
|
env: COMPILER=g++-6 UNICODE_OPTIONS=-DCXXOPTS_USE_UNICODE_HELP=Yes
|
|
addons:
|
|
apt:
|
|
packages:
|
|
- g++-6
|
|
sources: *sources
|
|
- os: linux
|
|
env: COMPILER=g++-7
|
|
addons:
|
|
apt:
|
|
packages:
|
|
- g++-7
|
|
sources: *sources
|
|
- os: linux
|
|
env: COMPILER=g++-7 UNICODE_OPTIONS=-DCXXOPTS_USE_UNICODE_HELP=Yes
|
|
addons:
|
|
apt:
|
|
packages:
|
|
- g++-7
|
|
sources: *sources
|
|
- os: linux
|
|
env: COMPILER=g++-5
|
|
addons:
|
|
apt:
|
|
packages:
|
|
- g++-5
|
|
sources: *sources
|
|
- os: linux
|
|
env: COMPILER=g++-5 UNICODE_OPTIONS=-DCXXOPTS_USE_UNICODE_HELP=Yes
|
|
addons:
|
|
apt:
|
|
packages:
|
|
- g++-5
|
|
sources: *sources
|
|
- os: linux
|
|
env: COMPILER=g++-4.8
|
|
addons:
|
|
apt:
|
|
packages:
|
|
- g++-4.8
|
|
sources: *sources
|
|
- os: linux
|
|
env: COMPILER=g++-4.8 UNICODE_OPTIONS=-DCXXOPTS_USE_UNICODE_HELP=Yes
|
|
addons:
|
|
apt:
|
|
packages:
|
|
- g++-4.8
|
|
sources: *sources
|
|
- os: linux
|
|
env: COMPILER=clang++-3.8 CXXFLAGS=-stdlib=libc++
|
|
addons:
|
|
apt:
|
|
packages:
|
|
- clang-3.8
|
|
- libc++-dev
|
|
sources: *sources
|
|
- os: linux
|
|
env: COMPILER=clang++-3.8 CXXFLAGS=-stdlib=libc++ UNICODE_OPTIONS=-DCXXOPTS_USE_UNICODE_HELP=Yes
|
|
addons:
|
|
apt:
|
|
packages:
|
|
- clang-3.8
|
|
- libc++-dev
|
|
sources: *sources
|
|
- os: linux
|
|
env: COMPILER=clang++-5.0 CMAKE_OPTIONS=-DCXXOPTS_CXX_STANDARD=17
|
|
addons:
|
|
apt:
|
|
packages:
|
|
- clang-5.0
|
|
- g++-5
|
|
sources: *sources
|
|
script: >
|
|
cmake -Werror=dev -DCXXOPTS_BUILD_TESTS=ON -DCMAKE_CXX_COMPILER=$COMPILER
|
|
-DCMAKE_CXX_FLAGS=$CXXFLAGS $UNICODE_OPTIONS $CMAKE_OPTIONS .
|
|
&& make && make ARGS=--output-on-failure test
|
|
|
|
before_install:
|
|
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update ; fi
|
|
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install icu4c; fi
|