.travis.yml 1.67 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
Quality  
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:
Jamesie Pic's avatar
Jamesie Pic committed
14
- bash -c '! lesscpy -N static/less/base.less 2>&1 | grep Error'
15
- flake8 . --exclude '*/migrations,docs,static' --ignore E128
Jamesie Pic's avatar
Jamesie Pic committed
16 17
- py.test memopol representatives_positions representatives_recommendations
- rm -rf db.sqlite
Jamesie Pic's avatar
Quality  
Jamesie Pic committed
18 19
- django-admin migrate
- django-admin update_score
Jamesie Pic's avatar
Jamesie Pic committed
20 21
after_success:
- codecov
Jamesie Pic's avatar
Jamesie Pic committed
22 23 24 25 26
deploy:
- provider: openshift
  user: jamespic@gmail.com
  password:
    secure: W7hQDKAtmpOfwLjBuss6NEKqPSrRhsbgH8a8eV+/Oo6HZxMi1mbNFSi+6WRNSs3Cil0ZZV+awoqC61jIzV4oTwEYcy5bv9NWNSY1QO34DECMS5sY00wA0zKhkdsdTr9Pc3TLRp1cw6x2KNCF356FKZojFTRbjtfJ79rqBc5k5ww=
Jamesie Pic's avatar
Jamesie Pic committed
27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
  app: master
  domain: memopol
  skip_cleanup: true
  deployment_branch: master
  on:
    repo: political-memory/political_memory
    branch: master
- provider: openshift
  user: jamespic@gmail.com
  password:
    secure: W7hQDKAtmpOfwLjBuss6NEKqPSrRhsbgH8a8eV+/Oo6HZxMi1mbNFSi+6WRNSs3Cil0ZZV+awoqC61jIzV4oTwEYcy5bv9NWNSY1QO34DECMS5sY00wA0zKhkdsdTr9Pc3TLRp1cw6x2KNCF356FKZojFTRbjtfJ79rqBc5k5ww=
  app: lqdn
  domain: memopol
  skip_cleanup: true
  deployment_branch: lqdn
  on:
    repo: political-memory/political_memory
    branch: lqdn
- provider: openshift
  user: jamespic@gmail.com
  password:
    secure: W7hQDKAtmpOfwLjBuss6NEKqPSrRhsbgH8a8eV+/Oo6HZxMi1mbNFSi+6WRNSs3Cil0ZZV+awoqC61jIzV4oTwEYcy5bv9NWNSY1QO34DECMS5sY00wA0zKhkdsdTr9Pc3TLRp1cw6x2KNCF356FKZojFTRbjtfJ79rqBc5k5ww=
  app: pr
Jamesie Pic's avatar
Jamesie Pic committed
50 51 52 53 54 55
  domain: memopol
  skip_cleanup: true
  deployment_branch: pr
  on:
    repo: political-memory/political_memory
    branch: pr