forked from alephdata/aleph
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
60 lines (60 loc) · 1.79 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
language: python
cache:
- apt
- pip
- npm
python:
- "2.7"
services:
- postgresql
- rabbitmq
addons:
postgresql: "9.5"
apt:
packages:
- python-software-properties
- libtesseract-dev
- wkhtmltopdf
- poppler-utils
- libreoffice
- djvulibre-bin
- oracle-java8-installer
- oracle-java8-set-default
env:
global:
- NODE_VERSION=6.9.2
- ALEPH_SETTINGS=$TRAVIS_BUILD_DIR/contrib/docker_settings.py
- ALEPH_DATABASE_NAME=aleph
- ALEPH_DATABASE_URI=postgresql://localhost/$ALEPH_DATABASE_NAME
- WKHTMLTOPDF_BIN=$TRAVIS_BUILD_DIR/wkhtmltox/bin/wkhtmltopdf
- OAUTH_KEY=fake
- OAUTH_SECRET=fake
before_install:
- sudo apt-get -qq update
- sudo apt-get install -y tesseract-ocr-eng readpst libmagic1
- curl -O https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-5.4.0.deb && sudo dpkg -i --force-confnew elasticsearch-5.4.0.deb && sudo service elasticsearch start
- wget --quiet -O /tmp/wkhtmltox.tar.xv https://downloads.wkhtmltopdf.org/0.12/0.12.4/wkhtmltox-0.12.4_linux-generic-amd64.tar.xz
- tar -xf /tmp/wkhtmltox.tar.xv -C $TRAVIS_BUILD_DIR
install:
- pip install --upgrade setuptools pip
- pip install -r requirements.txt
- pip install -e .
- pip install --upgrade git+https://github.com/alephdata/ingestors.git#egg=ingestors
- pip install coveralls
- nvm install $NODE_VERSION
- nvm use $NODE_VERSION
- npm install .
before_script:
- sleep 10
- psql -c "create database ${ALEPH_DATABASE_NAME}_test;" -U postgres
# - elasticsearch --version
- nosetests --version
- psql --version
- nvm use $NODE_VERSION
- node --version
script:
- nvm use $NODE_VERSION
# - node_modules/webpack/bin/webpack.js --env.prod
- nosetests --with-coverage --cover-package=aleph
after_success:
- coveralls