forked from aplanas/kmanga
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
42 lines (33 loc) · 1004 Bytes
/
.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
language: python
python:
3.6
addons:
postgresql: "9.5"
services:
- postgresql
- redis-server
env:
global:
- PYTHONPATH=$PYTHONPATH:$TRAVIS_BUILD_DIR
- PYTHONPATH=$PYTHONPATH:$TRAVIS_BUILD_DIR/scraper
- PYTHONPATH=$PYTHONPATH:$TRAVIS_BUILD_DIR/kmanga
before_install:
- sudo apt-get -qq update
- wget http://kindlegen.s3.amazonaws.com/kindlegen_linux_2.6_i386_v2_9.tar.gz
- tar -xzvf kindlegen_linux_2.6_i386_v2_9.tar.gz
- mv kindlegen bin
install:
- pip install -r requirements/test.txt
- pip install coveralls
before_script:
- echo "VENV=$HOME/virtualenv/python$TRAVIS_PYTHON_VERSION" > bin/kmanga.conf
- cp kmanga/kmanga/local_settings.py.travis kmanga/kmanga/local_settings.py
- psql -c "CREATE DATABASE kmanga;" -U postgres
- kmanga/manage.py makemigrations
- cp bin/0002_full_text_search.py kmanga/core/migrations/
- kmanga/manage.py migrate
- kmanga/manage.py loaddata bin/initialdata.json
script:
bin/test.sh -c
after_success:
coveralls