Skip to content

Commit

Permalink
Merge pull request #10 from ocefpaf/appveyor
Browse files Browse the repository at this point in the history
Run tests from installed version.
  • Loading branch information
efiring committed Apr 10, 2017
2 parents 64fbb3a + 0bb8aed commit a1b2fa9
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 6 deletions.
3 changes: 1 addition & 2 deletions .travis.yml
Expand Up @@ -39,8 +39,7 @@ install:

script:
- if [[ $TEST_TARGET == "default" ]]; then
python setup.py build_ext -i ;
py.test -s -rxs -v gsw ;
pushd gsw && py.test -s -rxs -v tests && popd ;
fi

after_success:
Expand Down
1 change: 0 additions & 1 deletion MANIFEST.in
Expand Up @@ -2,5 +2,4 @@ include LICENSE
include README.rst
recursive-include src *
recursive-include src2 *
include gsw/tests/*.npz
# recursive-include docs *
7 changes: 6 additions & 1 deletion conda.recipe/meta.yaml
Expand Up @@ -19,8 +19,13 @@ requirements:
- numpy x.x

test:
test:
source_files:
- gsw/tests
requires:
- pytest
imports:
- gsw
- gsw.ice
commands:
- python -c "import gsw; print(dir(gsw))"
- cd gsw && py.test -s -rxs -v tests
Empty file removed gsw/tests/__init__.py
Empty file.
2 changes: 1 addition & 1 deletion gsw/tests/test_check_functions.py
Expand Up @@ -10,7 +10,7 @@

import gsw
from gsw._utilities import Bunch
from gsw.tests.check_functions import parse_check_functions
from check_functions import parse_check_functions

root_path = os.path.abspath(os.path.dirname(__file__))

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -39,7 +39,7 @@ def extract_version():
config = dict(
name='gsw',
version=extract_version(),
packages=['gsw', 'gsw/tests'],
packages=['gsw'],
author=['Eric Firing', 'Filipe Fernandes'],
author_email='efiring@hawaii.edu',
description='Gibbs Seawater Oceanographic Package of TEOS-10',
Expand Down

0 comments on commit a1b2fa9

Please sign in to comment.