diff --git a/.travis.yml b/.travis.yml index 3b8f548..c6e8c46 100644 --- a/.travis.yml +++ b/.travis.yml @@ -28,6 +28,26 @@ matrix: compiler: g++ env: TOOLSET=gcc COMPILER=g++ CXXSTD=03,11 + - os: linux + compiler: g++-4.4 + env: TOOLSET=gcc COMPILER=g++-4.4 CXXSTD=98,0x + addons: + apt: + packages: + - g++-4.4 + sources: + - ubuntu-toolchain-r-test + + - os: linux + compiler: g++-4.6 + env: TOOLSET=gcc COMPILER=g++-4.6 CXXSTD=03,0x + addons: + apt: + packages: + - g++-4.6 + sources: + - ubuntu-toolchain-r-test + - os: linux compiler: g++-4.7 env: TOOLSET=gcc COMPILER=g++-4.7 CXXSTD=03,11 @@ -202,7 +222,7 @@ install: script: - |- echo "using $TOOLSET : : $COMPILER ;" > ~/user-config.jam - - ./b2 -j 3 libs/system/test toolset=$TOOLSET cxxstd=$CXXSTD + - ./b2 -j3 libs/system/test toolset=$TOOLSET cxxstd=$CXXSTD notifications: email: diff --git a/test/Jamfile.v2 b/test/Jamfile.v2 index c08546a..e3c614f 100644 --- a/test/Jamfile.v2 +++ b/test/Jamfile.v2 @@ -25,7 +25,11 @@ project { local result ; - if gcc in $(properties) || clang in $(properties) + if gcc in $(properties) + { + result = -std=c++98 ; # 4.4 has no 03 + } + else if clang in $(properties) { result = -std=c++03 ; } @@ -41,11 +45,11 @@ project { local result ; - if 4.6 in $(properties) + if gcc in $(properties) { - result = -std=c++0x ; + result = -std=c++0x ; # 4.6 has no 11 } - else if gcc in $(properties) || clang in $(properties) + else if clang in $(properties) { result = -std=c++11 ; }