forked from Scifabric/pybossa
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
37 lines (37 loc) · 1.26 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'
# git submodules workaround
git:
submodules: false
env:
- PYBOSSA_SETTINGS='../settings_test.py' PYBOSSA_REDIS_CACHE_DISABLED='1'
services:
- redis-server
addons:
postgresql: "9.3"
before_install:
- git submodule update --init --recursive
- sudo apt-get update -y && sudo apt-get install -y swig libffi-dev dbus libdbus-1-dev libdbus-glib-1-dev
- redis-server --version
- redis-server contrib/redis/sentinel.conf --sentinel
- cd pybossa && ln -s themes/default/translations && cd ..
install:
- pip install -U pip
- pip install -r requirements.txt
before_script:
- 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
script:
- alembic -c alembictest.ini stamp head
- alembic -c alembictest.ini upgrade head
- nosetests test/
notifications:
hipchat: 11e2176ebb4b7372ee0d1fbc8abf4d@Github
slack:
secure: lgJj/SealCb3hZsMvclA9VQGwx9TJrtK6ccOZiiHZpJa5in0UkRwE6ymrZ5wqwUagAVwOLYVKHdmrtPMPsaOqavnzq9ItJFqSRo8T5ZgKK+m+X9l88ROn7+QfJyPUkpblhSXMm6+s7duBjdM/no80lA4GEoNWD5G5uQwjJWQSWk=
after_success:
- pip install coveralls
- coveralls