cxxopts/.travis.yml

48 lines
1.2 KiB
YAML
Raw Normal View History

2016-08-25 01:49:56 +03:00
sudo: required
2016-08-25 11:58:12 +03:00
dist: trusty
2016-08-26 01:44:46 +03:00
language: cpp
2016-08-28 06:05:55 +03:00
os:
- osx
2016-08-25 01:49:56 +03:00
matrix:
include:
- os: linux
2016-08-26 01:34:25 +03:00
env: COMPILER=g++-5
2016-08-25 01:49:56 +03:00
addons:
apt:
packages:
- g++-5
sources: &sources
- llvm-toolchain-precise-3.8
- ubuntu-toolchain-r-test
2016-11-30 10:15:14 +03:00
- os: linux
2016-11-30 12:52:57 +03:00
env: COMPILER=g++-5 UNICODE_OPTIONS=-DCXXOPTS_USE_UNICODE_HELP=Yes
2016-11-30 10:15:14 +03:00
addons:
apt:
packages:
- g++-5
sources: *sources
2016-08-25 01:49:56 +03:00
- os: linux
2016-08-26 11:26:34 +03:00
env: COMPILER=clang++-3.8 CXXFLAGS=-stdlib=libc++
2016-08-25 01:49:56 +03:00
addons:
apt:
packages:
- clang-3.8
2016-08-26 11:36:24 +03:00
- libc++-dev
2016-08-25 01:49:56 +03:00
sources: *sources
2016-11-30 10:15:14 +03:00
- os: linux
2016-11-30 12:52:57 +03:00
env: COMPILER=clang++-3.8 CXXFLAGS=-stdlib=libc++ UNICODE_OPTIONS=-DCXXOPTS_USE_UNICODE_HELP=Yes
2016-11-30 10:15:14 +03:00
addons:
apt:
packages:
- clang-3.8
- libc++-dev
sources: *sources
2016-08-26 01:36:58 +03:00
script: >
2016-08-26 11:26:34 +03:00
cmake -DCXXOPTS_BUILD_TESTS=ON -DCMAKE_CXX_COMPILER=$COMPILER
2016-11-30 10:12:03 +03:00
-DCMAKE_CXX_FLAGS=$CXXFLAGS $UNICODE_OPTIONS .
2016-08-26 01:34:25 +03:00
&& make && make ARGS=--output-on-failure test
2016-11-30 23:58:20 +03:00
before_install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update ; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install icu4c; fi