.travis.yml 957 Bytes
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
  global:
  - DJANGO_DEBUG=True
  - DJANGO_SETTINGS_MODULE=memopol.settings
Jamesie Pic's avatar
Jamesie Pic committed
6 7
language: python
python:
Jamesie Pic's avatar
Jamesie Pic committed
8
- '2.7'
Nicolas Joyard's avatar
Nicolas Joyard committed
9 10
services:
- postgresql
Jamesie Pic's avatar
Jamesie Pic committed
11
install:
Nicolas Joyard's avatar
Nicolas Joyard committed
12
- pip install -U setuptools
Jamesie Pic's avatar
Jamesie Pic committed
13
- pip install -e .[testing]
Jamesie Pic's avatar
Jamesie Pic committed
14
before_script:
15
- bin/install_client_deps.sh
Nicolas Joyard's avatar
Nicolas Joyard committed
16 17
- 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
18
script:
19
- flake8 . --exclude '*/migrations,docs,static' --ignore E128
Nicolas Joyard's avatar
Nicolas Joyard committed
20
- py.test memopol memopol_scores
Jamesie Pic's avatar
Quality  
Jamesie Pic committed
21
- django-admin migrate
Jamesie Pic's avatar
Jamesie Pic committed
22 23
after_success:
- codecov
Jamesie Pic's avatar
Jamesie Pic committed
24 25
deploy:
- provider: openshift
26
  edge: true
Jamesie Pic's avatar
Jamesie Pic committed
27
  user: memopol@laquadrature.net
Jamesie Pic's avatar
Jamesie Pic committed
28
  password:
Jamesie Pic's avatar
Jamesie Pic committed
29
    secure: atDq1NEkHXOsV2gZKeXAIn+PvbL3jduz3WK1qIs7BSHyNbrZMT1OUmvoXXrM8+i5eqW3TNsvp23w0RuD06wxSjHkPl+ZCEXP1Ao98p85UZNCgixxiwZHEhL6Amz5vqueGhv+47VOIKNgNFb9NAtRrWyIdA9xDUiK2oWkMSDmHas=
Jamesie Pic's avatar
Jamesie Pic committed
30 31 32 33 34 35
  app: master
  domain: memopol
  deployment_branch: master
  on:
    repo: political-memory/political_memory
    branch: master