Skip to content

Commit

Permalink
avoid unnecessary matrixes in travis
Browse files Browse the repository at this point in the history
  • Loading branch information
jmoiron committed Feb 28, 2018
1 parent 700973c commit 645fea9
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,16 @@ before_install:
- mysql -e 'CREATE DATABASE IF NOT EXISTS sqlxtest;'
- psql -c 'create database sqlxtest;' -U postgres
- go get github.com/mattn/goveralls
- export SQLX_MYSQL_DSN="travis:@/sqlxtest?parseTime=true"
- export SQLX_POSTGRES_DSN="postgres://postgres:@localhost/sqlxtest?sslmode=disable"
- export SQLX_SQLITE_DSN="$HOME/sqlxtest.db"

# go versions to test
go:
- "1.8"
- "1.9"
- "1.10.x"

# environment to test everything at once; we want to avoid build matrixes
env:
- SQLX_MYSQL_DSN="travis:@/sqlxtest?parseTime=true"
- SQLX_POSTGRES_DSN="postgres://postgres:@localhost/sqlxtest?sslmode=disable"
- SQLX_SQLITE_DSN="$HOME/sqlxtest.db"

# run tests w/ coverage
script:
- $GOPATH/bin/goveralls -service=travis-ci

0 comments on commit 645fea9

Please sign in to comment.