-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
38 lines (36 loc) · 1008 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
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
language: python
python:
- "2.5"
- "2.6"
- "2.7"
- "pypy"
- "3.2"
- "3.3"
before_install:
- sudo apt-get update
- sudo apt-get install libcurl4-gnutls-dev librtmp-dev
env:
- HTTPLIB=requests
- HTTPLIB=pycurl
- HTTPLIB=
install:
- if [[ $HTTPLIB == pycurl ]]; then pip install pycurl --use-mirrors; fi
- if [[ $TRAVIS_PYTHON_VERSION == 2* ]]; then pip install --use-mirrors simplejson; fi
- python setup.py install
- python -c 'print(__import__("requests").__version__)'
- if [[ $HTTPLIB != requests ]]; then pip uninstall --yes requests; fi
script:
# need to change into a different directory to make sure we use the 2to3 converted code
- mkdir -p temp/
- cd temp
matrix:
exclude:
# C extensions are not guaranteed to work with pypy, and pycurl is not compatible with Python 3
- python: "3.2"
env: HTTPLIB=pycurl
- python: "3.3"
env: HTTPLIB=pycurl
- python: "pypy"
env: HTTPLIB=pycurl
- python: "2.5"
env: HTTPLIB=requests