build:
  unit_tests:
    image: python:3
    commands:
      - apt-get install -y --no-install-recommends curl 
      - curl -sL https://deb.nodesource.com/setup_6.x | bash -
      - apt-get install nodejs libjpeg-dev ghostscript
      - npm install -g less
      - cp onlineweb4/settings/example-local.py onlineweb4/settings/local.py
      - pip install tox
      - tox -e flake8
      - tox -e isort
      - tox -e tests
    when:
      event: [pull_request]

build:
  unit_tests:
    image: python:3
    commands:
      - apt-get install -y --no-install-recommends curl 
      - curl -sL https://deb.nodesource.com/setup_6.x | bash -
      - apt-get install nodejs libjpeg-dev ghostscript
      - npm install -g less
      - cp onlineweb4/settings/example-local.py onlineweb4/settings/local.py
      - pip install tox
      - tox -e flake8
      - tox -e isort
      - tox -e tests
    when:
      event: [pull_request]
deploy:
  ssh:
    host: nansen.dotkom
    port: 22
    user: root
    commands:
      - /srv/www/ow4dev/deploy.sh
    when:
      branch: develop

Add deployment of dev on every push to develop
Add deployment of dev on every push to develop
