aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Mills <prologic@shortcircuit.net.au>2018-12-31 23:23:50 +1000
committerJames Mills <prologic@shortcircuit.net.au>2018-12-31 23:24:17 +1000
commit57877cbafa1a62d90f1db81796348a09e82f9ff7 (patch)
tree7b111deb903644e3d55caf1355595df76224eb4e
parentAdd related projects to README (diff)
downloadgopherproxy-57877cbafa1a62d90f1db81796348a09e82f9ff7.tar.gz
gopherproxy-57877cbafa1a62d90f1db81796348a09e82f9ff7.tar.bz2
gopherproxy-57877cbafa1a62d90f1db81796348a09e82f9ff7.zip
Migrate to Drone CI, Codecov and Go11Modules
-rw-r--r--.drone.yml22
-rw-r--r--.gitignore2
-rw-r--r--.goreleaser.yml (renamed from goreleaser.yml)0
-rw-r--r--.travis.yml10
-rw-r--r--Makefile14
-rw-r--r--README.md11
-rw-r--r--go.mod6
-rw-r--r--go.sum9
8 files changed, 56 insertions, 18 deletions
diff --git a/.drone.yml b/.drone.yml
new file mode 100644
index 0000000..0065a03
--- /dev/null
+++ b/.drone.yml
@@ -0,0 +1,22 @@
1kind: pipeline
2name: default
3
4steps:
5 - name: build
6 image: golang:latest
7 commands:
8 - make test
9
10 - name: coverage
11 image: plugins/codecov
12 settings:
13 token:
14 from_secret: codecov-token
15
16 - name: notify
17 image: plugins/webhook
18 urls: https://msgbus.mills.io/ci.mills.io
19 when:
20 status:
21 - success
22 - failure
diff --git a/.gitignore b/.gitignore
index 4e35f8a..32c3689 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,4 +1,6 @@
1*~ 1*~
2dist 2dist
3*.bak 3*.bak
4coverage.txt
5
4gopherproxy 6gopherproxy
diff --git a/goreleaser.yml b/.goreleaser.yml
index 8376981..8376981 100644
--- a/goreleaser.yml
+++ b/.goreleaser.yml
diff --git a/.travis.yml b/.travis.yml
deleted file mode 100644
index 8763a71..0000000
--- a/.travis.yml
+++ /dev/null
@@ -1,10 +0,0 @@
1language: go
2sudo: false
3go:
4 - tip
5before_install:
6 - go get github.com/mattn/goveralls
7script:
8 - $HOME/gopath/bin/goveralls -service=travis-ci
9after_success:
10 - test -n "$TRAVIS_TAG" && curl -sL https://git.io/goreleaser | bash
diff --git a/Makefile b/Makefile
index 6fef3e6..12850e1 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
1.PHONY: dev build clean 1.PHONY: dev build profile bench test clean
2 2
3all: dev 3all: dev
4 4
@@ -6,8 +6,16 @@ dev: build
6 ./gopherproxy -bind 127.0.0.1:8000 6 ./gopherproxy -bind 127.0.0.1:8000
7 7
8build: clean 8build: clean
9 go get ./...
10 go build -o ./gopherproxy ./cmd/gopherproxy/main.go 9 go build -o ./gopherproxy ./cmd/gopherproxy/main.go
11 10
11profile:
12 @go test -cpuprofile cpu.prof -memprofile mem.prof -v -bench .
13
14bench:
15 @go test -v -bench .
16
17test:
18 @go test -v -race -cover -coverprofile=coverage.txt -covermode=atomic .
19
12clean: 20clean:
13 rm -rf gopherproxy 21 @git clean -f -d -X
diff --git a/README.md b/README.md
index a647414..7215e2b 100644
--- a/README.md
+++ b/README.md
@@ -1,9 +1,10 @@
1# Gopher (RFC 1436) Web Proxy 1# Gopher (RFC 1436) Web Proxy
2[![Build Status](https://travis-ci.org/prologic/gopherproxy.svg)](https://travis-ci.org/prologic/gopherproxy) 2
3[![GoDoc](https://godoc.org/github.com/prologic/gopherproxy?status.svg)](https://godoc.org/github.com/prologic/gopherproxy) 3[![Build Status](https://cloud.drone.io/api/badges/prologic/gopherproxy/status.svg)](https://cloud.drone.io/prologic/gopherproxy)
4[![Wiki](https://img.shields.io/badge/docs-wiki-blue.svg)](https://github.com/prologic/gopherproxy/wiki) 4[![CodeCov](https://codecov.io/gh/prologic/gopherproxy/branch/master/graph/badge.svg)](https://codecov.io/gh/prologic/gopherproxy)
5[![Go Report Card](https://goreportcard.com/badge/github.com/prologic/gopherproxy)](https://goreportcard.com/report/github.com/prologic/gopherproxy) 5[![Go Report Card](https://goreportcard.com/badge/prologic/gopherproxy)](https://goreportcard.com/report/prologic/gopherproxy)
6[![Coverage](https://coveralls.io/repos/prologic/gopherproxy/badge.svg)](https://coveralls.io/r/prologic/gopherproxy) 6[![GoDoc](https://godoc.org/github.com/prologic/gopherproxy?status.svg)](https://godoc.org/github.com/prologic/gopherproxy)
7[![Sourcegraph](https://sourcegraph.com/github.com/prologic/gopherproxy/-/badge.svg)](https://sourcegraph.com/github.com/prologic/gopherproxy?badge)
7 8
8gopherproxy is a Gopher (RFC 1436) Web Proxy that acts as a gateway into Gopherspace 9gopherproxy is a Gopher (RFC 1436) Web Proxy that acts as a gateway into Gopherspace
9by proxying standard Web HTTP requests to Gopher requests of the target server. 10by proxying standard Web HTTP requests to Gopher requests of the target server.
diff --git a/go.mod b/go.mod
new file mode 100644
index 0000000..fa60472
--- /dev/null
+++ b/go.mod
@@ -0,0 +1,6 @@
1module github.com/prologic/gopherproxy
2
3require (
4 github.com/prologic/go-gopher v0.0.0-20181230133552-0c68ed5f58b0
5 github.com/temoto/robotstxt v0.0.0-20180810133444-97ee4a9ee6ea
6)
diff --git a/go.sum b/go.sum
new file mode 100644
index 0000000..3474014
--- /dev/null
+++ b/go.sum
@@ -0,0 +1,9 @@
1github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
2github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
3github.com/prologic/go-gopher v0.0.0-20181230133552-0c68ed5f58b0 h1:10LO/S8HVjIuEHsHea//Cena1Ztgy23f/e8HFC0w5ow=
4github.com/prologic/go-gopher v0.0.0-20181230133552-0c68ed5f58b0/go.mod h1:LiuwIXz4es4YIUOD6yRv8mES9n9dFbe4z0+TcrLkhXg=
5github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs=
6github.com/temoto/robotstxt v0.0.0-20180810133444-97ee4a9ee6ea h1:hH8P1IiDpzRU6ZDbDh/RDnVuezi2oOXJpApa06M0zyI=
7github.com/temoto/robotstxt v0.0.0-20180810133444-97ee4a9ee6ea/go.mod h1:aOux3gHPCftJ3KHq6Pz/AlDjYJ7Y+yKfm1gU/3B0u04=
8golang.org/x/net v0.0.0-20181220203305-927f97764cc3 h1:eH6Eip3UpmR+yM/qI9Ijluzb1bNv/cAU/n+6l8tRSis=
9golang.org/x/net v0.0.0-20181220203305-927f97764cc3/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=