language: python
services:
  - mongodb

# for plugins that require UI
before_script:
  - "export DISPLAY=:99.0"
  - "sh -e /etc/init.d/xvfb start"
  - sleep 3

install:
  - pip install -r requirements.txt -U pytest

jobs:
  include:
    - env: RUN_COMMAND=python run.py
      python: '2.7'
    - env: RUN_COMMAND=python run.py
      python: '3.6'
    - env: RUN_COMMAND=pytest test_web.py
      python: '3.6'    
env:
  matrix:
  - PYTEST_VERSION=3.7.3 PLUGINCOMPAT_SITE=http://plugincompat.herokuapp.com
  global:
    secure: "GYMlRL/xmnVjC2+RljsZj0aVNIOv/d7x36UBT5DNo+FlY4jGHin9nb3tckKzwh+VgNexcZ6O4UY6CRHZdTuwME1LlI4Mywx44y48oomA6lz1RMZI6OP9CF3SbcEl/Qs++sS/USEQNGB9IdWnF11dqbJ7XOI2E9CZk4bX9ZLQVdA="
script:
  - $RUN_COMMAND

branches:
  only:
    - master
    - /feature-.*/

language: python
services:
  - mongodb

# for plugins that require UI
before_script:
  - "export DISPLAY=:99.0"
  - "sh -e /etc/init.d/xvfb start"
  - sleep 3

install:
- pip install -r requirements.txt -U pytest==$PYTEST_VERSION

jobs:
  include:
  - env: RUN_COMMAND="python run.py" PYTEST_VERSION=3.7.3 PLUGINCOMPAT_SITE=http://plugincompat.herokuapp.com
      python: '2.7'
  - env: RUN_COMMAND="python run.py" PYTEST_VERSION=3.7.3 PLUGINCOMPAT_SITE=http://plugincompat.herokuapp.com
      python: '3.6'
  - env: RUN_COMMAND="pytest test_web.py"
      python: '3.6'    
env:
  global:
    secure: "GYMlRL/xmnVjC2+RljsZj0aVNIOv/d7x36UBT5DNo+FlY4jGHin9nb3tckKzwh+VgNexcZ6O4UY6CRHZdTuwME1LlI4Mywx44y48oomA6lz1RMZI6OP9CF3SbcEl/Qs++sS/USEQNGB9IdWnF11dqbJ7XOI2E9CZk4bX9ZLQVdA="
script:
  - $RUN_COMMAND

branches:
  only:
    - master
    - /feature-.*/

Update environment variables on jobs
Update environment variables on jobs
