Mark as CI in Jamfile not command line

super-project also runs regression test, but they doesn't define that.
This commit is contained in:
Kohei Takahashi
2018-01-29 10:15:39 +09:00
parent b42314fb02
commit d8e6f406ab
3 changed files with 11 additions and 2 deletions

View File

@ -201,4 +201,4 @@ install:
- ./b2 headers
script:
- ./b2 -j`(nproc || sysctl -n hw.ncpu) 2> /dev/null` libs/fusion/test toolset=$TOOLSET cxxstd=$CXXSTD define=RUNNING_ON_TRAVIS=1
- ./b2 -j`(nproc || sysctl -n hw.ncpu) 2> /dev/null` libs/fusion/test toolset=$TOOLSET cxxstd=$CXXSTD

View File

@ -71,4 +71,4 @@ install:
build: off
test_script:
- b2 -j%NUMBER_OF_PROCESSORS% libs/fusion/test toolset=%TOOLSET% define=RUNNING_ON_APPVEYOR=1
- b2 -j%NUMBER_OF_PROCESSORS% libs/fusion/test toolset=%TOOLSET%

View File

@ -9,10 +9,19 @@
#==============================================================================
# bring in rules for testing
import testing ;
import os ;
import ../../config/checks/config : requires ;
if [ os.environ CI ]
{
CI_DEFINES = <define>CI_SKIP_KNOWN_FAILURE=1 ;
CI_DEFINES += <define>RUNNING_ON_TRAVIS=1 ; # for backward compatibility
CI_DEFINES += <define>RUNNING_ON_APPVEYOR=1 ; # for backward compatibility
}
project
: requirements
$(CI_DEFINES)
;
{