language: python
python:
  - "3.6"
cache:
  pip: true
  directories:
  - $HOME/.gimme
  - $HOME/.imageio
before_install:
  - gimme 1.6
  - export GOROOT="$HOME/.gimme/versions/go1.6.linux.amd64"
  - export GOPATH="$HOME/.gimme/versions/go1.6.linux.amd64/bin:$TRAVIS_BUILD_DIR"
  - $HOME/.gimme/versions/go1.6.linux.amd64/bin/go get github.com/bwmarrin/discordgo
  - $HOME/.gimme/versions/go1.6.linux.amd64/bin/go get github.com/bwmarrin/dgvoice
script:
  - cd Discord
  - python Harmonbot.py
  - $HOME/.gimme/versions/go1.6.linux.amd64/bin/go run Harmonbot_Listener.go
  - python ../Telegram/Telegram_Harmonbot.py


language: python
# python:
#   - "3.7"
# Workaround for Python 3.7
# https://github.com/travis-ci/travis-ci/issues/9815
matrix:
  include:
    - python: 3.7
      dist: xenial
      sudo: true
cache:
  pip: true
  directories:
  - $HOME/.gimme
  - $HOME/.imageio
before_install:
  - gimme 1.6
  - export GOROOT="$HOME/.gimme/versions/go1.6.linux.amd64"
  - export GOPATH="$HOME/.gimme/versions/go1.6.linux.amd64/bin:$TRAVIS_BUILD_DIR"
  - $HOME/.gimme/versions/go1.6.linux.amd64/bin/go get github.com/bwmarrin/discordgo
  - $HOME/.gimme/versions/go1.6.linux.amd64/bin/go get github.com/bwmarrin/dgvoice
script:
  - cd Discord
  - python Harmonbot.py
  - $HOME/.gimme/versions/go1.6.linux.amd64/bin/go run Harmonbot_Listener.go
  - python ../Telegram/Telegram_Harmonbot.py


Update Travis CI Python version to 3.7 using workaround
Update Travis CI Python version to 3.7 using workaround

https://github.com/travis-ci/travis-ci/issues/9815