File tree 4 files changed +65
-5
lines changed
4 files changed +65
-5
lines changed Original file line number Diff line number Diff line change @@ -2,20 +2,34 @@ sudo: false
2
2
language : python
3
3
python :
4
4
- " 2.6"
5
- - " 2.7"
6
5
- " 3.2"
7
6
- " 3.3"
8
7
- " 3.4"
9
- - " 3.5"
10
8
matrix :
11
9
include :
12
10
- python : 2.7
13
11
env : TEST=slow
14
12
- python : 3.5
15
13
env : TEST=slow
14
+ - python : 2.7
15
+ env : STREAMING_BACKEND=ijson
16
+ - python : 2.7
17
+ env : STREAMING_BACKEND=ijson-yajl
18
+ - python : 2.7
19
+ env : STREAMING_BACKEND=ijson-yajl2
20
+ - python : 2.7
21
+ env : STREAMING_BACKEND=jsaone
22
+ - python : 3.5
23
+ env : STREAMING_BACKEND=ijson
24
+ - python : 3.5
25
+ env : STREAMING_BACKEND=ijson-yajl
26
+ - python : 3.5
27
+ env : STREAMING_BACKEND=ijson-yajl2
28
+ - python : 3.5
29
+ env : STREAMING_BACKEND=jsaone
16
30
services :
17
31
- redis-server
18
32
install : >
19
- pip install -r requirements-dev.txt
33
+ ./tests/travis/setup.sh
20
34
script : >
21
35
./tests/travis/run.sh
Original file line number Diff line number Diff line change 1
1
-r requirements.txt
2
- ijson
3
2
nose
4
3
unittest2
Original file line number Diff line number Diff line change 2
2
3
3
set -e
4
4
5
- NOSETESTS=nosetests
5
+ NOSETESTS=" nosetests -v"
6
+
7
+ export LD_LIBRARY_PATH=/home/travis/local/lib
8
+
9
+ echo Streaming backend: ` python -c ' import redisdl; print(redisdl.default_streaming_backend)' `
6
10
7
11
if test " $TEST " = slow; then
8
12
$NOSETESTS -a ' !yajl2,slow'
Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+
3
+ set -e
4
+
5
+ pip install -r requirements-dev.txt
6
+
7
+ case " $STREAMING_BACKEND " in
8
+ ijson)
9
+ pip install ijson;;
10
+ ijson-yajl)
11
+ pip install ijson
12
+ git clone https://github.com/lloyd/yajl
13
+ cd yajl
14
+ git checkout 1.0.12
15
+ ./configure --prefix=/home/travis/local
16
+ make
17
+ make install
18
+ ;;
19
+ ijson-yajl2)
20
+ pip install ijson
21
+ git clone https://github.com/lloyd/yajl
22
+ cd yajl
23
+ git checkout 2.0.0
24
+ ./configure --prefix=/home/travis/local
25
+ make
26
+ make install
27
+ ;;
28
+ jsaone)
29
+ # broken
30
+ # pip install jsaone
31
+
32
+ pip install cython
33
+ curl -o jsaone.tar.gz ' http://www.pietrobattiston.it/gitweb?p=jsaone.git;a=snapshot;h=master;sf=tgz'
34
+ tar xf jsaone.tar.gz
35
+ cd jsaone-master-*
36
+ python setup.py install
37
+ ;;
38
+ " " )
39
+ ;;
40
+ * )
41
+ echo " Unknown streaming backend $STREAMING_BACKEND " 1>&2
42
+ exit 10;;
43
+ esac
You can’t perform that action at this time.
0 commit comments