forked from vaab/gitchangelog
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
26 lines (26 loc) · 1.35 KB
/
.travis.yml
File metadata and controls
26 lines (26 loc) · 1.35 KB
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
language: python
python:
- "3.4"
- "2.7"
install:
- easy_install --version
- pip install setuptools==9.1 ## version 10 introduce a bug with d2to1
- pip install pip==1.5.6 ## some ``python setup.py`` black magic do not work with d2to1 and pip ``6.0.7``
- pip install coverage==3.7 coveralls
- if [ -e requirements.txt ]; then pip install -r requirements.txt; fi
script:
## checking that we can actually install it
- python setup.py install
- python setup.py develop easy_install "$(./autogen.sh --get-name)[test]" ## getting deps
- python setup.py develop --uninstall ## removing stuff that breaks the following checks
## checking pip installability
- git fetch --unshallow ; pip install git+file://$PWD
- git reset --hard HEAD ; git clean -d -f ; python setup.py sdist --formats=gztar && pip install "dist/$(./autogen.sh --get-name)-$(./autogen.sh --get-version | tr "_" "-").tar.gz" --upgrade
- python -c "import $(./autogen.sh --get-name)"
- '( cd /tmp && mkdir test_gitchangelog && cd test_gitchangelog && touch a && git init . && git add -A . && git config --global user.email "you@example.com" && git config --global user.name "Your Name" && git commit -m "first commit" && git tag 0.0.1 && gitchangelog )'
- pip uninstall -y "$(./autogen.sh --get-name)"
## real tests
- ./gitchangelog
- nosetests .
after_success:
- coveralls