forked from astraw/stdeb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
23 lines (23 loc) · 984 Bytes
/
.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
# http://travis-ci.org/#!/astraw/stdeb
language: python
python:
- "2.7_with_system_site_packages"
- "3.2_with_system_site_packages"
before_install:
- sudo apt-get update
- sudo apt-get install python-all-dev python3-all-dev debhelper python-setuptools python3-setuptools apt-file python-requests
- wget http://debs.strawlab.org/precise/python3-requests_2.3.0-0ads1_all.deb -O python3-requests_2.3.0-0ads1_all.deb
- sudo dpkg -i python3-requests_2.3.0-0ads1_all.deb
install:
- which python
- which pip
- pip --version
- python -c "import sys; print(sys.version)"
# Build a .deb file and then install it.
- python setup.py --command-packages=stdeb.command bdist_deb
- for f in deb_dist/*.deb; do echo; echo $f; dpkg --contents $f; done
- sudo dpkg -i deb_dist/*.deb
script:
- sudo env "PATH=$PATH" bash -x ./test.sh
- sudo env "PATH=$PATH" bash -x ./test-pypi-install.sh
- sudo env "PATH=$PATH" bash -x ./test2and3.sh