forked from alephdata/aleph
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
45 lines (45 loc) · 1.19 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
38
39
40
41
42
43
44
45
language: python
cache:
- apt
- pip
python:
- "2.7"
services:
- postgresql
- elasticsearch
addons:
postgresql: "9.4"
apt:
packages:
- python-software-properties
- libtesseract-dev
- wkhtmltopdf
- poppler-utils
- libreoffice
- djvulibre-bin
env:
global:
- ALEPH_TEST_SETTINGS=$TRAVIS_BUILD_DIR/test_settings.py
- WKHTMLTOPDF_BIN=$TRAVIS_BUILD_DIR/wkhtmltox/bin/wkhtmltopdf
before_install:
- sudo apt-get -qq update
- sudo apt-get install -y tesseract-ocr-eng readpst
- wget --quiet -O /tmp/wkhtmltox.tar.xv http://download.gna.org/wkhtmltopdf/0.12/0.12.3/wkhtmltox-0.12.3_linux-generic-amd64.tar.xz
- tar -xf /tmp/wkhtmltox.tar.xv -C $TRAVIS_BUILD_DIR
install:
- gem install sass
- pip install --upgrade setuptools pip
- pip install -r requirements.txt
- pip install -e .
- pip install psycopg2 coveralls
- npm install -g bower uglifyjs
- bower install
before_script:
- psql -c 'create database aleph_test;' -U postgres
- cp $TRAVIS_BUILD_DIR/test_settings.py.tmpl $TRAVIS_BUILD_DIR/test_settings.py
- nosetests --version
- psql --version
script:
- nosetests --with-coverage --cover-package=aleph
after_success:
- coveralls