diff --git a/.goreleaser.yml b/.goreleaser.yml deleted file mode 100644 index 7e0ebae..0000000 --- a/.goreleaser.yml +++ /dev/null @@ -1,33 +0,0 @@ -project_name: ooniprobe -release: - github: - owner: ooni - name: probe-cli -brew: - install: bin.install "ooniprobe" -builds: -- goos: - - darwin - goarch: - - amd64 - main: cmd/ooni/main.go - binary: ooni -- goos: - - windows - goarch: - - amd64 - env: - - CC=x86_64-w64-mingw32-gcc - - CXX=x86_64-w64-mingw32-g++ - - CGO_ENABLED=1 - main: cmd/ooni/main.go - binary: ooni -archive: - format: tar.gz - name_template: '{{ .Binary }}_{{.Version}}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ - .Arm }}{{ end }}' - files: - - LICENSE.* - - Readme.* -snapshot: - name_template: SNAPSHOT-{{ .Commit }} diff --git a/Makefile b/Makefile deleted file mode 100644 index b0767ea..0000000 --- a/Makefile +++ /dev/null @@ -1,46 +0,0 @@ -GO ?= GOPATH="" go - -install-dev-deps: - @$(GO) get golang.org/x/tools/cmd/cover - @$(GO) get github.com/mattn/goveralls - -build: - @echo "Building dist/ooni" - @$(GO) build -o dist/ooni cmd/ooni/main.go -.PHONY: build - -build-windows: - @echo "Building dist/windows/amd64/ooni.exe" - @./build.sh windows - -build-linux: - @echo "Building dist/linux/amd64/ooni" - @./build.sh linux - -build-macos: - @echo "Building dist/macos/amd64/ooni" - @./build.sh macos - -build-all: build-windows build-linux build-macos -.PHONY: build-all build-windows build-linux build-macos - -bindata: - @$(GO) run vendor/github.com/shuLhan/go-bindata/go-bindata/*.go \ - -nometadata \ - -o internal/bindata/bindata.go -pkg bindata \ - data/...; - -release: - GITHUB_TOKEN=`cat ~/.GORELEASE_GITHUB_TOKEN` goreleaser --rm-dist - ./build.sh linux - mv dist/linux/amd64 dist/ooniprobe_$(git describe --tags | sed s/^v//)_linux_amd64 - tar cvzf dist/ooniprobe_$(git describe --tags | sed s/^v//)_linux_amd64.tar.gz \ - -C dist/ooniprobe_$(git describe --tags | sed s/^v//)_linux_amd64 \ - ooni - cd dist && shasum -a 256 ooniprobe_$(git describe --tags | sed s/^v//)_linux_amd64.tar.gz >> ooniprobe_checksums.txt - gpg -a --detach-sign dist/ooniprobe_checksums.txt - -test-internal: - @$(GO) test -v ./internal/... - -.PHONY: bindata