Skip to content

Commit ffbd9e2

Browse files
committed
First attempt at CI
1 parent 0dff5a2 commit ffbd9e2

File tree

2 files changed

+24
-1
lines changed

2 files changed

+24
-1
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@
22
!/**/
33
!.gitignore
44
!requirements.txt
5+
!.travis.yml
56
!**/*.py
67
!**/*.md
78

89
.env
910
.vscode
1011

11-
*.pyc
12+
*.pyc

.travis.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
language: python
2+
python:
3+
- "2.7"
4+
- "3.5"
5+
6+
install:
7+
# Get Redis
8+
- git clone -depth=1 https://github.com/antirez/redis/redis.git && cd redis && make && cd ..
9+
# Get ReJSON
10+
- git clone -depth=1 https://github.com/RedisLabsModules/ReJSON && cd ReJSON && make && cd ..
11+
# Install requirements
12+
- pip install -r requirements.txt
13+
# Install rejson-py to test rejson-py
14+
- pip install -e .
15+
16+
before_script:
17+
- ./redis/src/redis-server --loadmodule rejson/src/rejson.so &
18+
19+
script:
20+
- cd test
21+
- python -munittest discover
22+

0 commit comments

Comments
 (0)