-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
52 lines (46 loc) · 2.01 KB
/
.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
51
52
language: go
services:
- postgresql
- mysql
before_script:
- sh -c "if [ '$DB' = 'postgres' ]; then psql -c 'create database dbpopulate_test;' -U postgres; fi"
- sh -c "if [ '$DB' = 'mysql' ]; then mysql -e 'create database dbpopulate_test;'; fi"
- go get -t -v ./...
go:
- 1.4
- 1.5
- 1.6
env:
- DB=sqlite3 DATABASE_URL="sqlite3://:memory:"
- DB=postgres DATABASE_URL="postgres://postgres@localhost/dbpopulate_test?sslmode=disable"
- DB=mysql DATABASE_URL="mysql://root@tcp(localhost:3306)/dbpopulate_test"
before_deploy:
- go get github.com/mitchellh/gox
- sed -i -e 's|_ "github.com/mattn/go-sqlite3"|// _ "github.com/mattn/go-sqlite3"|' db.go
- gox
- sed -i -e 's|// _ "github.com/mattn/go-sqlite3"|_ "github.com/mattn/go-sqlite3"|' db.go
deploy:
provider: releases
api_key:
secure: V6oknOD5kG7bst63WKNKLwmmNSP0ZFTUSkX4kc5UTTilkwpvcHyP8AgrLk0nwi2zjwmF618O7S+0KR4wsLg0VOSaPev/J4OJMTS6CNwUIoKFtkpO2re91lhyjYVaLLpY/hYHm5qwrqEPxcoljKFybKNtsr1br7GwiAAiHtmhk/IrUEhb2mwSZPz2N/57q52s12aNjrrBivLGoQ5Ky/Ndd/tqe+zdK5HvEnCDF+8ysUijXyw3mko2v1gpC7b6vDgtnKmmdFcV7bpfvksy/0098K1Zg1vyQ40n+RqYRQAbLWPMPvvSEzu+9gjcqPSZ5r+t6xXJsY1Lfwk4IrdGtO443tjVJL1Z/aphaQrY9DuB6Gs9xGEly9hN/dqoKYQbyIP3sHzEmUk10crxWzhCkrf1NoFePvL2JDIxQX02eYo77YdMEzxhU1630tj9nG1lvv//WxnCOCSfHjBVHC/JN7QXGwhO1PMqNGbHIqn0KDhRUq+43VQl1xFowfBu6DDafYSCZwOiN9WkRuMDwIWprgAV3LsEs/a5GZ/3SwgNvbcgLa1EjO1pGuOBiq4rnpdwOejSK4mvGZ8MlJ7zYWz4gffXod2J5rmIxsVM3f/Ss1r36zsZHWHX0388X8B0MylSU5m1ONJ/b8WkqT3mWqAkCpZDehlp2GWbCMRnvTCYz6jMHSI=
file:
- dbpopulate_darwin_386
- dbpopulate_darwin_amd64
- dbpopulate_freebsd_386
- dbpopulate_freebsd_amd64
- dbpopulate_freebsd_arm
- dbpopulate_linux_386
- dbpopulate_linux_amd64
- dbpopulate_linux_arm
- dbpopulate_netbsd_386
- dbpopulate_netbsd_amd64
- dbpopulate_netbsd_arm
- dbpopulate_openbsd_386
- dbpopulate_openbsd_amd64
- dbpopulate_windows_386.exe
- dbpopulate_windows_amd64.exe
on:
repo: claudetech/dbpopulate
tags: true
go: 1.6
condition: $DB = postgres