aboutsummaryrefslogtreecommitdiff
path: root/.travis.yml
diff options
context:
space:
mode:
authorPavel Belikov <pavel.fuchs.belikov@gmail.com>2017-11-06 22:34:17 +0300
committerPavel Belikov <pavel.fuchs.belikov@gmail.com>2017-11-06 22:34:17 +0300
commitb55cd27c082d8c6fcbaf98e7b2fbd17140e71801 (patch)
tree9090ce66117e26c99f5b248393533dc5170995dd /.travis.yml
parentMerge pull request #38 from pavel-belikov/subparsers-help (diff)
downloadargs.hxx-b55cd27c082d8c6fcbaf98e7b2fbd17140e71801.tar.xz
add travis ci, appveyor, coveralls
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml150
1 files changed, 150 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 0000000..b793be5
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,150 @@
+language: cpp
+dist: trusty
+matrix:
+ include:
+ - os: linux
+ addons:
+ apt:
+ sources: ['ubuntu-toolchain-r-test']
+ packages: ['g++-4.9']
+ env: COMPILER=g++-4.9 CONFIG=Release FLAGS='--coverage' COVERAGE=1
+
+ - os: linux
+ addons:
+ apt:
+ sources: ['ubuntu-toolchain-r-test']
+ packages: ['g++-4.9']
+ env: COMPILER=g++-4.9 CONFIG=Debug
+
+ - os: linux
+ addons:
+ apt:
+ sources: ['ubuntu-toolchain-r-test']
+ packages: ['g++-5']
+ env: COMPILER=g++-5 CONFIG=Release
+
+ - os: linux
+ addons:
+ apt:
+ sources: ['ubuntu-toolchain-r-test']
+ packages: ['g++-5']
+ env: COMPILER=g++-5 CONFIG=Debug
+
+ - os: linux
+ addons:
+ apt:
+ sources: ['ubuntu-toolchain-r-test']
+ packages: ['g++-6']
+ env: COMPILER=g++-6 CONFIG=Release
+
+ - os: linux
+ addons:
+ apt:
+ sources: ['ubuntu-toolchain-r-test']
+ packages: ['g++-6']
+ env: COMPILER=g++-6 CONFIG=Debug
+
+ - os: linux
+ addons:
+ apt:
+ sources: ['llvm-toolchain-precise-3.5', 'ubuntu-toolchain-r-test']
+ packages: ['clang++-3.5']
+ env: COMPILER=clang++-3.5 CONFIG=Release
+
+ - os: linux
+ addons:
+ apt:
+ sources: ['llvm-toolchain-precise-3.5', 'ubuntu-toolchain-r-test']
+ packages: ['clang++-3.5']
+ env: COMPILER=clang++-3.5 CONFIG=Debug
+
+ - os: linux
+ addons:
+ apt:
+ sources: ['llvm-toolchain-precise-3.6', 'ubuntu-toolchain-r-test']
+ packages: ['clang++-3.6']
+ env: COMPILER=clang++-3.6 CONFIG=Release
+
+ - os: linux
+ addons:
+ apt:
+ sources: ['llvm-toolchain-precise-3.6', 'ubuntu-toolchain-r-test']
+ packages: ['clang++-3.6']
+ env: COMPILER=clang++-3.6 CONFIG=Debug
+
+ - os: linux
+ addons:
+ apt:
+ sources: ['llvm-toolchain-precise-3.7', 'ubuntu-toolchain-r-test']
+ packages: ['clang++-3.7']
+ env: COMPILER=clang++-3.7 CONFIG=Release
+
+ - os: linux
+ addons:
+ apt:
+ sources: ['llvm-toolchain-precise-3.7', 'ubuntu-toolchain-r-test']
+ packages: ['clang++-3.7']
+ env: COMPILER=clang++-3.7 CONFIG=Debug
+
+ - os: linux
+ addons:
+ apt:
+ sources: ['llvm-toolchain-precise-3.8', 'ubuntu-toolchain-r-test']
+ packages: ['clang++-3.8']
+ env: COMPILER=clang++-3.8 CONFIG=Release
+
+ - os: linux
+ addons:
+ apt:
+ sources: ['llvm-toolchain-precise-3.8', 'ubuntu-toolchain-r-test']
+ packages: ['clang++-3.8']
+ env: COMPILER=clang++-3.8 CONFIG=Debug
+
+ - os: linux
+ addons:
+ apt:
+ sources: ['llvm-toolchain-precise-3.9', 'ubuntu-toolchain-r-test']
+ packages: ['clang++-3.9']
+ env: COMPILER=clang++-3.9 CONFIG=Release
+
+ - os: linux
+ addons:
+ apt:
+ sources: ['llvm-toolchain-precise-3.9', 'ubuntu-toolchain-r-test']
+ packages: ['clang++-3.9']
+ env: COMPILER=clang++-3.9 CONFIG=Debug
+
+ - os: osx
+ osx_image: xcode7.3
+ compiler: clang
+ env: COMPILER=clang++ CONFIG=Release
+
+ - os: osx
+ osx_image: xcode7.3
+ compiler: clang
+ env: COMPILER=clang++ CONFIG=Debug
+
+ - os: osx
+ osx_image: xcode8
+ compiler: clang
+ env: COMPILER=clang++ CONFIG=Release
+
+ - os: osx
+ osx_image: xcode8
+ compiler: clang
+ env: COMPILER=clang++ CONFIG=Debug
+
+script:
+ - mkdir build
+ - cd build
+ - cmake -DCMAKE_BUILD_TYPE="${CONFIG}" -DCMAKE_CXX_COMPILER="${COMPILER}" -DCMAKE_CXX_FLAGS="${FLAGS}" ..
+ - make
+ - ctest -V
+
+before_install:
+ - pip install --user cpp-coveralls
+
+after_success:
+ - if [ "${COVERAGE}" = 1 ]; then coveralls --root .. -E ".*catch.*" -E ".*CMakeFiles.*" -E ".*gitlike.cxx.*" -E ".*test.cxx.*"; fi
+
+