.travis.yml 930 Bytes
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 27 28 29 30 31 32 33
deploy:
- provider: openshift
  user: jamespic@gmail.com
  password:
    secure: W7hQDKAtmpOfwLjBuss6NEKqPSrRhsbgH8a8eV+/Oo6HZxMi1mbNFSi+6WRNSs3Cil0ZZV+awoqC61jIzV4oTwEYcy5bv9NWNSY1QO34DECMS5sY00wA0zKhkdsdTr9Pc3TLRp1cw6x2KNCF356FKZojFTRbjtfJ79rqBc5k5ww=
  app: dev
  domain: memopol
  skip_cleanup: true
  deployment_branch: pr
  on:
    repo: political-memory/political_memory
    branch: pr