Skip to content
Merged
Changes from all commits
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
40 changes: 32 additions & 8 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,11 @@ pipeline
{
steps
{
sh '''
sh '''#!/bin/bash -le
# enable tracing mode now that the shell
# configuration has been read
set -x

if [ "${CHOLLA_MAKE_TYPE}" = "cosmology" ] ||
[ "${CHOLLA_MAKE_TYPE}" = "mhd" ] ||
[ "${CHOLLA_MAKE_TYPE}" = "hydro" ] ||
Expand All @@ -62,7 +66,11 @@ pipeline
{
steps
{
sh '''
sh '''#!/bin/bash -le
# enable tracing mode now that the shell
# configuration has been read
set -x

source builds/run_tests.sh
setupTests -c gcc -t ${CHOLLA_MAKE_TYPE}

Expand All @@ -74,7 +82,11 @@ pipeline
{
steps
{
sh '''
sh '''#!/bin/bash -le
# enable tracing mode now that the shell
# configuration has been read
set -x

source builds/run_tests.sh
setupTests -c gcc -t ${CHOLLA_MAKE_TYPE}

Expand All @@ -88,7 +100,11 @@ pipeline
{
retry(2)
{
sh '''
sh '''#!/bin/bash -le
# enable tracing mode now that the shell
# configuration has been read
set -x

source builds/run_tests.sh
setupTests -c gcc -t ${CHOLLA_MAKE_TYPE}

Expand All @@ -102,7 +118,11 @@ pipeline
steps
{
catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') {
sh '''
sh '''#!/bin/bash -le
# enable tracing mode now that the shell
# configuration has been read
set -x

source builds/run_tests.sh
setupTests -c gcc -t ${CHOLLA_MAKE_TYPE}

Expand All @@ -118,15 +138,19 @@ pipeline
{
// Print the clang-tidy results with bars of equal
// signs seperating each file
sh '''
sh '''#!/bin/bash -le
# we explicitly choose not to use tracing mode

echo "tidy_results_cpp_${CHOLLA_MAKE_TYPE}.log"
printf '=%.0s' {1..100}
printf "\n"
cat tidy_results_cpp_${CHOLLA_MAKE_TYPE}.log
printf "\n\n"

echo "tidy_results_gpu_${CHOLLA_MAKE_TYPE}.log"
printf '=%.0s' {1..100}
printf "\n"
cat tidy_results_gpu_${CHOLLA_MAKE_TYPE}.log
printf '=%.0s' {1..100}
printf "\n"
'''
}
}
Expand Down