forked from heynemann/wight
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
37 lines (31 loc) · 1013 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
language: python
python:
#- "2.6"
- "2.7"
#- "3.2"
#- "3.3"
#- "pypy"
install:
- pushd .
# installing mongodb
- sudo apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB10
- echo 'deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen' | sudo tee /etc/apt/sources.list.d/10gen.list
- sudo apt-get update
- sudo apt-get install -y mongodb-10gen
# installing redis-server
- sudo apt-get install -y redis-server
# installing libgit2
- sudo apt-get -y install cmake python2.7-dev zlib1g-dev libssl-dev
- sudo rm -rf /tmp/libgit2
- cd /tmp && git clone git://github.com/libgit2/libgit2.git
- cd /tmp/libgit2/ && git checkout v0.19.0 && mkdir -p /tmp/libgit2/build
- cd /tmp/libgit2/build && cmake .. && cmake --build . && sudo cmake --build . --target install && sudo ldconfig
# install python requirements
- popd
- pip install coveralls
- pip install -e .[tests]
script:
# finally run tests
- make ci-test
after_success:
- coveralls