-
Notifications
You must be signed in to change notification settings - Fork 4
/
.travis.yml
36 lines (36 loc) · 1.21 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
language: python
python:
- "2.7"
rvm:
- "1.9.3"
env:
- DJANGO="1.7.2"
services:
- rabbitmq
before_install:
- wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-0.20.5.deb
- sudo apt-get update
install:
- sudo apt-get install rubygems graphicsmagick poppler-utils pdftk ghostscript -y
- sudo apt-get install tesseract-ocr tesseract-ocr-eng tesseract-ocr-spa-old tesseract-ocr-spa -y
- sudo apt-get install yui-compressor build-essential npm openjdk-7-jre -y
- gem install docsplit
- sudo dpkg -i --force-confnew elasticsearch-0.20.5.deb
- pip install -r requirements.txt
- pip install Django==$DJANGO
- pip install coverage
- pip install coveralls
before_script:
- sudo chmod 1777 /tmp && sudo chmod 1777 /var/tmp
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
- mkdir /tmp/media
- sudo ln -s /usr/local/bin/docsplit /usr/bin/docsplit
- sudo ln -s /usr/bin/yui-compressor /usr/local/bin/yuicompressor
- sudo npm config set registry http://registry.npmjs.org/
- sudo npm -g install yuglify
script: coverage run manage.py test --settings=festos.test_settings --verbosity=2
after_success:
- coveralls
after_script:
- "sh -e /etc/init.d/xvfb stop"