Skip to content

Commit

Permalink
Update Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
abericyang@gmail.com committed May 14, 2019
1 parent 28f0c9d commit 8c02523
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,15 +1,22 @@
PKGSWITHOUTEXAMPLES := $(shell go list ./... | grep -v 'examples/\|utils/')
GO_FILES := $(shell find . -name "*.go" -not -path "./vendor/*" -not -path ".git/*" -print0 | xargs -0)

export SQLName=some-mysql
export DBUrl=localhost:3306
export SQLName=circle_test
export DBUser=root
export DBPass=my-secret-pw
export DBName=1
export DBName=mysql
checkTravis:export DB_PORT=33061
checkTravis:export DB_URL=127.0.0.1:${DB_PORT}
checkTravis:export DB_PASS=secret
checkCircle:export DB_PORT=3306
checkCircle:export DB_URL=127.0.0.1:${DB_PORT}
checkCircle:export DB_PASS=
checkLocal:export DB_PORT=3306
checkLocal:export DB_URL=127.0.0.1:${DB_PORT}
checkLocal:export DB_PASS=secret

checkTravis: start overalls vet lint misspell staticcheck cyclo const veralls test end

checkCircle: start overalls vet lint misspell staticcheck cyclo const test end
checkCircle: wright consul overalls vet lint misspell staticcheck cyclo const test end

checkLocal: start overalls vet lint misspell staticcheck cyclo const end

Expand All @@ -23,7 +30,7 @@ end:

mysql:
@echo "docker run mysql"
docker run --name ${SQLName} -e MYSQL_ROOT_PASSWORD=${DBPass} -d -p 3306:3306 mysql:5.7.26
docker run --name ${SQLName} -e MYSQL_ROOT_PASSWORD=${DB_PASS} -d -p ${DBPort}:3306 mysql:5.7.26

consul:
@echo "consul"
Expand Down

0 comments on commit 8c02523

Please sign in to comment.