.travis.yml 1.17 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
8
before_install:
- pip install codecov
Jamesie Pic's avatar
Jamesie Pic committed
9
install:
Jamesie Pic's avatar
Jamesie Pic committed
10
- pip install -e .[testing]
Jamesie Pic's avatar
Jamesie Pic committed
11
before_script:
12
- bin/install_client_deps.sh
Jamesie Pic's avatar
Jamesie Pic committed
13
script:
14
- flake8 . --exclude '*/migrations,docs,static' --ignore E128
Jamesie Pic's avatar
Jamesie Pic committed
15
16
- py.test memopol representatives_positions representatives_recommendations
- rm -rf db.sqlite
Jamesie Pic's avatar
Quality    
Jamesie Pic committed
17
- django-admin migrate
Jamesie Pic's avatar
Jamesie Pic committed
18
19
after_success:
- codecov
Jamesie Pic's avatar
Jamesie Pic committed
20
21
deploy:
- provider: openshift
Jamesie Pic's avatar
Jamesie Pic committed
22
  user: memopol@laquadrature.net
Jamesie Pic's avatar
Jamesie Pic committed
23
  password:
Jamesie Pic's avatar
Jamesie Pic committed
24
    secure: atDq1NEkHXOsV2gZKeXAIn+PvbL3jduz3WK1qIs7BSHyNbrZMT1OUmvoXXrM8+i5eqW3TNsvp23w0RuD06wxSjHkPl+ZCEXP1Ao98p85UZNCgixxiwZHEhL6Amz5vqueGhv+47VOIKNgNFb9NAtRrWyIdA9xDUiK2oWkMSDmHas=
Jamesie Pic's avatar
Jamesie Pic committed
25
26
27
28
29
30
31
  app: master
  domain: memopol
  deployment_branch: master
  on:
    repo: political-memory/political_memory
    branch: master
- provider: openshift
Jamesie Pic's avatar
Jamesie Pic committed
32
  user: memopol@laquadrature.net
Jamesie Pic's avatar
Jamesie Pic committed
33
  password:
Jamesie Pic's avatar
Jamesie Pic committed
34
35
    secure: atDq1NEkHXOsV2gZKeXAIn+PvbL3jduz3WK1qIs7BSHyNbrZMT1OUmvoXXrM8+i5eqW3TNsvp23w0RuD06wxSjHkPl+ZCEXP1Ao98p85UZNCgixxiwZHEhL6Amz5vqueGhv+47VOIKNgNFb9NAtRrWyIdA9xDUiK2oWkMSDmHas=
  app: v3
Jamesie Pic's avatar
Jamesie Pic committed
36
  domain: memopol
Jamesie Pic's avatar
Jamesie Pic committed
37
  deployment_branch: v3
Jamesie Pic's avatar
Jamesie Pic committed
38
39
  on:
    repo: political-memory/political_memory
Jamesie Pic's avatar
Jamesie Pic committed
40
    branch: v3