Skip to content
Snippets Groups Projects
Select Git revision
  • cb1f0038b696c9862ca83acc013aa394a7970657
  • master default protected
  • v1.22.9
  • v1.22.8
  • v1.22.7
  • v1.22.6
  • v1.22.5
  • v1.22.4
  • v1.22.3
  • v1.22.1
  • v1.22.0
  • v1.21.0
  • v1.20.5
  • v1.20.4
  • v1.20.3
  • v1.20.2
  • v1.20.1
  • v1.20.0
  • v1.19.0
  • v1.18.3
  • v1.18.2
  • v1.18.1
22 results

CONTRIBUTING.md

Blame
  • After you've reviewed these contribution guidelines, you'll be all set to contribute to this project.
    Makefile 916 B
    commit := $(shell git rev-parse --short HEAD)
    
    build: dist/go-httpbin
    
    dist/go-httpbin: assets cmd/go-httpbin/*.go httpbin/*.go
    	mkdir -p dist
    	go build -o dist/go-httpbin ./cmd/go-httpbin
    
    assets: httpbin/assets/*
    	go-bindata -o httpbin/assets/assets.go -pkg=assets -prefix=static static
    
    test: assets
    	go test ./...
    
    testcover: assets
    	mkdir -p dist
    	go test -coverprofile=dist/coverage.out github.com/mccutchen/go-httpbin/httpbin
    	go tool cover -html=dist/coverage.out
    
    run: build
    	./dist/go-httpbin
    
    clean:
    	rm -r dist
    
    deps:
    	go get -u github.com/jteeuwen/go-bindata/...
    
    image: assets cmd/go-httpbin/*.go httpbin/*.go
    	mkdir -p /tmp/go-httpbin-docker
    	cp Dockerfile /tmp/go-httpbin-docker
    	GOOS=linux GOARCH=amd64 go build -o /tmp/go-httpbin-docker/go-httpbin ./cmd/go-httpbin
    	docker build -t mccutchen/go-httpbin:$(commit) /tmp/go-httpbin-docker
    
    imagepush: image
    	docker push mccutchen/go-httpbin:$(commit)