Changeset 9684
- Timestamp:
- Feb 23, 2015, 11:54:54 PM (9 years ago)
- Location:
- trunk/anuga_core
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/anuga_core/.travis.yml
r9683 r9684 8 8 - PYTHON_VERSION="2.6" PARALLEL="false" DISTRIB="conda" 9 9 10 install: source tools/install.sh 10 install: 11 - source tools/install.sh 12 - python setup.py install 11 13 12 script: python runtests.py 14 script: 15 - python runtests.py 13 16 14 17 after_success: -
trunk/anuga_core/tools/install.sh
r9683 r9684 10 10 set -e 11 11 12 13 [ -z "$PYTHON_VERSION" ] && PYTHON_VERSION="2.7" 14 [ -z "$DISTRIB" ] && DISTRIB="conda" 15 [ -z "$PARALLEL" ] && PARALLEL="mpich2" 16 12 17 sudo apt-get update -qq 13 18 sudo apt-get install gfortran … … 15 20 if [[ "$PARALLEL" == "mpich2" ]]; then 16 21 sudo apt-get install mpich2; 17 mpirun -np 4 pwd;18 22 fi 19 23 … … 21 25 # Deactivate the travis-provided virtual environment and setup a 22 26 # conda-based environment instead 23 deactivate 27 deactivate || echo "deactivate failed" 24 28 25 29 # Use the miniconda installer for faster download … … 28 32 -O miniconda.sh 29 33 chmod +x miniconda.sh && ./miniconda.sh -b 30 export PATH=/home/travis/miniconda/bin:$PATH 31 32 # Let conda install run with waiting for y/n reply 33 conda config --set always_yes yes --set changeps1 no 34 35 export PATH=$HOME/miniconda/bin:$PATH 34 36 conda update --yes conda 35 37 … … 39 41 # Configure the conda environment and put it in the path using the 40 42 # provided versions 41 conda create -n testenv --yes python=$PYTHON_VERSION pip numpy scipy netcdf4 \43 conda create -n anuga_env --yes python=$PYTHON_VERSION pip numpy scipy netcdf4 \ 42 44 nose matplotlib 43 source activate testenv45 source activate anuga_env 44 46 45 47 if [[ "$PYTHON_VERSION" == "2.7" ]]; then 46 conda install -c pingucarsti gdal; 47 #conda install -c anaconda gdal; 48 conda install --yes -c pingucarsti gdal; 48 49 fi 49 50 50 if [[ "$PYTHON_VERSION" == "2.6" ]]; then conda install gdal; fi51 if [[ "$PYTHON_VERSION" == "2.6" ]]; then conda install --yes gdal; fi 51 52 52 53 export GDAL_DATA=`gdal-config --datadir`; … … 56 57 57 58 # python 2.6 doesn't have argparse by default 58 if [[ "$PYTHON_VERSION" == "2.6" ]]; then conda install argparse; fi59 if [[ "$PYTHON_VERSION" == "2.6" ]]; then conda install --yes argparse; fi 59 60 60 61 elif [[ "$DISTRIB" == "ubuntu" ]]; then … … 68 69 # Install pypar if parallel 69 70 if [[ "$PARALLEL" == "mpich2" ]]; then 70 svn checkout http://pypar.googlecode.com/svn/pypar;71 pushd pypar /source;71 git clone https://github.com/daleroberts/pypar; 72 pushd pypar; 72 73 python setup.py install; 73 74 popd; … … 79 80 fi 80 81 81 python setup.py install
Note: See TracChangeset
for help on using the changeset viewer.