Skip to content

Commit

Permalink
MAINT running tests on installed version of pastis
Browse files Browse the repository at this point in the history
  • Loading branch information
NelleV committed Jul 4, 2018
1 parent e43cdfe commit dc67365
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ notifications:

env:
global:
- TEST_RUN_FOLDER="/tmp" # folder where the tests are run from
- TEST_DIR="/tmp/pastis" # folder where the tests are run from
matrix:
# Ubuntu 14.04 versions
- DISTRIB="conda" PYTHON_VERSION="2.6"
Expand All @@ -33,11 +33,11 @@ before_script:
script:
- python continuous_integration/show-python-packages-versions.py
# We want to back out of the current working directory to make
# sure we are using nilearn installed in site-packages rather
# sure we are using pastis installed in site-packages rather
# than the one from the current working directory
# Parentheses (run in a subshell) are used to leave
# the current directory unchanged
- make test
- bash continuous_integration/test_script.sh

after_success:
# Ignore coveralls failures as the coveralls server is not very reliable
Expand Down
1 change: 1 addition & 0 deletions continuous_integration/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -104,3 +104,4 @@ if [[ "$COVERAGE" == "true" ]]; then
pip install coverage coveralls
fi

python setup.py install
16 changes: 16 additions & 0 deletions continuous_integration/test_script.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
python --version

run_tests() {
TEST_CMD="nosetests -s -v"


mkdir -p $TEST_DIR
cd $TEST_DIR
TEST_CMD="$TEST_CMD --with-coverage pastis --cover-package pastis"
$TEST_CMD pastis
}


if [[ "$SKIP_TESTS" != "true" ]]; then
run_tests
fi

0 comments on commit dc67365

Please sign in to comment.