moved all remaining files under designated structure

This commit is contained in:
Brad Rydzewski 2015-05-17 14:25:04 -07:00
parent e3f0a39761
commit 30eed8723d
67 changed files with 974 additions and 29 deletions

View file

@ -6,6 +6,7 @@ VERSION := 0.4.0-alpha
all: concat bindata build all: concat bindata build
deps: deps:
go get github.com/jteeuwen/go-bindata/...
go get -t -v ./... go get -t -v ./...
test: test:
@ -13,8 +14,7 @@ test:
go test -cover -short ./... go test -cover -short ./...
build: build:
mkdir -p bin go build -o bin/drone -ldflags "-X main.revision $(SHA) -X main.version $(VERSION).$(SHA)" github.com/drone/drone/cmd/drone-server
go build -o bin/drone -ldflags "-X main.revision $(SHA) -X main.version $(VERSION).$(SHA)"
clean: clean:
find . -name "*.out" -delete find . -name "*.out" -delete
@ -22,20 +22,19 @@ clean:
rm -f bindata.go rm -f bindata.go
concat: concat:
cat server/static/scripts/drone.js \ cat cmd/drone-server/static/scripts/drone.js \
server/static/scripts/services/*.js \ cmd/drone-server/static/scripts/services/*.js \
server/static/scripts/filters/*.js \ cmd/drone-server/static/scripts/filters/*.js \
server/static/scripts/controllers/*.js \ cmd/drone-server/static/scripts/controllers/*.js \
server/static/scripts/term.js > server/static/scripts/drone.min.js cmd/drone-server/static/scripts/term.js > cmd/drone-server/static/scripts/drone.min.js
bindata_deps: # embeds all the static files directly
go get github.com/jteeuwen/go-bindata/... # into the drone binary file
bindata:
$$GOPATH/bin/go-bindata -o="cmd/drone-server/drone_bindata.go" cmd/drone-server/static/...
bindata_debug: bindata_debug:
$$GOPATH/bin/go-bindata --debug server/static/... $$GOPATH/bin/go-bindata --debug -o="cmd/drone-server/drone_bindata.go" cmd/drone-server/static/...
bindata:
$$GOPATH/bin/go-bindata server/static/...
# creates a debian package for drone # creates a debian package for drone
# to install `sudo dpkg -i drone.deb` # to install `sudo dpkg -i drone.deb`

View file

@ -8,15 +8,15 @@ import (
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
"github.com/drone/drone/pkg/remote/github" "github.com/drone/drone/pkg/remote/github"
"github.com/drone/drone/server" "github.com/drone/drone/pkg/server"
"github.com/drone/drone/server/session" "github.com/drone/drone/pkg/server/session"
"github.com/drone/drone/settings" "github.com/drone/drone/pkg/settings"
"github.com/elazarl/go-bindata-assetfs" "github.com/elazarl/go-bindata-assetfs"
eventbus "github.com/drone/drone/pkg/bus/builtin" eventbus "github.com/drone/drone/pkg/bus/builtin"
queue "github.com/drone/drone/pkg/queue/builtin" queue "github.com/drone/drone/pkg/queue/builtin"
runner "github.com/drone/drone/pkg/runner/builtin"
store "github.com/drone/drone/pkg/store/builtin" store "github.com/drone/drone/pkg/store/builtin"
runner "github.com/drone/drone/runner/builtin"
_ "net/http/pprof" _ "net/http/pprof"
) )
@ -175,14 +175,14 @@ func static() http.Handler {
return http.StripPrefix("/static/", http.FileServer(&assetfs.AssetFS{ return http.StripPrefix("/static/", http.FileServer(&assetfs.AssetFS{
Asset: Asset, Asset: Asset,
AssetDir: AssetDir, AssetDir: AssetDir,
Prefix: "server/static", Prefix: "cmd/drone-server/static",
})) }))
} }
// index is a helper function that will setup a template // index is a helper function that will setup a template
// for rendering the main angular index.html file. // for rendering the main angular index.html file.
func index() *template.Template { func index() *template.Template {
file := MustAsset("server/static/index.html") file := MustAsset("cmd/drone-server/static/index.html")
filestr := string(file) filestr := string(file)
return template.Must(template.New("index.html").Parse(filestr)) return template.Must(template.New("index.html").Parse(filestr))
} }

File diff suppressed because one or more lines are too long

View file

Before

Width:  |  Height:  |  Size: 557 B

After

Width:  |  Height:  |  Size: 557 B

View file

Before

Width:  |  Height:  |  Size: 3.4 KiB

After

Width:  |  Height:  |  Size: 3.4 KiB

1
docs/install-docker.md Normal file
View file

@ -0,0 +1 @@
install-docker.md

1
docs/install-source.md Normal file
View file

@ -0,0 +1 @@
install-source.md

1
docs/install-ubuntu.md Normal file
View file

@ -0,0 +1 @@
install.md

1
docs/setup-bitbucket.md Normal file
View file

@ -0,0 +1 @@
setup-bitbucket.md

1
docs/setup-database.md Normal file
View file

@ -0,0 +1 @@
setup-database.md

1
docs/setup-github.md Normal file
View file

@ -0,0 +1 @@
github.md

1
docs/setup-gitlab.md Normal file
View file

@ -0,0 +1 @@
setup-gitlab.md

1
docs/setup.md Normal file
View file

@ -0,0 +1 @@
setup.md

View file

@ -5,8 +5,8 @@ import (
"net/http" "net/http"
"net/rpc" "net/rpc"
"github.com/drone/drone/pkg/settings"
common "github.com/drone/drone/pkg/types" common "github.com/drone/drone/pkg/types"
"github.com/drone/drone/settings"
) )
// Client communicates with a Remote plugin using the // Client communicates with a Remote plugin using the

View file

@ -9,8 +9,8 @@ import (
"strings" "strings"
"time" "time"
"github.com/drone/drone/pkg/settings"
common "github.com/drone/drone/pkg/types" common "github.com/drone/drone/pkg/types"
"github.com/drone/drone/settings"
"github.com/hashicorp/golang-lru" "github.com/hashicorp/golang-lru"
"github.com/google/go-github/github" "github.com/google/go-github/github"

View file

@ -9,7 +9,7 @@ import (
"net/url" "net/url"
"strings" "strings"
"github.com/drone/drone/common/oauth2" "github.com/drone/drone/pkg/oauth2"
"github.com/google/go-github/github" "github.com/google/go-github/github"
"github.com/gorilla/securecookie" "github.com/gorilla/securecookie"
) )

View file

@ -8,9 +8,9 @@ import (
"testing" "testing"
"github.com/drone/drone/pkg/ccmenu" "github.com/drone/drone/pkg/ccmenu"
"github.com/drone/drone/pkg/server/recorder"
"github.com/drone/drone/pkg/store/mock" "github.com/drone/drone/pkg/store/mock"
common "github.com/drone/drone/pkg/types" common "github.com/drone/drone/pkg/types"
"github.com/drone/drone/server/recorder"
. "github.com/franela/goblin" . "github.com/franela/goblin"
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"

View file

@ -9,7 +9,7 @@ import (
"github.com/ungerik/go-gravatar" "github.com/ungerik/go-gravatar"
log "github.com/Sirupsen/logrus" log "github.com/Sirupsen/logrus"
"github.com/drone/drone/common/oauth2" "github.com/drone/drone/pkg/oauth2"
common "github.com/drone/drone/pkg/types" common "github.com/drone/drone/pkg/types"
"github.com/drone/drone/pkg/utils/httputil" "github.com/drone/drone/pkg/utils/httputil"
) )

View file

@ -9,11 +9,11 @@ import (
"github.com/drone/drone/pkg/bus" "github.com/drone/drone/pkg/bus"
"github.com/drone/drone/pkg/queue" "github.com/drone/drone/pkg/queue"
"github.com/drone/drone/pkg/remote" "github.com/drone/drone/pkg/remote"
"github.com/drone/drone/pkg/runner"
"github.com/drone/drone/pkg/server/session"
"github.com/drone/drone/pkg/settings"
"github.com/drone/drone/pkg/store" "github.com/drone/drone/pkg/store"
common "github.com/drone/drone/pkg/types" common "github.com/drone/drone/pkg/types"
"github.com/drone/drone/runner"
"github.com/drone/drone/server/session"
"github.com/drone/drone/settings"
) )
func SetQueue(q queue.Queue) gin.HandlerFunc { func SetQueue(q queue.Queue) gin.HandlerFunc {

View file

@ -6,8 +6,8 @@ import (
"time" "time"
"github.com/dgrijalva/jwt-go" "github.com/dgrijalva/jwt-go"
"github.com/drone/drone/pkg/settings"
common "github.com/drone/drone/pkg/types" common "github.com/drone/drone/pkg/types"
"github.com/drone/drone/settings"
) )
type Session interface { type Session interface {

View file

@ -8,9 +8,9 @@ import (
"net/http" "net/http"
"testing" "testing"
"github.com/drone/drone/pkg/server/recorder"
"github.com/drone/drone/pkg/store/mock" "github.com/drone/drone/pkg/store/mock"
common "github.com/drone/drone/pkg/types" common "github.com/drone/drone/pkg/types"
"github.com/drone/drone/server/recorder"
. "github.com/franela/goblin" . "github.com/franela/goblin"
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
) )