-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
44 lines (34 loc) · 1.72 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
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 coveralls
- if [ -e requirements.txt ]; then pip install -r requirements.txt; fi
script:
## checking that we can actually install it
- python setup.py install
- name=$(./autogen.sh --get-name); (cd / ; python -c "import $name")
- pip uninstall -y "$(./autogen.sh --get-name)"
- name=$(./autogen.sh --get-name); (cd / ; ! python -c "import $name")
## checking pip installability
- git fetch --unshallow ; pip install git+file://$PWD
- name=$(./autogen.sh --get-name); (cd / ; python -c "import $name")
- pip uninstall -y "$(./autogen.sh --get-name)"
- name=$(./autogen.sh --get-name); (cd / ; ! python -c "import $name")
## checking tar.gz
- 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
- name=$(./autogen.sh --get-name); (cd / ; python -c "import $name")
- pip uninstall -y "$(./autogen.sh --get-name)"
- name=$(./autogen.sh --get-name); (cd / ; ! python -c "import $name")
## checking that we can take test deps (and take them)
- python setup.py develop easy_install "$(./autogen.sh --get-name)[test]" ## getting deps
## XXXvlab: disabling this because it deletes ``easy-install.pth`` and breaks further tests. ON TRAVIS ONLY.
#- python setup.py develop --uninstall ## removing stuff that breaks the following checks
## real tests
- nosetests .
after_success:
- coveralls