.travis.yml 1.5 KB
Newer Older
Jamesie Pic's avatar
Jamesie Pic committed
1
sudo: false
Jamesie Pic's avatar
Jamesie Pic committed
2
env:
Nicolas Joyard's avatar
Nicolas Joyard committed
3 4 5 6 7 8 9 10 11
  global:
  - DJANGO_DEBUG=True
  - DJANGO_SETTINGS_MODULE=memopol.settings
  - MEMOPOL_DB_NAME=memopol
  - MEMOPOL_DB_USER=memopol
  - MEMOPOL_DB_PASSWORD=memopol
  - MEMOPOL_DB_HOST=localhost
  - MEMOPOL_DB_PORT=5432
  - MEMOPOL_DB_ENGINE=django.db.backends.postgresql_psycopg2
Jamesie Pic's avatar
Jamesie Pic committed
12 13
language: python
python:
Jamesie Pic's avatar
Jamesie Pic committed
14
- '2.7'
Nicolas Joyard's avatar
Nicolas Joyard committed
15 16
services:
- postgresql
Jamesie Pic's avatar
Jamesie Pic committed
17
install:
Jamesie Pic's avatar
Jamesie Pic committed
18
- pip install -e .[testing]
Jamesie Pic's avatar
Jamesie Pic committed
19
before_script:
20
- bin/install_client_deps.sh
Nicolas Joyard's avatar
Nicolas Joyard committed
21 22
- psql -c "CREATE USER memopol WITH CREATEDB PASSWORD 'memopol';" -U postgres
- psql -c "CREATE DATABASE memopol WITH OWNER memopol;" -U postgres
Jamesie Pic's avatar
Jamesie Pic committed
23
script:
24
- flake8 . --exclude '*/migrations,docs,static' --ignore E128
Jamesie Pic's avatar
Jamesie Pic committed
25
- py.test memopol representatives_positions representatives_recommendations
Jamesie Pic's avatar
Quality  
Jamesie Pic committed
26
- django-admin migrate
Jamesie Pic's avatar
Jamesie Pic committed
27 28
after_success:
- codecov
Jamesie Pic's avatar
Jamesie Pic committed
29 30
deploy:
- provider: openshift
Jamesie Pic's avatar
Jamesie Pic committed
31
  user: memopol@laquadrature.net
Jamesie Pic's avatar
Jamesie Pic committed
32
  password:
Jamesie Pic's avatar
Jamesie Pic committed
33
    secure: atDq1NEkHXOsV2gZKeXAIn+PvbL3jduz3WK1qIs7BSHyNbrZMT1OUmvoXXrM8+i5eqW3TNsvp23w0RuD06wxSjHkPl+ZCEXP1Ao98p85UZNCgixxiwZHEhL6Amz5vqueGhv+47VOIKNgNFb9NAtRrWyIdA9xDUiK2oWkMSDmHas=
Jamesie Pic's avatar
Jamesie Pic committed
34 35 36 37 38 39 40
  app: master
  domain: memopol
  deployment_branch: master
  on:
    repo: political-memory/political_memory
    branch: master
- provider: openshift
Jamesie Pic's avatar
Jamesie Pic committed
41
  user: memopol@laquadrature.net
Jamesie Pic's avatar
Jamesie Pic committed
42
  password:
Jamesie Pic's avatar
Jamesie Pic committed
43 44
    secure: atDq1NEkHXOsV2gZKeXAIn+PvbL3jduz3WK1qIs7BSHyNbrZMT1OUmvoXXrM8+i5eqW3TNsvp23w0RuD06wxSjHkPl+ZCEXP1Ao98p85UZNCgixxiwZHEhL6Amz5vqueGhv+47VOIKNgNFb9NAtRrWyIdA9xDUiK2oWkMSDmHas=
  app: v3
Jamesie Pic's avatar
Jamesie Pic committed
45
  domain: memopol
Jamesie Pic's avatar
Jamesie Pic committed
46
  deployment_branch: v3
Jamesie Pic's avatar
Jamesie Pic committed
47 48
  on:
    repo: political-memory/political_memory
Jamesie Pic's avatar
Jamesie Pic committed
49
    branch: v3