-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #18 from nsidc/fix-regression
Fix regression
- Loading branch information
Showing
5 changed files
with
58 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#!/bin/bash -l | ||
# | ||
# Re-builds a fresh copy of the system at PMESDR_TOP_DIR, runs unit tests and | ||
# either quick or daily regression | ||
# | ||
# Assumes the user has set the bash environment with set_pmesdr_environment.sh | ||
# | ||
|
||
# If any simple step or pipeline fails, this script will fail | ||
# thanks to this page for this tip: | ||
# https://stackoverflow.com/questions/821396/aborting-a-shell-script-if-any-command-returns-a-non-zero-value | ||
set -eo pipefail | ||
|
||
error_exit() { | ||
# Use for fatal program error | ||
# Argument: | ||
# optional string containing descriptive error message | ||
# if no error message, prints "Unknown Error" | ||
|
||
echo "pull_build_and_run_regression.sh: ERROR: ${1:-"Unknown Error"}" 1>&2 | ||
return 1 | ||
} | ||
|
||
REGRESSIONTYPE=$1 | ||
|
||
source ${PMESDR_TOP_DIR}/regression_scripts/git_pull.sh || \ | ||
error_exit "failed to git pull from remote" | ||
source ${PMESDR_TOP_DIR}/regression_scripts/build_pmesdr.sh ${PMESDR_CONDAENV} || \ | ||
error_exit "failed to build system" | ||
source ${PMESDR_TOP_DIR}/regression_scripts/run_regression.sh \ | ||
${REGRESSIONTYPE} ${PMESDR_CONDAENV} || \ | ||
error_exit "failed to run regression" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters