.travis.yml 890 Bytes
Newer Older
Jamesie Pic's avatar
Jamesie Pic committed
1
sudo: false
Jamesie Pic's avatar
Jamesie Pic committed
2
env:
Nicolas Joyard's avatar
Nicolas Joyard committed
3 4 5
  global:
  - DJANGO_DEBUG=True
  - DJANGO_SETTINGS_MODULE=memopol.settings
Jamesie Pic's avatar
Jamesie Pic committed
6 7 8 9
  matrix:
  - TOXENV=qa
  - TOXENV=docs
  - TOXENV=py27
Jamesie Pic's avatar
Jamesie Pic committed
10 11
language: python
python:
Jamesie Pic's avatar
Jamesie Pic committed
12
- '3.4'
Nicolas Joyard's avatar
Nicolas Joyard committed
13 14
services:
- postgresql
Jamesie Pic's avatar
Jamesie Pic committed
15
install:
Jamesie Pic's avatar
Jamesie Pic committed
16 17 18
- travis_retry pip install -U pip
- travis_retry pip install tox
- travis_retry pip freeze
Jamesie Pic's avatar
Jamesie Pic committed
19
before_script:
Nicolas Joyard's avatar
Nicolas Joyard committed
20 21
- psql -c "CREATE USER memopol WITH CREATEDB PASSWORD 'memopol';" -U postgres
- psql -c "CREATE DATABASE memopol WITH OWNER memopol;" -U postgres
Jamesie Pic's avatar
Jamesie Pic committed
22
script:
Jamesie Pic's avatar
Jamesie Pic committed
23
- travis_retry tox
24 25
after_success:
- codecov
Jamesie Pic's avatar
Jamesie Pic committed
26 27
deploy:
- provider: openshift
28
  edge: true
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
    secure: atDq1NEkHXOsV2gZKeXAIn+PvbL3jduz3WK1qIs7BSHyNbrZMT1OUmvoXXrM8+i5eqW3TNsvp23w0RuD06wxSjHkPl+ZCEXP1Ao98p85UZNCgixxiwZHEhL6Amz5vqueGhv+47VOIKNgNFb9NAtRrWyIdA9xDUiK2oWkMSDmHas=
32 33 34 35
  app: master
  domain: memopol
  deployment_branch: master
  on:
36
    repo: memopol/memopol master