-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CI add more compiler and raise warnings
- Loading branch information
Showing
1 changed file
with
72 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,130 +1,159 @@ | ||
language: cpp | ||
dist: trusty | ||
sudo: false | ||
sudo: required | ||
group: edge | ||
|
||
matrix: | ||
include: | ||
# build on ubuntu | ||
- os: linux | ||
compiler: gcc | ||
env: | ||
- COMPILER=g++-4.9 | ||
addons: | ||
apt: | ||
sources: | ||
- ubuntu-toolchain-r-test | ||
packages: | ||
- g++-4.9 | ||
env: | ||
- MATRIX_EVAL="CC=gcc-4.9 && CXX=g++-4.9" | ||
|
||
- os: linux | ||
compiler: gcc | ||
env: | ||
- COMPILER=g++-5 | ||
addons: | ||
apt: | ||
sources: | ||
- ubuntu-toolchain-r-test | ||
packages: | ||
- g++-5 | ||
env: | ||
- MATRIX_EVAL="CC=gcc-5 && CXX=g++-5" | ||
|
||
- os: linux | ||
compiler: gcc | ||
env: | ||
- COMPILER=g++-6 | ||
addons: | ||
apt: | ||
sources: | ||
- ubuntu-toolchain-r-test | ||
packages: | ||
- g++-6 | ||
env: | ||
- MATRIX_EVAL="CC=gcc-6 && CXX=g++-6" | ||
|
||
- os: linux | ||
compiler: gcc | ||
env: | ||
- COMPILER=g++-7 | ||
addons: | ||
apt: | ||
sources: | ||
- ubuntu-toolchain-r-test | ||
packages: | ||
- g++-7 | ||
env: | ||
- MATRIX_EVAL="CC=gcc-7 && CXX=g++-7" | ||
|
||
# works on Precise and Trusty | ||
- os: linux | ||
addons: | ||
apt: | ||
sources: | ||
- ubuntu-toolchain-r-test | ||
- llvm-toolchain-precise-3.6 | ||
packages: | ||
- clang-3.6 | ||
compiler: gcc | ||
env: | ||
- MATRIX_EVAL="CC=clang-3.6 && CXX=clang++-3.6" | ||
|
||
# works on Precise and Trusty | ||
- os: linux | ||
- COMPILER=g++-8 | ||
addons: | ||
apt: | ||
sources: | ||
- ubuntu-toolchain-r-test | ||
- llvm-toolchain-precise-3.7 | ||
packages: | ||
- clang-3.7 | ||
env: | ||
- MATRIX_EVAL="CC=clang-3.7 && CXX=clang++-3.7" | ||
- g++-8 | ||
|
||
# works on Precise and Trusty | ||
- os: linux | ||
compiler: gcc | ||
env: | ||
- COMPILER=g++-9 | ||
addons: | ||
apt: | ||
sources: | ||
- ubuntu-toolchain-r-test | ||
- llvm-toolchain-precise-3.8 | ||
packages: | ||
- clang-3.8 | ||
env: | ||
- MATRIX_EVAL="CC=clang-3.8 && CXX=clang++-3.8" | ||
- g++-9 | ||
|
||
|
||
# works on Trusty | ||
- os: linux | ||
compiler: clang | ||
env: | ||
- COMPILER=clang++-3.9 | ||
- CXXFLAGS=-stdlib=libc++ | ||
- CC=clang-3.9 | ||
addons: | ||
apt: | ||
sources: | ||
- llvm-toolchain-trusty-3.9 | ||
packages: | ||
- clang-3.9 | ||
env: | ||
- MATRIX_EVAL="CC=clang-3.9 && CXX=clang++-3.9" | ||
|
||
# works on Trusty | ||
- os: linux | ||
compiler: clang | ||
env: | ||
- COMPILER=clang++-4.0 | ||
- CXXFLAGS=-stdlib=libc++ | ||
- CC=clang-4.0 | ||
addons: | ||
apt: | ||
sources: | ||
- llvm-toolchain-trusty-4.0 | ||
packages: | ||
- clang-4.0 | ||
env: | ||
- MATRIX_EVAL="CC=clang-4.0 && CXX=clang++-4.0" | ||
|
||
# works on Trusty | ||
- os: linux | ||
compiler: clang | ||
env: | ||
- COMPILER=clang++-5.0 | ||
- CXXFLAGS=-stdlib=libc++ | ||
- CC=clang-5.0 | ||
addons: | ||
apt: | ||
sources: | ||
- llvm-toolchain-trusty-5.0 | ||
packages: | ||
- clang-5.0 | ||
|
||
- os: linux | ||
compiler: clang | ||
env: | ||
- MATRIX_EVAL="CC=clang-5.0 && CXX=clang++-5.0" | ||
- COMPILER=clang++-6.0 | ||
- CXXFLAGS=-stdlib=libc++ | ||
addons: | ||
apt: | ||
sources: | ||
- llvm-toolchain-trusty-6.0 | ||
- ubuntu-toolchain-r-test | ||
packages: | ||
- clang-6.0 | ||
|
||
- os: linux | ||
compiler: clang | ||
env: | ||
- COMPILER=clang++-7 | ||
- CXXFLAGS=-stdlib=libc++ | ||
addons: | ||
apt: | ||
sources: | ||
- llvm-toolchain-trusty-7 | ||
- ubuntu-toolchain-r-test | ||
packages: | ||
- clang-7 | ||
|
||
# build on osx | ||
- os: osx | ||
osx_image: xcode8 | ||
|
||
- os: osx | ||
osx_image: xcode9.1 | ||
osx_image: xcode9.4 | ||
|
||
before_install: | ||
- eval "${MATRIX_EVAL}" | ||
- os: osx | ||
osx_image: xcode10.3 | ||
|
||
- os: osx | ||
osx_image: xcode11 | ||
|
||
script: | ||
# make sure CXX is correctly set | ||
- if [[ "${COMPILER}" != "" ]] && [[ "${TRAVIS_COMPILER}" == "gcc" ]]; then export CXX=${COMPILER}; fi | ||
|
||
- mkdir build | ||
- cd build | ||
- cmake .. && make && ./aixlog_example | ||
- cmake -DCMAKE_CXX_FLAGS="-Werror -Wall -Wextra -pedantic -O2" .. && make && ./aixlog_example |