added event-based travis CI test.

This commit is contained in:
John Tramm 2020-01-19 21:04:33 +00:00
parent 3641a6632f
commit fc56eba8f0
2 changed files with 8 additions and 2 deletions

View file

@ -45,6 +45,8 @@ matrix:
env: OMP=n MPI=y PHDF5=y
- python: "3.7"
env: OMP=y MPI=y PHDF5=y DAGMC=y
- python: "3.7"
env: OMP=y MPI=y PHDF5=y EVENT=y
notifications:
webhooks: https://coveralls.io/webhook?repo_token=$COVERALLS_REPO_TOKEN
install:

View file

@ -19,7 +19,7 @@ def which(program):
return None
def install(omp=False, mpi=False, phdf5=False, dagmc=False):
def install(omp=False, mpi=False, phdf5=False, dagmc=False, event=False):
# Create build directory and change to it
shutil.rmtree('build', ignore_errors=True)
os.mkdir('build')
@ -47,6 +47,9 @@ def install(omp=False, mpi=False, phdf5=False, dagmc=False):
if dagmc:
cmake_cmd.append('-Ddagmc=ON')
if event:
cmake_cmd.append('-Devent=ON')
# Build in coverage mode for coverage testing
cmake_cmd.append('-Dcoverage=on')
@ -64,9 +67,10 @@ def main():
mpi = (os.environ.get('MPI') == 'y')
phdf5 = (os.environ.get('PHDF5') == 'y')
dagmc = (os.environ.get('DAGMC') == 'y')
event = (os.environ.get('EVENT') == 'y')
# Build and install
install(omp, mpi, phdf5, dagmc)
install(omp, mpi, phdf5, dagmc, event)
if __name__ == '__main__':
main()