-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated pyofm, installation guide, and travis. (#48)
- Loading branch information
Showing
7 changed files
with
56 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,37 @@ | ||
sudo: required | ||
dist: trusty | ||
os: linux | ||
dist: bionic | ||
language: generic | ||
|
||
services: | ||
- docker | ||
|
||
env: | ||
global: | ||
- REPO_NAME=dafoam | ||
- DOCKER_WORKING_DIR=/home/dafoamuser/repos/$REPO_NAME | ||
- DOCKER_MOUNT_DIR=/home/dafoamuser/mount/$REPO_NAME | ||
jobs: | ||
- DOCKER_TAG=latest | ||
|
||
before_install: | ||
- echo -e "machine github.com\n login $GITHUB_TOKEN" > ~/.netrc | ||
- git lfs pull | ||
- sudo apt-get install doxygen python-sphinx graphviz | ||
- docker pull dafoam/opt-packages:$DOCKER_TAG | ||
# run Docker, key is we mount the current Travis directory into Docker to access content of repo | ||
- docker run -it -d -u dafoamuser --name regtest | ||
--mount "type=bind,src=$(pwd),target=$DOCKER_MOUNT_DIR" | ||
dafoam/opt-packages:$DOCKER_TAG | ||
/bin/bash | ||
|
||
install: | ||
- cd $TRAVIS_BUILD_DIR/python/reg_tests | ||
- ./getDockerImage | ||
# We thrown away the existing repo in Docker, and copy the new one in-place | ||
- docker exec -it regtest /bin/bash -c "rm -rf $DOCKER_WORKING_DIR && cp -r $DOCKER_MOUNT_DIR $DOCKER_WORKING_DIR" | ||
# Download input.tar.gz | ||
- docker exec -it regtest /bin/bash -c "cd $DOCKER_WORKING_DIR/python/reg_tests && rm -rf input.tar.gz && wget https://github.com/mdolab/dafoam/raw/master/python/reg_tests/input.tar.gz && tar -xzf input.tar.gz" | ||
# Compile | ||
- docker exec -it regtest /bin/bash -c ". /home/dafoamuser/.bashrc && cd $DOCKER_WORKING_DIR && ./Allwmake" | ||
|
||
script: | ||
- cd $TRAVIS_BUILD_DIR/doc && ./Allwmake | ||
- docker exec -it regtest /bin/bash -c ". /opt/setupDAFoam.sh; cd $TRAVIS_BUILD_DIR; ./Allwmake" | ||
- docker exec -it regtest /bin/bash -c ". /opt/setupDAFoam.sh; sudo cp -r $TRAVIS_BUILD_DIR /opt/repos/dafoam; cd $TRAVIS_BUILD_DIR/python/reg_tests; tar -xvf input.tar.gz; python run_reg_tests.py" | ||
# Run tests | ||
- docker exec -it regtest /bin/bash -c ". /home/dafoamuser/.bashrc && cd $DOCKER_WORKING_DIR/python/reg_tests && python run_reg_tests.py" | ||
|
||
after_script: | ||
- docker rm -f regtest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
tutorials/Aerodynamics/NACA0012_Airfoil_Incompressible/run/FFD/genFFD.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
from __future__ import absolute_import | ||
import numpy as np | ||
import sys | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters