Skip to content
Permalink
Browse files

Fix go-bindata error in Travis build

Based on @sheenobu's work on #58
  • Loading branch information
thebaer committed Apr 6, 2019
1 parent 24b193d commit 8a9ef513fa276a67885b3fa67503030dae571bed
Showing with 17 additions and 0 deletions.
  1. +1 −0 .gitignore
  2. +2 −0 .travis.yml
  3. +14 −0 Makefile
@@ -3,6 +3,7 @@
*.swo

build
tmp
*.ini
*.db

@@ -5,3 +5,5 @@ go:

env:
- GO111MODULE=on

script: make ci
@@ -9,9 +9,13 @@ GOGET=$(GOCMD) get
BINARY_NAME=writefreely
DOCKERCMD=docker
IMAGE_NAME=writeas/writefreely
TMPBIN=./tmp

all : build

ci: ci-assets deps
cd cmd/writefreely; $(GOBUILD) -v -tags='sqlite'

build: assets deps
cd cmd/writefreely; $(GOBUILD) -v -tags='sqlite'

@@ -107,8 +111,18 @@ generate :
$(GOGET) -u github.com/jteeuwen/go-bindata/...; \
fi

$(TMPBIN):
mkdir -p $(TMPBIN)

$(TMPBIN)/go-bindata: deps $(TMPBIN)
$(GOBUILD) -o $(TMPBIN)/go-bindata github.com/jteeuwen/go-bindata/go-bindata

ci-assets : $(TMPBIN)/go-bindata
$(TMPBIN)/go-bindata -pkg writefreely -ignore=\\.gitignore schema.sql sqlite.sql

clean :
-rm -rf build
-rm -rf tmp
cd less/; $(MAKE) clean $(MFLAGS)

force_look :

0 comments on commit 8a9ef51

Please sign in to comment.
You can’t perform that action at this time.