Skip to content

Commit

Permalink
Drop support for Go 1.6 due to MySQL driver.
Browse files Browse the repository at this point in the history
  • Loading branch information
AlekSi committed Nov 15, 2017
1 parent 57000bf commit 17a8c3e
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 104 deletions.
100 changes: 2 additions & 98 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,110 +57,14 @@ services:
DATABASE: mssql

# Generated with 'go run .github/drone-gen.go'.
# 80 combinations:
# Go: golang:1.6, golang:1.7, golang:1.8, golang:1.9, captncraig/go-tip
# 64 combinations:
# Go: golang:1.7, golang:1.8, golang:1.9, captncraig/go-tip
# postgres: 9.2, 9.3, 9.4, 9.5, 9.6 (drivers: postgres)
# mysql: 5.5, 5.6, 5.7, 8.0 (drivers: mysql, mysql)
# sqlite3: dummy (drivers: sqlite3)
# mssql: latest (drivers: mssql, sqlserver)
matrix:
include:
- {
GO: "golang:1.6", DATABASE: postgres, VERSION: 9.2, REFORM_DRIVER: postgres,
REFORM_ROOT_SOURCE: "postgres://postgres@127.0.0.1/template1?sslmode=disable",
REFORM_INIT_SOURCE: "postgres://postgres@127.0.0.1/reform-database?sslmode=disable&TimeZone=UTC",
REFORM_TEST_SOURCE: "postgres://postgres@127.0.0.1/reform-database?sslmode=disable&TimeZone=America/New_York"
}
- {
GO: "golang:1.6", DATABASE: postgres, VERSION: 9.3, REFORM_DRIVER: postgres,
REFORM_ROOT_SOURCE: "postgres://postgres@127.0.0.1/template1?sslmode=disable",
REFORM_INIT_SOURCE: "postgres://postgres@127.0.0.1/reform-database?sslmode=disable&TimeZone=UTC",
REFORM_TEST_SOURCE: "postgres://postgres@127.0.0.1/reform-database?sslmode=disable&TimeZone=America/New_York"
}
- {
GO: "golang:1.6", DATABASE: postgres, VERSION: 9.4, REFORM_DRIVER: postgres,
REFORM_ROOT_SOURCE: "postgres://postgres@127.0.0.1/template1?sslmode=disable",
REFORM_INIT_SOURCE: "postgres://postgres@127.0.0.1/reform-database?sslmode=disable&TimeZone=UTC",
REFORM_TEST_SOURCE: "postgres://postgres@127.0.0.1/reform-database?sslmode=disable&TimeZone=America/New_York"
}
- {
GO: "golang:1.6", DATABASE: postgres, VERSION: 9.5, REFORM_DRIVER: postgres,
REFORM_ROOT_SOURCE: "postgres://postgres@127.0.0.1/template1?sslmode=disable",
REFORM_INIT_SOURCE: "postgres://postgres@127.0.0.1/reform-database?sslmode=disable&TimeZone=UTC",
REFORM_TEST_SOURCE: "postgres://postgres@127.0.0.1/reform-database?sslmode=disable&TimeZone=America/New_York"
}
- {
GO: "golang:1.6", DATABASE: postgres, VERSION: 9.6, REFORM_DRIVER: postgres,
REFORM_ROOT_SOURCE: "postgres://postgres@127.0.0.1/template1?sslmode=disable",
REFORM_INIT_SOURCE: "postgres://postgres@127.0.0.1/reform-database?sslmode=disable&TimeZone=UTC",
REFORM_TEST_SOURCE: "postgres://postgres@127.0.0.1/reform-database?sslmode=disable&TimeZone=America/New_York"
}
- {
GO: "golang:1.6", DATABASE: mysql, VERSION: 5.5, REFORM_DRIVER: mysql,
REFORM_ROOT_SOURCE: "root@/mysql",
REFORM_INIT_SOURCE: "root@/reform-database?parseTime=true&clientFoundRows=true&time_zone='UTC'&sql_mode='ANSI'&multiStatements=true",
REFORM_TEST_SOURCE: "root@/reform-database?parseTime=true&clientFoundRows=true&time_zone='America%2FNew_York'&sql_mode='ANSI'"
}
- {
GO: "golang:1.6", DATABASE: mysql, VERSION: 5.5, REFORM_DRIVER: mysql,
REFORM_ROOT_SOURCE: "root@/mysql",
REFORM_INIT_SOURCE: "root@/reform-database?parseTime=true&clientFoundRows=true&time_zone='UTC'&sql_mode='ANSI'&multiStatements=true",
REFORM_TEST_SOURCE: "root@/reform-database?parseTime=true&clientFoundRows=true&time_zone='America%2FNew_York'&sql_mode='TRADITIONAL'&interpolateParams=true"
}
- {
GO: "golang:1.6", DATABASE: mysql, VERSION: 5.6, REFORM_DRIVER: mysql,
REFORM_ROOT_SOURCE: "root@/mysql",
REFORM_INIT_SOURCE: "root@/reform-database?parseTime=true&clientFoundRows=true&time_zone='UTC'&sql_mode='ANSI'&multiStatements=true",
REFORM_TEST_SOURCE: "root@/reform-database?parseTime=true&clientFoundRows=true&time_zone='America%2FNew_York'&sql_mode='ANSI'"
}
- {
GO: "golang:1.6", DATABASE: mysql, VERSION: 5.6, REFORM_DRIVER: mysql,
REFORM_ROOT_SOURCE: "root@/mysql",
REFORM_INIT_SOURCE: "root@/reform-database?parseTime=true&clientFoundRows=true&time_zone='UTC'&sql_mode='ANSI'&multiStatements=true",
REFORM_TEST_SOURCE: "root@/reform-database?parseTime=true&clientFoundRows=true&time_zone='America%2FNew_York'&sql_mode='TRADITIONAL'&interpolateParams=true"
}
- {
GO: "golang:1.6", DATABASE: mysql, VERSION: 5.7, REFORM_DRIVER: mysql,
REFORM_ROOT_SOURCE: "root@/mysql",
REFORM_INIT_SOURCE: "root@/reform-database?parseTime=true&clientFoundRows=true&time_zone='UTC'&sql_mode='ANSI'&multiStatements=true",
REFORM_TEST_SOURCE: "root@/reform-database?parseTime=true&clientFoundRows=true&time_zone='America%2FNew_York'&sql_mode='ANSI'"
}
- {
GO: "golang:1.6", DATABASE: mysql, VERSION: 5.7, REFORM_DRIVER: mysql,
REFORM_ROOT_SOURCE: "root@/mysql",
REFORM_INIT_SOURCE: "root@/reform-database?parseTime=true&clientFoundRows=true&time_zone='UTC'&sql_mode='ANSI'&multiStatements=true",
REFORM_TEST_SOURCE: "root@/reform-database?parseTime=true&clientFoundRows=true&time_zone='America%2FNew_York'&sql_mode='TRADITIONAL'&interpolateParams=true"
}
- {
GO: "golang:1.6", DATABASE: mysql, VERSION: 8.0, REFORM_DRIVER: mysql,
REFORM_ROOT_SOURCE: "root@/mysql",
REFORM_INIT_SOURCE: "root@/reform-database?parseTime=true&clientFoundRows=true&time_zone='UTC'&sql_mode='ANSI'&multiStatements=true",
REFORM_TEST_SOURCE: "root@/reform-database?parseTime=true&clientFoundRows=true&time_zone='America%2FNew_York'&sql_mode='ANSI'"
}
- {
GO: "golang:1.6", DATABASE: mysql, VERSION: 8.0, REFORM_DRIVER: mysql,
REFORM_ROOT_SOURCE: "root@/mysql",
REFORM_INIT_SOURCE: "root@/reform-database?parseTime=true&clientFoundRows=true&time_zone='UTC'&sql_mode='ANSI'&multiStatements=true",
REFORM_TEST_SOURCE: "root@/reform-database?parseTime=true&clientFoundRows=true&time_zone='America%2FNew_York'&sql_mode='TRADITIONAL'&interpolateParams=true"
}
- {
GO: "golang:1.6", DATABASE: sqlite3, VERSION: dummy, REFORM_DRIVER: sqlite3,
REFORM_ROOT_SOURCE: "/tmp/reform-database.sqlite3",
REFORM_INIT_SOURCE: "/tmp/reform-database.sqlite3",
REFORM_TEST_SOURCE: "/tmp/reform-database.sqlite3"
}
- {
GO: "golang:1.6", DATABASE: mssql, VERSION: latest, REFORM_DRIVER: mssql,
REFORM_ROOT_SOURCE: "server=localhost;user id=sa;password=reform-password123",
REFORM_INIT_SOURCE: "server=localhost;user id=sa;password=reform-password123;database=reform-database",
REFORM_TEST_SOURCE: "server=localhost;user id=sa;password=reform-password123;database=reform-database"
}
- {
GO: "golang:1.6", DATABASE: mssql, VERSION: latest, REFORM_DRIVER: sqlserver,
REFORM_ROOT_SOURCE: "sqlserver://sa:reform-password123@localhost",
REFORM_INIT_SOURCE: "sqlserver://sa:reform-password123@localhost?database=reform-database",
REFORM_TEST_SOURCE: "sqlserver://sa:reform-password123@localhost?database=reform-database"
}
- {
GO: "golang:1.7", DATABASE: postgres, VERSION: 9.2, REFORM_DRIVER: postgres,
REFORM_ROOT_SOURCE: "postgres://postgres@127.0.0.1/template1?sslmode=disable",
Expand Down
2 changes: 1 addition & 1 deletion .drone.yml.sig

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion .github/drone-gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ func main() {
flag.Parse()

goImages := []string{
"golang:1.6",
"golang:1.7",
"golang:1.8",
"golang:1.9",
Expand Down
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ env:
- TARGET=sqlite3

go:
- 1.6.x
- 1.7.x
- 1.8.x
- 1.9.x
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Note that for MySQL [`clientFoundRows=true`](https://github.com/go-sql-driver/my

## Quickstart

1. Make sure you are using Go 1.6+. Install or update `reform` package, `reform` and `reform-db` commands
1. Make sure you are using Go 1.7+. Install or update `reform` package, `reform` and `reform-db` commands
(see about versioning below):

```
Expand Down
4 changes: 2 additions & 2 deletions reform/version_check.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build !go1.6
// +build !go1.7

package main

Expand All @@ -8,5 +8,5 @@ import (
)

func init() {
log.Fatalf("reform requires Go 1.6+, but was compiled with %s.", runtime.Version())
log.Fatalf("reform requires Go 1.7+, but was compiled with %s.", runtime.Version())
}

0 comments on commit 17a8c3e

Please sign in to comment.