26 lines
753 B
YAML
26 lines
753 B
YAML
language: python
|
|
|
|
python:
|
|
- '2.7'
|
|
|
|
services:
|
|
- redis-server
|
|
- mysql
|
|
|
|
env:
|
|
global:
|
|
- DJANGO_SETTINGS_MODULE=regluit.settings.travis
|
|
- PYTHONPATH=/home/travis/build/EbookFoundation/
|
|
|
|
before_install:
|
|
- sudo mkdir /var/log/django
|
|
- sudo chmod 777 /var/log/django
|
|
- mkdir ~/build/EbookFoundation/regluit/settings/keys/
|
|
- cp ~/build/EbookFoundation/regluit/settings/dummy/__init__.py ~/build/EbookFoundation/regluit/settings/keys/__init__.py
|
|
- openssl aes-256-cbc -K $encrypted_56eb2b7cc527_key -iv $encrypted_56eb2b7cc527_iv -in ~/build/EbookFoundation/regluit/test/travis-host.py.enc -out ~/build/EbookFoundation/regluit/settings/keys/host.py -d
|
|
|
|
install:
|
|
- pip install -r requirements_versioned.pip
|
|
|
|
script: django-admin test
|