-
Notifications
You must be signed in to change notification settings - Fork 102
/
.travis.yml
28 lines (28 loc) · 1.19 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
# http://travis-ci.org/#!/astraw/stdeb
language: python
arch:
- amd64
- ppc64le
python:
- "2.7_with_system_site_packages"
- "3.5_with_system_site_packages"
before_install:
- sudo apt-get update
- sudo apt-get install fakeroot 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
- pip install flake8
- flake8 --extend-ignore D scripts/* stdeb/ test_data/ `python -c "import sys;sys.stdout.write('--extend-exclude py3_module.py') if sys.version_info[0] == 2 else sys"`