Skip to content

Commit

Permalink
Work-around for broken libgfortran
Browse files Browse the repository at this point in the history
  • Loading branch information
bjodah committed Apr 3, 2016
1 parent 9fc9fdb commit 82bcf72
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
10 changes: 8 additions & 2 deletions _run_tests.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
#!/bin/bash
conda install -c chemreac chemreac pytest
py.test --pyargs chemreac
conda install --yes -c chemreac chemreac pytest

# http://stackoverflow.com/questions/36041964/messed-up-numpy-installation-gfortran-1-4-not-found-bug
# https://github.com/ContinuumIO/anaconda-issues/issues/686
conda remove --yes libgfortran
conda install --yes libgcc --force

MPLBACKEND=Agg py.test --pyargs chemreac
3 changes: 2 additions & 1 deletion test_anaconda_chemreac.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash
BASE_PATH=$(unset CDPATH && cd "$(dirname $0)" && echo $PWD)
DOCKERIMAGE=continuumio/miniconda

if [[ ! -d opt_test ]]; then
Expand All @@ -9,5 +10,5 @@ cp -r /opt/* /new_opt/
EOF
fi

docker run --rm -v $(pwd):/chemreac_anaconda -it $DOCKERIMAGE /chemreac_anaconda/_run_tests.sh
docker run --rm -v $(pwd):/chemreac_anaconda -v $BASE_PATH/opt_test:/opt -it $DOCKERIMAGE /chemreac_anaconda/_run_tests.sh

0 comments on commit 82bcf72

Please sign in to comment.