Fix http auth tests to avoid introducing new dependency on mock.
[jelmer/dulwich.git] / .travis.yml
1 language: python
2 sudo: false
3 env:
4   global: TEST_RUNNER=unittest PYTHONHASHSEED=random
5 matrix:
6   include:
7     - python: "2.7"
8       env: TEST_REQUIRE="gevent greenlet geventhttpclient fastimport"
9     - python: "pypy"
10       env: TEST_REQUIRE="fastimport"
11     - python: "3.4"
12       env: TEST_REQUIRE="gevent greenlet geventhttpclient fastimport"
13     - python: "3.5"
14       env: TEST_REQUIRE="gevent greenlet geventhttpclient fastimport"
15 cache:
16   directories:
17     - $HOME/.cache/pip
18 script:
19   - pip install pip --upgrade
20   - pip install $TEST_REQUIRE
21
22   # Test without c extensions
23   - python -m $TEST_RUNNER dulwich.tests.test_suite
24
25   # Test with c extensions
26   - python setup.py build_ext -i
27   - python -m $TEST_RUNNER dulwich.tests.test_suite
28