Changeset 9617


Ignore:
Timestamp:
Feb 6, 2015, 12:03:23 AM (10 years ago)
Author:
steve
Message:

Got the stage where anuga (without pypar) builds successfully on travis ci

Location:
trunk/anuga_core
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/anuga_core/.travis.yml

    r9616 r9617  
    1313  # conda-based environment instead
    1414  - deactivate
    15   - wget http://repo.continuum.io/miniconda/Miniconda-3.8.3-Linux-x86_64.sh \
    16        -O miniconda.sh
     15  - wget http://repo.continuum.io/miniconda/Miniconda-3.8.3-Linux-x86_64.sh -O miniconda.sh
    1716  - chmod +x miniconda.sh && ./miniconda.sh -b
    1817  - export PATH=/home/travis/miniconda/bin:$PATH
     
    2625
    2726  # Conda dependencies
    28   - conda create -n testenv --yes python=$PYTHON_VERSION \
    29         numpy scipy netcdf4 nose matplotlib
     27  - conda create -n testenv --yes python=$PYTHON_VERSION pip numpy scipy netcdf4 nose matplotlib
    3028  - source activate testenv
    3129
     
    3533  - export GDAL_DATA=`gdal-config --datadir`
    3634
     35  # Install more software to deal with geographical projections
     36  - pip install pyproj
     37
    3738  # python 2.6 doesn't have argparse by default
    3839  - if [[ "$PYTHON_VERSION" == "2.6" ]]; then conda install argparse; fi
    39 
    4040
    4141  - python setup.py install
  • trunk/anuga_core/anuga/abstract_2d_finite_volumes/generic_domain.py

    r9615 r9617  
    538538            self.CFL = cfl
    539539            msg = 'Setting CFL > 2.0'
    540             #warnings.warn(msg)
    541             log.warning(msg)
     540            import warnings
     541            warnings.warn(msg)
     542            #log.warning(msg)
    542543
    543544        assert cfl > 0.0
  • trunk/anuga_core/anuga/abstract_2d_finite_volumes/tests/test_generic_domain.py

    r9616 r9617  
    8686
    8787
    88         domain.set_CFL(3.0)
    89 
    90         import sys
    91         # Drop this test if python version < 2.7
    92         if sys.version_info[0] > 1 and sys.version_info[1]>6:
    93             try:
    94                 domain.set_CFL(3.0)
    95             except:
    96                 pass
    97             else:
    98                 msg = 'Should have warned of cfl>2.0'
    99                 raise Exception, msg
     88        #
     89
     90        # Make CFL > 2 warning an error
     91        import warnings
     92        warnings.simplefilter("error")
     93
     94        try:
     95            domain.set_CFL(3.0)
     96        except:
     97            pass
     98        else:
     99            msg = 'Should have warned of cfl>2.0'
     100            raise Exception, msg
    100101
    101102        assert domain.CFL == 3.0
  • trunk/anuga_core/anuga/alpha_shape/setup.py

    r9519 r9617  
    1313    config = Configuration('alpha_shape', parent_package, top_path)
    1414
    15     config.add_data_dir('test')
     15    config.add_data_dir('tests')
    1616
    1717    return config
  • trunk/anuga_core/anuga/structures/setup.py

    r9569 r9617  
    1414
    1515    config.add_data_dir('tests')
    16     config.add_data_dir(join('test','data'))
     16    config.add_data_dir(join('tests','data'))
    1717
    1818
  • trunk/anuga_core/anuga/tsunami_source/tests/test_okada_tsunami.py

    r9614 r9617  
    379379        ## independent of this one (i.e. they don't call okada's fortran)
    380380        path=get_pathname_from_package('anuga.tsunami_source')
    381         octave=numpy.genfromtxt(path+sep+'okada_tsunami_octave_95.txt')
     381        octave=numpy.genfromtxt(path+sep+'tests'+sep+'okada_tsunami_octave_95.txt')
    382382        octave_asvec=numpy.transpose(octave).reshape((1,101*101))
    383383
  • trunk/anuga_core/anuga/utilities/tests/test_spatialInputUtil.py

    r9513 r9617  
    1212import numpy
    1313import os
     14import sys
    1415from anuga.shallow_water.shallow_water_domain import Domain
    1516from anuga.utilities import plot_utils as util
     
    158159        # Test conversion to-from Wkb
    159160
     161        # Only run test if python >= 2.7
     162        if sys.hexversion < 0x02070000: return
     163
    160164        seg=[ [0., -2., 1.], [100., -100., 2.], [10., 8., 3.], [0., -2., 1.]]
    161165        seg_Wkb=su.ListPts2Wkb(seg,geometry_type='line')   
     
    228232        #
    229233        # Make an intersection, check it works
     234
     235        # Only run if python >= 2.7
     236        if sys.hexversion < 0x02070000: return
     237       
     238       
    230239        seg1=[ [-10., 0.], [10., 0.]]
    231240        seg2=[ [0., -10.], [0., 10.]]
     
    362371    def test_add_intersections_to_domain_features(self):
    363372
     373        # Only run test if python >= 2.7
     374        if sys.hexversion < 0x02070000: return
     375
    364376        bounding_polygon=[ [0., 0.], [0., 10.], [10., 10.], [10., 0.]]
    365377
Note: See TracChangeset for help on using the changeset viewer.