Skip to content
This repository was archived by the owner on Jun 28, 2018. It is now read-only.

Commit 035c077

Browse files
authored
Merge pull request #231 from mattes/cli-updates
build cli with all source and database drivers
2 parents 1b48b97 + 0d9689a commit 035c077

File tree

4 files changed

+25
-2
lines changed

4 files changed

+25
-2
lines changed

Makefile

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
SOURCE ?= file go-bindata github
2-
DATABASE ?= postgres mysql
1+
SOURCE ?= file go-bindata github aws-s3 google-cloud-storage
2+
DATABASE ?= postgres mysql redshift
33
VERSION ?= $(shell git describe --tags 2>/dev/null | cut -c 2-)
44
TEST_FLAGS ?=
55
REPO_OWNER ?= $(shell cd .. && basename "$$(pwd)")
@@ -59,6 +59,8 @@ html-coverage:
5959
deps:
6060
-go get -v -u ./...
6161
-go test -v -i ./...
62+
# TODO: why is this not being fetched with the command above?
63+
-go get -u github.com/fsouza/fake-gcs-server/fakestorage
6264

6365

6466
list-external-deps:

cli/build_aws-s3.go

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// +build aws-s3
2+
3+
package main
4+
5+
import (
6+
_ "github.com/mattes/migrate/source/aws-s3"
7+
)

cli/build_google-cloud-storage.go

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// +build google-cloud-storage
2+
3+
package main
4+
5+
import (
6+
_ "github.com/mattes/migrate/source/google-cloud-storage"
7+
)

cli/build_ql.go

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// +build ql
2+
3+
package main
4+
5+
import (
6+
_ "github.com/mattes/migrate/database/ql"
7+
)

0 commit comments

Comments
 (0)