source: trunk/anuga_core/.travis.yml @ 9679

Last change on this file since 9679 was 9677, checked in by steve, 10 years ago

small cleanup of get_revision code

File size: 1.9 KB
RevLine 
[9591]1language: python
[9615]2virtualenv:
3  system_site_packages: true
[9613]4env:
[9615]5  matrix:
[9677]6    - PYTHON_VERSION="2.7"  PARALLEL="mpich2"
7    - PYTHON_VERSION="2.7"  PARALLEL="false"
8    - PYTHON_VERSION="2.6"  PARALLEL="false"
[9591]9install:
10  - sudo apt-get update
[9616]11  - sudo apt-get install gfortran
12
[9677]13  - if [[ "$PARALLEL" == "mpich2" ]]; then
14       sudo apt-get install mpich2;
15       mpirun -np 4 pwd;
16    fi
17
[9616]18  # Deactivate the travis-provided virtual environment and setup a
19  # conda-based environment instead
[9613]20  - deactivate
[9617]21  - wget http://repo.continuum.io/miniconda/Miniconda-3.8.3-Linux-x86_64.sh -O miniconda.sh
[9616]22  - chmod +x miniconda.sh && ./miniconda.sh -b
23  - export PATH=/home/travis/miniconda/bin:$PATH
[9591]24  - conda config --set always_yes yes --set changeps1 no
25  - conda update -q conda
[9616]26
[9591]27  # Useful for debugging any issues with conda
28  - conda info -a
29
[9613]30  # Conda dependencies
[9617]31  - conda create -n testenv --yes python=$PYTHON_VERSION pip numpy scipy netcdf4 nose matplotlib
[9616]32  - source activate testenv
33
34  - python --version
35
[9677]36  # Get GDAL from the PinguCarsti binstar channel for python 2.7
37  # On osx get GDAL from jjhelmus binstar channel
38  - if [[ "$PYTHON_VERSION" == "2.7" ]]; then
39       conda install -c pingucarsti gdal-data;
40       export GDAL_DATA=`gdal-config --datadir`;
41    fi
42
43  - if [[ "$PYTHON_VERSION" == "2.6" ]]; then conda install gdal; fi
44
[9617]45  # Install more software to deal with geographical projections
46  - pip install pyproj
47
[9613]48  # python 2.6 doesn't have argparse by default
[9615]49  - if [[ "$PYTHON_VERSION" == "2.6" ]]; then conda install argparse; fi
[9616]50
[9677]51
52  # Install pypar if parallel
53  - if [[ "$PARALLEL" == "mpich2" ]]; then
54       svn checkout http://pypar.googlecode.com/svn/ pypar;
55       cd pypar/source;
56       python setup.py install;
57       cd ../..;
58    fi
59
60  # More debugging
61  - printenv
62  - conda list
63
[9591]64  - python setup.py install
65
66script:
67  # Your test script goes here
[9592]68  - python runtests.py
Note: See TracBrowser for help on using the repository browser.