diff --git a/.drone.yml b/.drone.yml index 8baa825..927546a 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,5 +1,6 @@ workspace: base: /go + path: src/gitea.meow.tf/tyler/deb-simple pipeline: dependencies: @@ -7,7 +8,6 @@ pipeline: commands: - mkdir /go/bin - curl https://glide.sh/get | sh - - cd src/gitea.meow.tf/tyler/deb-simple - glide install build-i386: image: golang:latest @@ -15,16 +15,16 @@ pipeline: commands: - ls /go/src - mkdir -p build/i386 - - GOOS=linux GOARCH=386 go build -o build/i386/deb-simple + - GOOS=linux GOARCH=386 go build -o build/i386/deb-simple gitea.meow.tf/tyler/deb-simple/main build-amd64: image: golang:latest group: build commands: - mkdir -p build/amd64 - - go build -o build/amd64/deb-simple + - go build -o build/amd64/deb-simple gitea.meow.tf/tyler/deb-simple/main build-armv7: image: golang:latest group: build commands: - mkdir -p build/armv7 - - GOOS=linux GOARCH=arm GOARM=7 go build -o build/armv7/deb-simple \ No newline at end of file + - GOOS=linux GOARCH=arm GOARM=7 go build -o build/armv7/deb-simple gitea.meow.tf/tyler/deb-simple/main \ No newline at end of file diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 1da6f1e..0000000 --- a/.travis.yml +++ /dev/null @@ -1,12 +0,0 @@ -language: go - -go: - - 1.5 -before_install: - - go get github.com/blakesmith/ar - - go get github.com/axw/gocov/gocov - - go get github.com/mattn/goveralls - - if ! go get github.com/golang/tools/cmd/cover; then go get golang.org/x/tools/cmd/cover; fi -script: - - $HOME/gopath/bin/goveralls -service=travis-ci - - go test -run=XXX -bench=. diff --git a/Makefile b/Makefile deleted file mode 100644 index ba47df6..0000000 --- a/Makefile +++ /dev/null @@ -1,10 +0,0 @@ -all: - go build -o deb-simple . - -install: - mkdir -p $(DESTDIR)/usr/bin - cp deb-simple $(DESTDIR)/usr/bin - chmod 755 $(DESTDIR)/usr/bin/deb-simple - -clean: - rm -f deb-simple \ No newline at end of file diff --git a/src/gitea.meow.tf/tyler/deb-simple/apt.go b/apt.go similarity index 99% rename from src/gitea.meow.tf/tyler/deb-simple/apt.go rename to apt.go index fed999d..9eae945 100644 --- a/src/gitea.meow.tf/tyler/deb-simple/apt.go +++ b/apt.go @@ -1,4 +1,4 @@ -package simple +package main import ( "os" diff --git a/src/gitea.meow.tf/tyler/deb-simple/config.go b/config.go similarity index 98% rename from src/gitea.meow.tf/tyler/deb-simple/config.go rename to config.go index 345c5f1..b8e9efd 100644 --- a/src/gitea.meow.tf/tyler/deb-simple/config.go +++ b/config.go @@ -1,4 +1,4 @@ -package simple +package main import ( "strings" diff --git a/src/gitea.meow.tf/tyler/deb-simple/deb/archive/archive.go b/deb/archive/archive.go similarity index 100% rename from src/gitea.meow.tf/tyler/deb-simple/deb/archive/archive.go rename to deb/archive/archive.go diff --git a/src/gitea.meow.tf/tyler/deb-simple/deb/release/release.go b/deb/release/release.go similarity index 100% rename from src/gitea.meow.tf/tyler/deb-simple/deb/release/release.go rename to deb/release/release.go diff --git a/src/gitea.meow.tf/tyler/deb-simple/deb/release/release_file.go b/deb/release/release_file.go similarity index 100% rename from src/gitea.meow.tf/tyler/deb-simple/deb/release/release_file.go rename to deb/release/release_file.go diff --git a/src/gitea.meow.tf/tyler/deb-simple/deb/release/release_test.go b/deb/release/release_test.go similarity index 100% rename from src/gitea.meow.tf/tyler/deb-simple/deb/release/release_test.go rename to deb/release/release_test.go diff --git a/src/gitea.meow.tf/tyler/deb-simple/deb/release/writer.go b/deb/release/writer.go similarity index 100% rename from src/gitea.meow.tf/tyler/deb-simple/deb/release/writer.go rename to deb/release/writer.go diff --git a/src/gitea.meow.tf/tyler/deb-simple/glide.lock b/glide.lock similarity index 100% rename from src/gitea.meow.tf/tyler/deb-simple/glide.lock rename to glide.lock diff --git a/src/gitea.meow.tf/tyler/deb-simple/glide.yaml b/glide.yaml similarity index 100% rename from src/gitea.meow.tf/tyler/deb-simple/glide.yaml rename to glide.yaml diff --git a/src/gitea.meow.tf/tyler/deb-simple/http.go b/http.go similarity index 99% rename from src/gitea.meow.tf/tyler/deb-simple/http.go rename to http.go index a99b1eb..738f9a2 100644 --- a/src/gitea.meow.tf/tyler/deb-simple/http.go +++ b/http.go @@ -1,4 +1,4 @@ -package simple +package main import ( "net/http" diff --git a/main.go b/main/main.go similarity index 100% rename from main.go rename to main/main.go diff --git a/src/gitea.meow.tf/tyler/deb-simple/packages.go b/packages.go similarity index 99% rename from src/gitea.meow.tf/tyler/deb-simple/packages.go rename to packages.go index 6cc68ec..94bdeab 100644 --- a/src/gitea.meow.tf/tyler/deb-simple/packages.go +++ b/packages.go @@ -1,4 +1,4 @@ -package simple +package main import ( "regexp" diff --git a/src/gitea.meow.tf/tyler/deb-simple/server.go b/server.go similarity index 99% rename from src/gitea.meow.tf/tyler/deb-simple/server.go rename to server.go index dd0b81a..840c0bc 100644 --- a/src/gitea.meow.tf/tyler/deb-simple/server.go +++ b/server.go @@ -1,4 +1,4 @@ -package simple +package main import ( "flag"