Skip to content
Snippets Groups Projects
Select Git revision
  • e529fdc1d6800c7a47dad9b5d6a74ca067e544c9
  • master default protected
  • 1.31
  • 4.38.0
  • 4.37.2
  • 4.37.1
  • 4.37.0
  • 4.36.0
  • 4.35.0
  • 4.34.1
  • 4.34.0
  • 4.33.1
  • 4.33.0
  • 4.32.2
  • 4.32.1
  • 4.32.0
  • 4.31.0
  • 4.30.1
  • 4.30.0
  • 4.29.1
  • 4.29.0
  • 4.28.0
  • 4.27.0
23 results

translations.mjs

Blame
  • Makefile 918 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/kevinburke/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)