-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
35 lines (35 loc) · 1.04 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
sudo: required
dist: trusty
language: python
python:
- "2.7"
env:
- PYBOSSA_SETTINGS='../settings_test.py' PYBOSSA_REDIS_CACHE_DISABLED='1' PYBOSSA_PATH='./pybossa'
services:
- redis-server
addons:
postgresql: "9.5"
before_install:
- sudo apt-get update -y && sudo apt-get install -y swig libffi-dev
- pip install -U pip
install:
- git clone --recursive https://github.com/SciFabric/pybossa.git
- cd pybossa
- pip install -r requirements.txt
- cd ..
- pip install --editable pybossa
- pip install -r requirements.txt
before_script:
- 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
- pycodestyle
script:
- cd pybossa
- alembic -c alembictest.ini stamp head
- alembic -c alembictest.ini upgrade head
- cd ..
- nosetests test/
after_success:
- pip install coveralls
- coveralls