github.com/mikejeuga/temperature-converter@v0.0.0-20220721135550-2cf6fcec7145/Makefile (about) 1 repo=$(shell basename "`pwd`") 2 TEST_DIR=$(realpath ./cmd/cli) 3 gopher: 4 @git init 5 @go mod init github.com/mikejeuga/$(repo) 6 @go mod tidy 7 @touch .gitignore 8 @go get -u github.com/gorilla/mux 9 @go install github.com/matryer/moq@latest 10 @go install github.com/alecthomas/assert/v2 11 @go get github.com/jackc/pgx 12 @go get golang-migrate/migrate 13 @go get github.com/spf13/viper 14 15 16 t: test 17 test: 18 @docker-compose -f docker-compose.yml up -d 19 @go test -v ./... 20 @docker-compose down 21 22 23 ut: unit-test 24 unit-test: 25 @go test -v -tags=unit ./... 26 27 at: acceptance-test 28 acceptance-test: 29 @docker-compose -f docker-compose.yml up -d 30 @go test -v -tags=acceptance ./... 31 @docker-compose down 32 33 c: commit 34 commit: 35 @git commit -am "$m" 36 @git pull --rebase 37 git push