language: go

sudo: false

go:
    - 1.3
    - 1.4
    - 1.5
    - 1.6
    - 1.7
    - 1.8

services:
    - mysql
    - postgresql

before_install:
    - mysql -e "CREATE DATABASE IF NOT EXISTS test;" -uroot
    - mysql -e "CREATE DATABASE IF NOT EXISTS test_env;" -uroot
    - psql -c "CREATE DATABASE test;" -U postgres

install:
    - go get -t ./...
    - go install ./...

script:
    - go test -v ./...
    - bash test-integration/postgres.sh
    - bash test-integration/mysql.sh
    - bash test-integration/mysql-flag.sh
    - bash test-integration/mysql-env.sh
    - bash test-integration/sqlite.sh

language: go

sudo: false

go:
    - 1.6
    - 1.7
    - 1.8

services:
    - mysql
    - postgresql

before_install:
    - mysql -e "CREATE DATABASE IF NOT EXISTS test;" -uroot
    - mysql -e "CREATE DATABASE IF NOT EXISTS test_env;" -uroot
    - psql -c "CREATE DATABASE test;" -U postgres

install:
    - go get -t ./...
    - go install ./...

script:
    - go test -v ./...
    - bash test-integration/postgres.sh
    - bash test-integration/mysql.sh
    - bash test-integration/mysql-flag.sh
    - bash test-integration/mysql-env.sh
    - bash test-integration/sqlite.sh

Stop testing old Go versions
Stop testing old Go versions
