Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extend CI tests with older c++ standards #273

Merged
merged 7 commits into from
Feb 9, 2016
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
test in c++ 98, 03 and 11 mode
  • Loading branch information
niosHD committed Feb 7, 2016
commit 27a1b787c88355211dd85402ab466268f71adcbd
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ env:
6pxmyzLHSn1ZR7OX5rfPvwM3tOyZ3H0=
matrix:
- BUILD=Doc
- BUILD=Debug STANDARD=98
- BUILD=Debug STANDARD=11
- BUILD=Release STANDARD=98
- BUILD=Release STANDARD=03
- BUILD=Release STANDARD=11

matrix:
Expand Down
21 changes: 12 additions & 9 deletions support/travis-build.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,14 @@ def makedirs_if_not_exist(dir):
'-DFMT_DOC=OFF',
'-DFMT_PEDANTIC=ON',
srcDir])
if cppStandard == '03':
check_call(['cmake', '-DCMAKE_INSTALL_PREFIX='+installDir,
'-DCMAKE_BUILD_TYPE=' + build,
'-DCMAKE_CXX_FLAGS=-std=c++03',
'-DFMT_USE_CPP11=OFF',
'-DFMT_DOC=OFF',
'-DFMT_PEDANTIC=ON',
srcDir])
else:
# default configuration
check_call(['cmake', '-DCMAKE_INSTALL_PREFIX='+installDir,
Expand All @@ -118,13 +126,8 @@ def makedirs_if_not_exist(dir):
# test installation
makedirs_if_not_exist(buildDir_test)
os.chdir(buildDir_test)
if cppStandard == '98':
check_call(['cmake', '-DCMAKE_INSTALL_PREFIX='+installDir,
'-DCMAKE_BUILD_TYPE=' + build,
'-DCMAKE_CXX_FLAGS=-std=c++98',
srcDir_test])
else:
check_call(['cmake', '-DCMAKE_INSTALL_PREFIX='+installDir,
'-DCMAKE_BUILD_TYPE=' + build,
srcDir_test])
check_call(['cmake', '-DCMAKE_INSTALL_PREFIX='+installDir,
'-DCMAKE_BUILD_TYPE=' + build,
'-DCMAKE_CXX_FLAGS=-std=c++' + cppStandard,
srcDir_test])
check_call(['make', '-j4'])