forked from gobuffalo/fizz
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
50 lines (39 loc) · 851 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
language: go
dist: trusty
sudo: required
go:
- 1.9
- "1.10"
- tip
install:
- go get -t -v ./...
before_script:
- go get -v -tags sqlite github.com/gobuffalo/pop/soda
# travis hangs when trying to create mysql db using soda. not sure why
- mysql -e 'create database pop_test;'
- soda create -e "postgres"
- soda create -e "sqlite"
- soda migrate -e "mysql_travis"
- soda migrate -e "postgres"
- soda migrate -e "sqlite"
script: go test -tags sqlite ./... -v
global_env:
- MYSQL_USER="travis"
- MYSQL_PASSWORD=""
- POSTGRES_PASSWORD=""
env:
- SODA_DIALECT="postgres"
- SODA_DIALECT="mysql_travis"
- SODA_DIALECT="sqlite"
services:
- mysql
addons:
postgresql: "9.5"
apt:
sources:
- mysql-5.7-trusty
packages:
- mysql-server
matrix:
allow_failures:
- go: 'tip'