Woodpecker is a community fork of the Drone CI system.
Find a file
Ivan Babrou 527d0cd5c2
Speedup local build iterations by reusing built packages
Before cold and hot runs are the same:

```
$ rm -rf $GOPATH/pkg
```

```
$ time make
go generate github.com/drone/drone/server/template
go generate github.com/drone/drone/store/datastore/ddl
go build --ldflags '-X github.com/drone/drone/version.VersionDev=' -o release/drone github.com/drone/drone/drone

real   	0m43.638s
user   	0m48.990s
sys    	0m5.480s
```

```
$ time make
go generate github.com/drone/drone/server/template
go generate github.com/drone/drone/store/datastore/ddl
go build --ldflags '-X github.com/drone/drone/version.VersionDev=' -o release/drone github.com/drone/drone/drone

real   	0m46.950s
user   	0m49.506s
sys    	0m6.086s
```

After hot builds are much faster:

```
$ rm -rf $GOPATH/pkg
```

```
$ rm -rf $GOPATH/pkg && time make
go generate github.com/drone/drone/server/template
go generate github.com/drone/drone/store/datastore/ddl
go install -ldflags '-X github.com/drone/drone/version.VersionDev=' github.com/drone/drone/drone
cp /Users/bobrik/projects/drone/bin/drone release/drone

real   	0m44.735s
user   	0m51.049s
sys    	0m4.517s
```

```
$ time make
go generate github.com/drone/drone/server/template
go generate github.com/drone/drone/store/datastore/ddl
go install -ldflags '-X github.com/drone/drone/version.VersionDev=' github.com/drone/drone/drone
cp /Users/bobrik/projects/drone/bin/drone release/drone

real   	0m3.364s
user   	0m2.934s
sys    	0m0.808s
```
2016-09-01 17:45:08 +01:00
.github refact yaml operations to yaml package 2016-04-19 13:02:28 -07:00
agent Merge pull request #1771 from bradrydzewski/master 2016-08-30 10:02:19 -07:00
build Adding the ability to label containers that are launched using 2016-08-13 14:38:37 -07:00
bus fully functioning build using 0.5 agents 2016-04-21 00:25:30 -07:00
cache replace UI with single page application (#1704) 2016-07-08 15:40:29 -07:00
client Fix URI encoding 2016-08-19 18:27:08 +01:00
drone Merge pull request #1762 from appleboy/patch-6 [CI SKIP] 2016-08-30 20:30:55 -07:00
model Separated repo and team secret models 2016-07-31 23:25:10 +02:00
queue fix a typo in queue.go 2016-05-11 18:53:48 +08:00
remote better coding 2016-08-30 00:06:35 -03:00
router Copied MustAdmin into MustTeamAdmin for now 2016-08-01 23:58:13 +02:00
server Fix a typo in reserved build params 2016-08-11 21:57:38 +03:00
shared refactoring github package to increase test coverage 2016-05-02 17:47:58 -07:00
store Moved merged secret list into store 2016-08-01 23:03:31 +02:00
stream added code to manage secrets 2016-04-23 04:27:28 -07:00
vendor updated vendored deps 2016-05-23 14:41:01 -07:00
version bump version number, auto-pull new plugins, process http_proxy vars 2016-05-12 22:14:33 -07:00
yaml Merge branch 'master' into add-container-labels 2016-08-30 18:44:33 -04:00
.dockerignore update yaml for s3 upload 2016-05-26 11:08:48 -07:00
.drone.yml replace UI with single page application (#1704) 2016-07-08 15:40:29 -07:00
.drone.yml.sig replace UI with single page application (#1704) 2016-07-08 15:40:29 -07:00
.gitignore replace UI with single page application (#1704) 2016-07-08 15:40:29 -07:00
Dockerfile fix go coding style by gofmt. 2016-08-14 12:25:45 +08:00
Dockerfile.arm64 update yaml for s3 upload 2016-05-26 11:08:48 -07:00
Dockerfile.armhf update yaml for s3 upload 2016-05-26 11:08:48 -07:00
Dockerfile.windows update yaml for s3 upload 2016-05-26 11:08:48 -07:00
LICENSE initial public commit 2014-02-07 03:10:01 -07:00
MAINTAINERS Update MAINTAINERS [CI SKIP] 2015-12-09 14:12:55 -08:00
Makefile Speedup local build iterations by reusing built packages 2016-09-01 17:45:08 +01:00
README.md remove outdated links to sassc [CI SKIP] 2016-07-21 17:02:59 -07:00

Build Status Release Status Gitter

Drone is a Continuous Integration platform built on container technology. Every build is executed inside an ephemeral Docker container, giving developers complete control over their build environment with guaranteed isolation.

Goals

Drone's prime directive is to help teams ship code like GitHub. Drone is easy to install, setup and maintain and offers a powerful container-based plugin system. Drone aspires to be an industry-wide replacement for Jenkins.

Documentation

Drone documentation is organized into several categories:

Documentation for 0.5 (unstable)

If you are using the 0.5 unstable release (master branch) please see the updated documentation:

Community, Help

Contributions, questions, and comments are welcomed and encouraged. Drone developers hang out in the drone/drone room on gitter. We ask that you please post your questions to gitter before creating an issue.

Installation

Please see our installation guide to install the official Docker image.

From Source

Clone the repository to your Go workspace:

git clone git://github.com/drone/drone.git $GOPATH/src/github.com/drone/drone
cd $GOPATH/src/github.com/drone/drone

Commands to build from source:

export GO15VENDOREXPERIMENT=1

make deps    # Download required dependencies
make gen     # Generate code
make build   # Build the binary

If you are having trouble building this project please reference its .drone.yml file. Everything you need to know about building Drone is defined in that file.