language: go

go:
  - "1.10.x"
  - "1.11.x"

services:
  - postgresql

before_install:
  - sudo apt-get install apache2-utils

before_script:
  - ./prepare_travis_for_fork.sh
  - psql -c 'create database goby_test;' -U postgres

script:
  - ./travis.sh

env:
  - "GOBY_ROOT=$HOME/gopath/src/github.com/goby-lang/goby"

after_success:
  - bash <(curl -s https://codecov.io/bash)

notifications:
  slack:
    rooms:
      - goby-lang:Ler5Uge2Vlx3O8Yt2OFcKg5W#general
    on_success: always
    on_failure: always
    on_start: never
  webhooks:
    urls:
      - https://webhooks.gitter.im/e/149378fb1b44bbaf21f0
    on_success: change
    on_failure: always
    on_start: never
  email:
    recipients:
      - stan001212@gmail.com
    on_failure: change
    on_success: never


language: go

matrix:
  include:
    - go: 1.10.x
      dist: trusty
    - go: 1.10.x
      dist: xenial
    - go: 1.11.x
      # trusty builds with 1.11 are [currently broken](https://github.com/golang/go/issues/31293)
      dist: xenial

services:
  - postgresql

before_install:
  - sudo apt-get install apache2-utils

before_script:
  - ./prepare_travis_for_fork.sh
  - psql -c 'create database goby_test;' -U postgres

script:
  - ./travis.sh

env:
  - "GOBY_ROOT=$HOME/gopath/src/github.com/goby-lang/goby"

after_success:
  - bash <(curl -s https://codecov.io/bash)

notifications:
  slack:
    rooms:
      - goby-lang:Ler5Uge2Vlx3O8Yt2OFcKg5W#general
    on_success: always
    on_failure: always
    on_start: never
  webhooks:
    urls:
      - https://webhooks.gitter.im/e/149378fb1b44bbaf21f0
    on_success: change
    on_failure: always
    on_start: never
  email:
    recipients:
      - stan001212@gmail.com
    on_failure: change
    on_success: never

Add xenial to matrix of Travis builds
Add xenial to matrix of Travis builds

With the current setup, the Trusty+1.11 build breaks, so it's excluded.
