forked from jelmer/dulwich
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rework travis so that it uses containers & caches pip downloads.
- Loading branch information
Showing
2 changed files
with
28 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,28 @@ | ||
language: python | ||
# Workaround to make 2.7 use system site packages, and 2.6 and 3.4 not use system | ||
# site packages. | ||
# https://github.com/travis-ci/travis-ci/issues/2219#issuecomment-41804942 | ||
python: | ||
- "2.6" | ||
- "2.7_with_system_site_packages" | ||
- "3.4" | ||
- "pypy" | ||
sudo: false | ||
env: | ||
global: TEST_RUNNER=unittest PYTHONHASHSEED=random | ||
matrix: | ||
include: | ||
- python: "2.6" | ||
env: TEST_RUNNER=unittest2.__main__ TEST_REQUIRE="gevent geventhttpclient fastimport unittest2" | ||
- python: "2.7" | ||
env: TEST_REQUIRE="gevent geventhttpclient fastimport" | ||
- python: "pypy" | ||
env: TEST_REQUIRE="fastimport" | ||
- python: "3.4" | ||
env: TEST_REQUIRE= | ||
cache: | ||
directories: | ||
- $HOME/.cache/pip | ||
script: | ||
- PYTHONHASHSEED=random python setup.py test | ||
- make check-noextensions | ||
install: | ||
- sudo apt-get update | ||
- sudo apt-get install -qq git python-setuptools python-gevent python-fastimport python-mock | ||
- if [[ $TRAVIS_PYTHON_VERSION == 2* ]]; then pip install unittest2; fi | ||
- pip install pip --upgrade | ||
- pip install $TEST_REQUIRE | ||
|
||
# Test without c extensions | ||
- python -m $TEST_RUNNER dulwich.tests.test_suite | ||
|
||
# Test with c extensions | ||
- python setup.py build_ext -i | ||
- python -m $TEST_RUNNER dulwich.tests.test_suite | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters