language: python
python:
  - "3.6"
sudo: false
install:
  - pip install pipenv
  - pipenv shell
  - pipenv install --dev
  - pip install tox-travis
script: tox
after_success:
  - tox -e ci
  - scripts/discord-webhook.sh success $WEBHOOK_URL
after_failure:
  - scripts/discord-webhook.sh failure $WEBHOOK_URL

language: python
python:
  - "3.6"
sudo: false
install:
  - pip install pipenv
  - pipenv install --dev --system
  - pipenv run pip install tox-travis
script: pipenv run tox
after_success:
  - pipenv run tox -e ci
  - scripts/discord-webhook.sh success $WEBHOOK_URL
after_failure:
  - scripts/discord-webhook.sh failure $WEBHOOK_URL

Use pipenv run instead of shell
ci: Use pipenv run instead of shell
