Skip to content

Commit 0821725

Browse files
authored
Fixed travis (#8)
* Wrap all functions with Cython. * Fixed interface to DAFoam. * Added a new test for basic IO functions. * Fixed travis.
1 parent cfe088f commit 0821725

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.travis.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,14 @@ install:
2626
- docker exec -it regtest /bin/bash -c "rm -rf $DOCKER_WORKING_DIR && cp -r $DOCKER_MOUNT_DIR $DOCKER_WORKING_DIR"
2727
# Download input.tar.gz
2828
- docker exec -it regtest /bin/bash -c "cd $DOCKER_WORKING_DIR/python/reg_tests && rm -rf input.tar.gz && wget https://github.com/mdolab/pyofm/raw/master/python/reg_tests/input.tar.gz && tar -xzf input.tar.gz"
29+
# Compile
30+
- docker exec -it regtest /bin/bash -c ". /home/dafoamuser/setupDAFoam.sh && cd $DOCKER_WORKING_DIR && make clean && make"
2931

3032
script:
3133
# Run real tests
3234
- docker exec -it regtest /bin/bash -c ". /home/dafoamuser/setupDAFoam.sh && cd $DOCKER_WORKING_DIR/python/reg_tests && python run_reg_tests.py"
3335
# Run complex tests
34-
- docker exec -it regtest /bin/bash -c "sed -i -e 's/real-opt/complex-opt/g' /home/dafoamuser/setupDAFoam.sh && . /home/dafoamuser/setupDAFoam.sh && rm -rf /home/dafoamuser/packages/petsc-3.11.0/real-opt && cd /home/dafoamuser/repos/idwarp && make -f Makefile_CS && cd $DOCKER_WORKING_DIR/python/reg_tests && python run_reg_tests_cs.py"
36+
- docker exec -it regtest /bin/bash -c "sed -i -e 's/real-opt/complex-opt/g' /home/dafoamuser/setupDAFoam.sh && . /home/dafoamuser/setupDAFoam.sh && rm -rf /home/dafoamuser/packages/petsc-3.11.0/real-opt && cd /home/dafoamuser/repos/idwarp && make clean && make -f Makefile_CS && cd $DOCKER_WORKING_DIR/python/reg_tests && python run_reg_tests_cs.py"
3537

3638
after_script:
3739
- docker rm -f regtest

0 commit comments

Comments
 (0)