added event-based test to Travis CI matrix.

This commit is contained in:
John Tramm 2020-01-08 20:08:57 +00:00
parent 65418f56b4
commit 593e4f3952
2 changed files with 8 additions and 10 deletions

View file

@ -32,15 +32,9 @@ env:
matrix:
include:
- python: "3.7"
env: OMP=n MPI=n PHDF5=n
env: OMP=y MPI=y PHDF5=y DAGMC=y EVENT_BASED=y
- python: "3.7"
env: OMP=y MPI=n PHDF5=n
- python: "3.7"
env: OMP=n MPI=y PHDF5=n
- python: "3.7"
env: OMP=n MPI=y PHDF5=y
- python: "3.7"
env: OMP=y MPI=y PHDF5=y DAGMC=y
env: OMP=y MPI=y PHDF5=y DAGMC=y EVENT_BASED=n
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_based=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_based:
cmake_cmd.append('-Devent-based=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_based = (os.environ.get('EVENT_BASED') == 'y')
# Build and install
install(omp, mpi, phdf5, dagmc)
install(omp, mpi, phdf5, dagmc, event-based)
if __name__ == '__main__':
main()