.travis.yml 1.12 KB
Newer Older
Jamesie Pic's avatar
Jamesie Pic committed
1
sudo: false
Jamesie Pic's avatar
Jamesie Pic committed
2
env:
Jamesie Pic's avatar
Jamesie Pic committed
3
- DJANGO_DEBUG=True DJANGO_SETTINGS_MODULE=memopol.settings
Jamesie Pic's avatar
Jamesie Pic committed
4 5
language: python
python:
Jamesie Pic's avatar
Jamesie Pic committed
6
- '2.7'
Jamesie Pic's avatar
Jamesie Pic committed
7
install:
Jamesie Pic's avatar
Jamesie Pic committed
8
- pip install -e .[testing]
Jamesie Pic's avatar
Jamesie Pic committed
9
before_script:
10
- bin/install_client_deps.sh
Jamesie Pic's avatar
Jamesie Pic committed
11
script:
12
- flake8 . --exclude '*/migrations,docs,static' --ignore E128
Jamesie Pic's avatar
Jamesie Pic committed
13
- py.test memopol representatives_positions representatives_recommendations
Jamesie Pic's avatar
Quality  
Jamesie Pic committed
14
- django-admin migrate
Jamesie Pic's avatar
Jamesie Pic committed
15 16
after_success:
- codecov
Jamesie Pic's avatar
Jamesie Pic committed
17 18
deploy:
- provider: openshift
Jamesie Pic's avatar
Jamesie Pic committed
19
  user: memopol@laquadrature.net
Jamesie Pic's avatar
Jamesie Pic committed
20
  password:
Jamesie Pic's avatar
Jamesie Pic committed
21
    secure: atDq1NEkHXOsV2gZKeXAIn+PvbL3jduz3WK1qIs7BSHyNbrZMT1OUmvoXXrM8+i5eqW3TNsvp23w0RuD06wxSjHkPl+ZCEXP1Ao98p85UZNCgixxiwZHEhL6Amz5vqueGhv+47VOIKNgNFb9NAtRrWyIdA9xDUiK2oWkMSDmHas=
Jamesie Pic's avatar
Jamesie Pic committed
22 23 24 25 26 27 28
  app: master
  domain: memopol
  deployment_branch: master
  on:
    repo: political-memory/political_memory
    branch: master
- provider: openshift
Jamesie Pic's avatar
Jamesie Pic committed
29
  user: memopol@laquadrature.net
Jamesie Pic's avatar
Jamesie Pic committed
30
  password:
Jamesie Pic's avatar
Jamesie Pic committed
31 32
    secure: atDq1NEkHXOsV2gZKeXAIn+PvbL3jduz3WK1qIs7BSHyNbrZMT1OUmvoXXrM8+i5eqW3TNsvp23w0RuD06wxSjHkPl+ZCEXP1Ao98p85UZNCgixxiwZHEhL6Amz5vqueGhv+47VOIKNgNFb9NAtRrWyIdA9xDUiK2oWkMSDmHas=
  app: v3
Jamesie Pic's avatar
Jamesie Pic committed
33
  domain: memopol
Jamesie Pic's avatar
Jamesie Pic committed
34
  deployment_branch: v3
Jamesie Pic's avatar
Jamesie Pic committed
35 36
  on:
    repo: political-memory/political_memory
Jamesie Pic's avatar
Jamesie Pic committed
37
    branch: v3