network-pulse-api/.travis.yml

33 строки
792 B
YAML

# Activate Build Config Validation on Travis
version: ~> 1.0
language: python
cache: pip
python:
- "3.7"
services: postgresql
# command to install dependencies
install:
- pip install --upgrade pip
- pip install -r requirements.txt -r dev-requirements.txt
before_script:
- psql -c "CREATE DATABASE pulseapi;" -U postgres
- python manage.py migrate
# command to run tests
script:
- flake8 pulseapi
- python manage.py test
env:
global:
- DEBUG=True
- REDIRECT_URIS=http://test.example.com:8000/api/pulse/oauth2callback
- SSL_PROTECTION=False
- DATABASE_URL=postgres://postgres:5432@localhost:5432/pulseapi
- SECRET_KEY=BetPHpGoUXUwjaAXm6ArIhV95xLdDZtu8QEGnNXY3eTknIkD
- AUTH_STAFF_EMAIL_DOMAINS=mozillafoundation.org