chore(travis): use consistent build name
- have build name is in the form of "<BRANCH>_<CXX_COMPILER>_<BUILD_TYPE>(_TC)?" to have consistency over time. - have "Generator" field in cdash XMLs which is in the form of "<GIT_COMMIT>###<GIT_SUBJECT>" it will be displayed as a small mouseover-text.
This commit is contained in:
parent
0065d69e0a
commit
3527babfee
3 changed files with 26 additions and 5 deletions
|
@ -23,13 +23,15 @@ before_script:
|
||||||
script:
|
script:
|
||||||
- cd build
|
- cd build
|
||||||
- SITE=OSX10.8.2@Travis
|
- SITE=OSX10.8.2@Travis
|
||||||
- GIT_COMMIT=`git log HEAD~ --oneline -n 1 | cut -d ' ' -f 1`
|
|
||||||
- if [[ $CMAKE_BUILD_TYPE == RELEASE ]]; then
|
- if [[ $CMAKE_BUILD_TYPE == RELEASE ]]; then
|
||||||
BUILD_TYPE=Release;
|
BUILD_TYPE=Release;
|
||||||
else
|
else
|
||||||
BUILD_TYPE=Debug;
|
BUILD_TYPE=Debug;
|
||||||
fi
|
fi
|
||||||
- BUILD_NAME=${TRAVIS_BRANCH}_${GIT_COMMIT}_g++-4.9.0_${BUILD_TYPE}
|
- BUILD_NAME=${TRAVIS_BRANCH}_g++-4.9.0_${BUILD_TYPE}
|
||||||
|
- if [[ $TCMALLOC == ON ]]; then
|
||||||
|
BUILD_NAME=${BUILD_NAME}_TC;
|
||||||
|
fi;
|
||||||
- CONFIG_FILE=DartConfiguration.tcl
|
- CONFIG_FILE=DartConfiguration.tcl
|
||||||
- sed -i "" "s/^Site:.*/Site:$SITE/" $CONFIG_FILE
|
- sed -i "" "s/^Site:.*/Site:$SITE/" $CONFIG_FILE
|
||||||
- sed -i "" "s/BuildName:.*/BuildName:$BUILD_NAME/" $CONFIG_FILE
|
- sed -i "" "s/BuildName:.*/BuildName:$BUILD_NAME/" $CONFIG_FILE
|
||||||
|
@ -61,6 +63,11 @@ after_script:
|
||||||
yes "C" | ctest -D ExperimentalMemCheck -VV;
|
yes "C" | ctest -D ExperimentalMemCheck -VV;
|
||||||
fi
|
fi
|
||||||
- if [[ $PUSH_TO_CDASH == TRUE ]]; then
|
- if [[ $PUSH_TO_CDASH == TRUE ]]; then
|
||||||
|
GIT_COMMIT=`git log --oneline -n 1 | cut -d ' ' -f 1`;
|
||||||
|
GIT_SUBJECT=`git log --oneline -n 1 | cut -d ' ' -f 2-`;
|
||||||
|
GIT_SUBJECT=${GIT_SUBJECT//\"/};
|
||||||
|
GIT_SUBJECT=$(echo -e $(printf '%q' "$GIT_SUBJECT"));
|
||||||
|
find Testing -name "*.xml" -exec sed -i "" "s/Generator=\".*\"/Generator=\"${GIT_COMMIT}###${GIT_SUBJECT}\"/" {} ";";
|
||||||
ctest -D ExperimentalSubmit;
|
ctest -D ExperimentalSubmit;
|
||||||
fi
|
fi
|
||||||
- cd ..
|
- cd ..
|
||||||
|
|
|
@ -28,13 +28,15 @@ script:
|
||||||
- cd build
|
- cd build
|
||||||
- cmake -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE} ../src -DTCMALLOC=OFF -DCMAKE_TOOLCHAIN_FILE=/tmp/mxe/usr/x86_64-w64-mingw32/share/cmake/mxe-conf.cmake
|
- cmake -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE} ../src -DTCMALLOC=OFF -DCMAKE_TOOLCHAIN_FILE=/tmp/mxe/usr/x86_64-w64-mingw32/share/cmake/mxe-conf.cmake
|
||||||
- SITE=Windows@Travis
|
- SITE=Windows@Travis
|
||||||
- GIT_COMMIT=`git log HEAD~ --oneline -n 1 | cut -d ' ' -f 1`
|
|
||||||
- if [[ $CMAKE_BUILD_TYPE == RELEASE ]]; then
|
- if [[ $CMAKE_BUILD_TYPE == RELEASE ]]; then
|
||||||
BUILD_TYPE=Release;
|
BUILD_TYPE=Release;
|
||||||
else
|
else
|
||||||
BUILD_TYPE=Debug;
|
BUILD_TYPE=Debug;
|
||||||
fi
|
fi
|
||||||
- BUILD_NAME=${TRAVIS_BRANCH}_${GIT_COMMIT}_w64-mingw32-g++-4.8.1_${BUILD_TYPE}
|
- BUILD_NAME=${TRAVIS_BRANCH}_${GIT_COMMIT}_w64-mingw32-g++-4.8.1_${BUILD_TYPE}
|
||||||
|
- if [[ $TCMALLOC == ON ]]; then
|
||||||
|
BUILD_NAME=${BUILD_NAME}_TC;
|
||||||
|
fi;
|
||||||
- CONFIG_FILE=DartConfiguration.tcl
|
- CONFIG_FILE=DartConfiguration.tcl
|
||||||
- sed -i "s/^Site:.*/Site:$SITE/" $CONFIG_FILE
|
- sed -i "s/^Site:.*/Site:$SITE/" $CONFIG_FILE
|
||||||
- sed -i "s/BuildName:.*/BuildName:$BUILD_NAME/" $CONFIG_FILE
|
- sed -i "s/BuildName:.*/BuildName:$BUILD_NAME/" $CONFIG_FILE
|
||||||
|
@ -43,6 +45,11 @@ script:
|
||||||
- sed -i "s/BuildName:.*/BuildName:$BUILD_NAME/" $CONFIG_FILE
|
- sed -i "s/BuildName:.*/BuildName:$BUILD_NAME/" $CONFIG_FILE
|
||||||
- ctest -D ExperimentalBuild -VV
|
- ctest -D ExperimentalBuild -VV
|
||||||
- if [[ $PUSH_TO_CDASH == TRUE ]]; then
|
- if [[ $PUSH_TO_CDASH == TRUE ]]; then
|
||||||
|
GIT_COMMIT=`git log --oneline -n 1 | cut -d ' ' -f 1`;
|
||||||
|
GIT_SUBJECT=`git log --oneline -n 1 | cut -d ' ' -f 2-`;
|
||||||
|
GIT_SUBJECT=${GIT_SUBJECT//\"/};
|
||||||
|
GIT_SUBJECT=$(echo -e $(printf '%q' "$GIT_SUBJECT"));
|
||||||
|
find Testing -name "*.xml" -exec sed -i "s/Generator=\".*\"/Generator=\"${GIT_COMMIT}###${GIT_SUBJECT}\"/" {} ";";
|
||||||
find Testing -type f -name "*.xml" -exec sed -i 's/OSName=\"Linux\"/OSName=\"Windows\"/' {} \; ;
|
find Testing -type f -name "*.xml" -exec sed -i 's/OSName=\"Linux\"/OSName=\"Windows\"/' {} \; ;
|
||||||
ctest -D ExperimentalSubmit;
|
ctest -D ExperimentalSubmit;
|
||||||
fi
|
fi
|
||||||
|
|
11
.travis.yml
11
.travis.yml
|
@ -163,13 +163,15 @@ script:
|
||||||
fi
|
fi
|
||||||
- if [[ $CMAKE_BUILD_TYPE == DEBUG || $CMAKE_BUILD_TYPE == RELEASE || $TESTCOV == ON ]]; then
|
- if [[ $CMAKE_BUILD_TYPE == DEBUG || $CMAKE_BUILD_TYPE == RELEASE || $TESTCOV == ON ]]; then
|
||||||
SITE=Ubuntu12.04@Travis;
|
SITE=Ubuntu12.04@Travis;
|
||||||
GIT_COMMIT=`git log --oneline -n 1 | cut -d ' ' -f 1`;
|
|
||||||
if [[ $CMAKE_BUILD_TYPE == RELEASE ]]; then
|
if [[ $CMAKE_BUILD_TYPE == RELEASE ]]; then
|
||||||
BUILD_TYPE=Release;
|
BUILD_TYPE=Release;
|
||||||
else
|
else
|
||||||
BUILD_TYPE=Debug;
|
BUILD_TYPE=Debug;
|
||||||
fi;
|
fi;
|
||||||
BUILD_NAME=${TRAVIS_BRANCH}_${GIT_COMMIT}_${CMAKE_CXX_COMPILER}_${BUILD_TYPE};
|
BUILD_NAME=${TRAVIS_BRANCH}_${CMAKE_CXX_COMPILER}_${BUILD_TYPE};
|
||||||
|
if [[ $TCMALLOC == ON ]]; then
|
||||||
|
BUILD_NAME=${BUILD_NAME}_TC;
|
||||||
|
fi;
|
||||||
CONFIG_FILE=DartConfiguration.tcl;
|
CONFIG_FILE=DartConfiguration.tcl;
|
||||||
sed -i "s/^Site:.*/Site:$SITE/" $CONFIG_FILE;
|
sed -i "s/^Site:.*/Site:$SITE/" $CONFIG_FILE;
|
||||||
sed -i "s/BuildName:.*/BuildName:$BUILD_NAME/" $CONFIG_FILE;
|
sed -i "s/BuildName:.*/BuildName:$BUILD_NAME/" $CONFIG_FILE;
|
||||||
|
@ -197,6 +199,11 @@ after_script:
|
||||||
yes "C" | ctest -D ExperimentalMemCheck -VV;
|
yes "C" | ctest -D ExperimentalMemCheck -VV;
|
||||||
fi
|
fi
|
||||||
- if [[ $LEANREPO == BLESSED && $PUSH_TO_CDASH == TRUE ]]; then
|
- if [[ $LEANREPO == BLESSED && $PUSH_TO_CDASH == TRUE ]]; then
|
||||||
|
GIT_COMMIT=`git log --oneline -n 1 | cut -d ' ' -f 1`;
|
||||||
|
GIT_SUBJECT=`git log --oneline -n 1 | cut -d ' ' -f 2-`;
|
||||||
|
GIT_SUBJECT=${GIT_SUBJECT//\"/};
|
||||||
|
GIT_SUBJECT=$(echo -e $(printf '%q' "$GIT_SUBJECT"));
|
||||||
|
find Testing -name "*.xml" -exec sed -i "s/Generator=\".*\"/Generator=\"${GIT_COMMIT}###${GIT_SUBJECT}\"/" {} ";";
|
||||||
ctest -D ExperimentalSubmit;
|
ctest -D ExperimentalSubmit;
|
||||||
fi
|
fi
|
||||||
- cd ..
|
- cd ..
|
||||||
|
|
Loading…
Reference in a new issue