Updating travis variables.

This commit is contained in:
pshriwise 2018-09-21 16:22:54 -04:00
parent 45154ef21f
commit 7b18e7c791
2 changed files with 6 additions and 6 deletions

View file

@ -35,7 +35,7 @@ env:
- OMP=y MPI=n PHDF5=n
- OMP=n MPI=y PHDF5=n
- OMP=n MPI=y PHDF5=y
- OMP=n MPI=y PHDF5=y CAD=y
- OMP=n MPI=y PHDF5=y DAGMC=y
notifications:
webhooks: https://coveralls.io/webhook?repo_token=$COVERALLS_REPO_TOKEN
before_install:

View file

@ -21,7 +21,7 @@ def which(program):
return None
def install(omp=False, mpi=False, phdf5=False, cad=False):
def install(omp=False, mpi=False, phdf5=False, dagmc=False):
# Create build directory and change to it
shutil.rmtree('build', ignore_errors=True)
os.mkdir('build')
@ -49,9 +49,9 @@ def install(omp=False, mpi=False, phdf5=False, cad=False):
else:
cmake_cmd.append('-DHDF5_PREFER_PARALLEL=OFF')
if cad:
if dagmc:
build_dagmc()
cmake_cmd.append('-Dcad=ON')
cmake_cmd.append('-Ddagmc=ON')
# Build and install
cmake_cmd.append('..')
@ -132,10 +132,10 @@ def main():
mpi = (os.environ.get('MPI') == 'y')
phdf5 = (os.environ.get('PHDF5') == 'y')
cad = (os.environ.get('CAD') == 'y')
dagmc = (os.environ.get('DAGMC') == 'y')
# Build and install
install(omp, mpi, phdf5, cad)
install(omp, mpi, phdf5, dagmc)
if __name__ == '__main__':