Commit graph

150 commits

Author SHA1 Message Date
Anbraten
b3d40024a9
Rename cmd agent and server folders and binaries (#330)
Renamed `cmd/drone-agent` to `cmd/agent` and `cmd/drone-server` to `cmd/server` and binaries to get rid of the drone name.
2021-09-21 17:06:13 +02:00
Anbraten
188b9e6eb5
Refactor cli (#329)
- move cli files from `cli/drone` to `cli/`
- move cli main to `cmd/cli/main.go` to match agent and server
- use version from `version/version.go` to match agent and server
2021-09-21 16:36:41 +02:00
mscherer
4e721c07cc
Fix docs/makefile after #284 got merged (#291) 2021-09-09 19:39:59 +02:00
6543
75513575be
Use go's vendoring (#284)
* store dependency's in git

* since we vendor ... rm tech-depts

* aad make target 'vendor' to update vendor folder (manual task)
2021-08-30 19:14:04 +02:00
ygbillet
2f222cea25
fix: Build server with correct option (#237)
We must build server with CGO_ENABLED=1 because of mattn/sqlite3.

Co-authored-by: Yves-Gaël BILLET <ygbillet@ifotec.com>
2021-06-30 17:17:54 +02:00
6543
d40a4a4b32
Enable go vet for ci (#230)
* enable go vet for ci

* fix vet issues

* move `./.cli.sh` into `make release-cli`
2021-06-22 13:26:37 +02:00
6543
b52ef5f270
ci: fix build (#231) 2021-06-22 13:12:26 +02:00
6543
bfc4aa8059
Enforce code format (#228)
* format .drone.yml & go code

* improve .editorconfig

* extend Makefile

* enforce go code format

* fix space

* update deps

* clean up
2021-06-22 12:34:35 +02:00
Laszlo Fogas
c7ebd68232 Relaced laszlocph/woodpecker with woodpecker-ci/woodpecker 2021-05-25 14:08:27 +02:00
Laszlo Fogas
ae3f59e274 Fixing tests 2021-02-19 10:17:29 +01:00
Laszlo Fogas
d3524d6541 Fixing tests 2021-02-19 09:57:34 +01:00
Laszlo Fogas
80ecd44a08 Fixing modules 2021-02-19 09:47:26 +01:00
Laszlo Fogas
5ea7098569 Go 1.16, go fmt, go modules update 2021-02-19 09:43:03 +01:00
Laszlo Fogas
8dee34878d Version is now a string coming from ldlags and git tags 2019-11-12 21:10:16 +01:00
Laszlo Fogas
61a14df51b Pull in frontend 2019-11-12 14:27:39 +01:00
mhmxs
1ffc4ded4e Solve race condition in fifo.process 2019-10-08 12:09:31 +02:00
mhmxs
b7a6e6bd37 Introduce docker builds in Makefile 2019-10-06 22:07:31 +02:00
mhmxs
7fd68a706e Create Makefile and targets to build project 2019-09-14 14:20:16 +02:00
Brad Rydzewski
48b20889da remove makefile 2017-05-13 10:03:38 +02:00
Brad Rydzewski
ccb28d0d74 commit embedded templates 2017-05-12 16:06:01 +02:00
Brad Rydzewski
cc530301fe drone exec should read secrets from env 2017-04-21 18:18:11 +02:00
Brad Rydzewski
a2440a0d46 update yaml for 0.6 2017-04-12 20:26:52 +02:00
Brad Rydzewski
6e735f28d8 ignore branch parse error 2017-03-16 19:00:56 +08:00
Brad Rydzewski
3631c4d4cd added log dep 2016-09-29 17:48:17 -04:00
Brad Rydzewski
2bb47ed7cb fix Makefile to pull drone/mq 2016-09-28 15:56:19 -04:00
Brad Rydzewski
a3d6aeeb97 fix how we copy the static binary to /release 2016-09-03 13:58:20 -05:00
Brad Rydzewski
5b88ee0124 Fix missing dir in makefile 2016-09-03 13:08:52 -05:00
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
Bo-Yi Wu
46dac1b9fc remove missing target in Makefile. 2016-08-07 00:02:19 +08:00
Brad Rydzewski
4d1df2924c replace UI with single page application (#1704) 2016-07-08 15:40:29 -07:00
Thomas Boerger
d239b27b40
Dropped directories from archive
Currently the archive gets created including the directories, so the
regular guide to just download and copy the binary doesn't work. With
that change I have dropped the folders from the archive and the Drone
binary gets directly into the toplevel of the archive.
2016-06-27 22:18:36 +02:00
Brad Rydzewski
c888fb3152 fix issue zipping windows binary 2016-05-26 11:49:16 -07:00
Brad Rydzewski
cfd5e076e8 Merge remote-tracking branch 'upstream/master'
# Conflicts:
#	Makefile
2016-05-26 11:28:02 -07:00
Brad Rydzewski
62ec7311a4 generate sha files 2016-05-26 11:17:24 -07:00
Brad Rydzewski
64785c8b47 update yaml for s3 upload 2016-05-26 11:08:48 -07:00
Rayan Makhmutov
4eb805b527 Use whitespace + $(null) instead of whitespace + # 2016-05-13 08:30:02 +05:00
Rayan Makhmutov
5d2bd8070c Fix Makefile build on OS X 2016-05-12 20:41:58 +05:00
Brad Rydzewski
e7aa94f875 store signature and verification in database 2016-05-10 18:48:02 -07:00
Brad Rydzewski
b5823d20ff chunk the yaml into sections 2016-04-19 18:37:53 -07:00
Brad Rydzewski
a8c50005b0 ability to revoke user tokens 2016-04-08 17:16:45 -07:00
Brad Rydzewski
e64ec7cf88 removing deprecated files 2016-03-30 00:58:18 -07:00
Brad Rydzewski
f9bba48e19 move version to package 2016-03-30 00:48:47 -07:00
Brad Rydzewski
688b29b639 backported 0.5 database restructure to 0.4.1 2016-03-25 12:54:16 -07:00
Brad Rydzewski
6b69913d82 fix database unit tests in Makefile 2015-11-11 14:52:29 -08:00
Brad Rydzewski
a13ce5cb6f correctly store build number in binary 2015-11-10 11:40:22 -08:00
Henrik Jonsson
8197942f69 Enable vendoring for github.com/go-swagger dependency
Building in a Docker container based on `golang` doesn't work at `427560a`: C.f 2d37d66e2d
2015-11-10 19:50:36 +01:00
Brad Rydzewski
2d37d66e2d temporarioly GO15VENDOREXPERIMENT when go getting the swagger package 2015-11-05 19:26:25 -08:00
Brad Rydzewski
832ae41fc6 updated docs 2015-10-26 10:41:07 -07:00
Brad Rydzewski
3c8c330656 added command line utility docs 2015-10-25 15:18:16 -07:00
Brad Rydzewski
2f071bb2cf re-enabled build feed 2015-10-21 16:39:43 -07:00