aboutsummaryrefslogtreecommitdiff
path: root/.travis.yml
diff options
context:
space:
mode:
authorPaul Ganssle <paul@ganssle.io>2017-11-09 12:01:14 -0500
committerPaul Ganssle <paul@ganssle.io>2017-11-10 12:57:41 -0500
commit8d75c40386128c974dbfa6591c8fc60858d95545 (patch)
treebfdfaabeeb39563ef2b4e79bccac0cc10424488d /.travis.yml
parent7935aedc07eaef8b8e12beda0b7441f51d593676 (diff)
downloaddateutil-8d75c40386128c974dbfa6591c8fc60858d95545.tar.gz
Change travis script to run tests in fresh directory
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml16
1 files changed, 14 insertions, 2 deletions
diff --git a/.travis.yml b/.travis.yml
index 00b1b4a..e05f63b 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -16,17 +16,29 @@ matrix:
- python: "nightly"
before_install:
- # Install codecov
+ # Install test dependencies
- if [[ $TRAVIS_PYTHON_VERSION == '3.2' ]]; then pip install coverage==3.7.1; fi
- if [[ $TRAVIS_PYTHON_VERSION < '3.0' ]]; then pip install mock; fi
+
- pip install -r test_requirements.txt
- pip install codecov
install:
- ./ci_tools/retry.sh python updatezinfo.py
+ - if pip freeze | grep dateutil; then pip uninstall -y python-dateutil; fi
+
+ # Install the libraries
+ - pip install .
+
+before_script:
+ # Run the script from something other than the repo root
+ - mkdir build_test
+ - cp -pr dateutil/test build_test/test
+ - cd build_test
+
script:
- - coverage run --omit=setup.py,dateutil/test/* -m pytest -v
+ - coverage run -m pytest -v
after_success:
- codecov