-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
37 lines (37 loc) · 1.05 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
29
30
31
32
33
34
35
36
37
sudo: required
dist: trusty
language: python
python:
- "2.7"
env:
- PYBOSSA_SETTINGS='../settings_test.py' PYBOSSA_REDIS_CACHE_DISABLED='1'
services:
- redis-server
addons:
postgresql: "9.3"
before_install:
- sudo apt-get update -y && sudo apt-get install -y swig libffi-dev
install:
- git clone --recursive https://github.com/PyBossa/pybossa.git
- cd pybossa/
- pip install -r requirements.txt
- pip install -U pip
- cd ..
- pip install --editable pybossa
- pip install pep8
before_script:
- redis-server --version
- pip --version
- redis-server pybossa/contrib/redis/sentinel.conf --sentinel
- psql -c "create user rtester with createdb login password 'rtester'" -U postgres
- psql -c "create database pybossa_test owner rtester encoding 'UTF-8' lc_collate 'en_US.UTF-8' lc_ctype 'en_US.UTF-8' template template0;" -U postgres
- pep8
script:
- cd pybossa/
- alembic -c alembictest.ini stamp head
- alembic -c alembictest.ini upgrade head
- cd ..
- nosetests -d tests/
after_success:
- pip install coveralls
- coveralls