forked from gitpython-developers/GitPython
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
46 lines (44 loc) · 1.6 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
language: python
python:
- "2.6"
- "2.7"
- "3.3"
- "3.4"
# - "pypy" - won't work as smmap doesn't work (see gitdb/.travis.yml for details)
git:
# a higher depth is needed for most of the tests - must be high enough to not actually be shallow
# as we clone our own repository in the process
depth: 99999
install:
- git submodule update --init --recursive
- git fetch --tags
- pip install coveralls flake8 sphinx
# generate some reflog as git-python tests need it (in master)
- git tag __testing_point__
- git checkout master
- git reset --hard HEAD~1
- git reset --hard HEAD~1
- git reset --hard HEAD~1
- git reset --hard __testing_point__
# as commits are performed with the default user, it needs to be set for travis too
- git config --global user.email "[email protected]"
- git config --global user.name "Travis Runner"
# If we rewrite the user's config by accident, we will mess it up
# and cause subsequent tests to fail
- cat git/test/fixtures/.gitconfig >> ~/.gitconfig
# used later when testing for specific issue
# copy the configured key into place so clone can work
# The key just has read-only access to the test-repository
- cp .travis.private-ssh-key-for-issue-301 ~/.ssh/id_rsa
- chmod 0400 ~/.ssh/id_rsa
- git clone [email protected]:gitpython-developers/gitpython_issue_301.git issue-301-repo
script:
# Make sure we limit open handles to see if we are leaking them
- ulimit -n 96
- ulimit -n
- nosetests -v --with-coverage
- '( cd issue-301-repo && PYTHONPATH=$PWD/.. ./reproduce.py )'
- flake8
- cd doc && make html
after_success:
- coveralls