Automating the EGSnrc configuration - nrc-cnrc/EGSnrc GitHub Wiki
Every commit on a pull request is automatically checked for compilation errors via the Travis-CI service. Travis simply runs the EGSnrc command-line configuration script within an expect script which provides automated answer to configuration questions. The same automatic configuration can be performed on a local computer from a fresh clone, by installing the command-line expect
software (e.g. apt install expect
), and issuing the following commands in any directory:
export HEN_HOUSE="" EGS_HOME="" EGS_CONFIG=""
git clone --single-branch --branch develop --depth 1 https://github.com/nrc-cnrc/EGSnrc.git EGSnrc-test
cd EGSnrc-test
HEN_HOUSE/scripts/configure.expect test.conf | tee configure.log
The expect script HEN_HOUSE/scripts/configure.expect
can be modified to test various configuration options.