.travis.yml 1.15 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
- py.test memopol representatives_positions representatives_recommendations
Jamesie Pic's avatar
Quality    
Jamesie Pic committed
16
- django-admin migrate
Jamesie Pic's avatar
Jamesie Pic committed
17
18
after_success:
- codecov
Jamesie Pic's avatar
Jamesie Pic committed
19
20
deploy:
- provider: openshift
Jamesie Pic's avatar
Jamesie Pic committed
21
  user: memopol@laquadrature.net
Jamesie Pic's avatar
Jamesie Pic committed
22
  password:
Jamesie Pic's avatar
Jamesie Pic committed
23
    secure: atDq1NEkHXOsV2gZKeXAIn+PvbL3jduz3WK1qIs7BSHyNbrZMT1OUmvoXXrM8+i5eqW3TNsvp23w0RuD06wxSjHkPl+ZCEXP1Ao98p85UZNCgixxiwZHEhL6Amz5vqueGhv+47VOIKNgNFb9NAtRrWyIdA9xDUiK2oWkMSDmHas=
Jamesie Pic's avatar
Jamesie Pic committed
24
25
26
27
28
29
30
  app: master
  domain: memopol
  deployment_branch: master
  on:
    repo: political-memory/political_memory
    branch: master
- 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
34
    secure: atDq1NEkHXOsV2gZKeXAIn+PvbL3jduz3WK1qIs7BSHyNbrZMT1OUmvoXXrM8+i5eqW3TNsvp23w0RuD06wxSjHkPl+ZCEXP1Ao98p85UZNCgixxiwZHEhL6Amz5vqueGhv+47VOIKNgNFb9NAtRrWyIdA9xDUiK2oWkMSDmHas=
  app: v3
Jamesie Pic's avatar
Jamesie Pic committed
35
  domain: memopol
Jamesie Pic's avatar
Jamesie Pic committed
36
  deployment_branch: v3
Jamesie Pic's avatar
Jamesie Pic committed
37
38
  on:
    repo: political-memory/political_memory
Jamesie Pic's avatar
Jamesie Pic committed
39
    branch: v3