forked from slicebit/qb
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
36 lines (28 loc) · 1013 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
language: go
sudo: required
services:
- mysql
- postgresql
addons:
postgresql: 9.5
go:
- tip
before_install:
- go get github.com/mattn/goveralls
install:
- go get -v github.com/lib/pq
- go get -v github.com/go-sql-driver/mysql
- go get -v github.com/mattn/go-sqlite3
- go get -t -v ./...
script:
- go test -v -covermode=count -coverprofile=coverage.out
- go test -v -covermode=count -coverprofile=sqlite.out ./dialects/sqlite
- go test -v -covermode=count -coverprofile=postgres.out ./dialects/postgres
- go test -v -covermode=count -coverprofile=mysql.out ./dialects/mysql
- tail --lines +2 sqlite.out >> coverage.out
- tail --lines +2 postgres.out >> coverage.out
- tail --lines +2 mysql.out >> coverage.out
- $GOPATH/bin/goveralls -coverprofile=coverage.out -service=travis-ci -repotoken 0yIEy3NVX2lXn3KxYzHjkla7EWGjvmLAp
before_script:
- mysql -e 'create database IF NOT EXISTS qb_test;'
- psql -U postgres -c 'CREATE DATABASE qb_test;'