Commit graph

1357 commits

Author SHA1 Message Date
Daniel Oliveira
d13c1caebf About this commit:
1. server/builds.go:92 uses SetStatus().
2. The other APIs we talked about: Status(), StatusList(), we were able to move out.
3. The repo_del_test.go code merge into repo_test.go
4. Unit tests for the other build APIs added.
   - We are facing a crash in: github.com/drone/drone/datastore/bolt.(*DB).SetBuildTask(0xc208056080, 0x5e15d0, 0x15, 0x1, 0xc208036940, 0x0, 0x0)
     which seems to be related to the note in: build.go:207 (// TODO check index to prevent nil pointer / panic)
5. With these new tests we get over 86% plus test cover for bolt package.
2015-04-22 19:49:16 -06:00
Brad Rydzewski
c0f5aec77b Merge pull request #987 from benschumacher/cleanup-drone/drone#959
Fix error handling, remove unused bucketBuildTasks
2015-04-22 11:40:31 -07:00
Ben Schumacher
4362adf78b Fix error handling, remove unused bucketBuildTasks 2015-04-22 10:50:45 -06:00
Brad Rydzewski
d2776bc990 added code for remote queue plugin 2015-04-22 01:00:15 -07:00
Daniel Oliveira
6d5255aa75 Merge remote-tracking branch 'upstream/bolt' into bolt 2015-04-21 20:42:13 -06:00
Brad Rydzewski
b16759b0b6 code to inject private params 2015-04-21 15:48:48 -07:00
Brad Rydzewski
7a668b79c7 preparation for parsing build output to ansi format 2015-04-21 15:48:26 -07:00
Brad Rydzewski
79b83025a8 added cluster in place of pool, some other minor changes 2015-04-21 15:48:06 -07:00
Brad Rydzewski
0cd5dc1a5b Merge remote-tracking branch 'upstream/bolt' into bolt 2015-04-21 13:09:02 -07:00
Brad Rydzewski
85e17393fa some stubs for build config 2015-04-21 13:08:56 -07:00
Brad Rydzewski
f0ec8c33b6 Merge pull request #986 from oliveiradan/bolt
Unit Tests for: repo_test.go, task_test.go
2015-04-21 10:25:59 -07:00
Daniel Oliveira
3f2d72daf0 Code changes related to PR #986 and Issue #984. Comments deleted 2015-04-20 19:57:50 -06:00
Daniel Oliveira
09d5c6f011 Code changes related to PR #986 and Issue #984 2015-04-20 18:39:32 -06:00
Brad Rydzewski
2001719f7d Merge pull request #985 from benschumacher/bolt
Working on drone/drone#959
2015-04-20 15:56:17 -07:00
Ben Schumacher
38b939982a Working on drone/drone#959 2015-04-20 16:48:44 -06:00
Daniel Oliveira
627f8df98d Unit Tests for: repo_test.go, task_test.go 2015-04-20 15:01:48 -06:00
Brad Rydzewski
3520a295d5 added terminal highlight code 2015-04-16 22:16:32 -07:00
Brad Rydzewski
43381827b9 stubs for restarting, canceling builds 2015-04-16 22:07:13 -07:00
Brad Rydzewski
fd5a017384 added public key to repo settings 2015-04-16 15:15:05 -07:00
Brad Rydzewski
c4279678e8 only fetch logs if build finished 2015-04-16 15:05:00 -07:00
Brad Rydzewski
5f35f46c24 embedded task and status in build struct 2015-04-16 14:45:05 -07:00
Brad Rydzewski
110af2a196 using gravatar library instead of our own built-in func 2015-04-16 00:31:17 -07:00
Brad Rydzewski
433159e990 hook now calculates build matrix and creates appropriate tasks 2015-04-16 00:24:53 -07:00
Brad Rydzewski
5816f1156e add yaml parser, build execution code. not yet hooked up 2015-04-16 00:10:17 -07:00
Brad Rydzewski
cd18645784 contemplating nested storage of tasks and statuses 2015-04-15 23:45:24 -07:00
Brad Rydzewski
c324d66872 ability to pull list of orgs and verify membership 2015-04-15 00:20:00 -07:00
Brad Rydzewski
0c3f9e5bde REST cleanup. Idiomatic naming of datastore funcs 2015-04-14 22:04:38 -07:00
Brad Rydzewski
1ad5e3f597 repo subscriptions functioning in datastore w/ index 2015-04-13 21:39:05 -07:00
Brad Rydzewski
5e7c4e2573 cleaned up a couple of the db functions 2015-04-13 19:25:11 -07:00
Brad Rydzewski
aebacfccd7 fixed token expiration calculation 2015-04-13 19:11:33 -07:00
Brad Rydzewski
a40d20dcdb check token expiry 2015-04-13 19:07:05 -07:00
Brad Rydzewski
d1d762aa83 fail to generate user tokens if no secret 2015-04-13 18:43:21 -07:00
Brad Rydzewski
6c3f99065a ability to manage user tokens via website 2015-04-13 16:33:29 -07:00
Brad Rydzewski
768b6c7e48 removed User.Tokens temporary index 2015-04-13 16:00:13 -07:00
Brad Rydzewski
a50d972d8e push common index functions to util.go for reuse 2015-04-13 15:51:15 -07:00
Brad Rydzewski
57188ee4f2 ability to manage tokens 2015-04-13 01:22:51 -07:00
Brad Rydzewski
701626881e ability to create a token 2015-04-12 23:15:28 -07:00
Brad Rydzewski
54e4250df9 ability to limit (or not) the log output 2015-04-12 23:08:55 -07:00
Brad Rydzewski
66990a95b4 initial work on tokens 2015-04-12 22:32:32 -07:00
Brad Rydzewski
0f60073adc session tokens converging with user tokens 2015-04-12 21:35:16 -07:00
Brad Rydzewski
eda3cfbe4b added logging when login or hook fails. helps troubleshoot common issues 2015-04-11 15:46:30 -07:00
Brad Rydzewski
ab3df4bd65 added some initial code for build list. will revisit. 2015-04-10 23:11:41 -07:00
Brad Rydzewski
087f92f41f tokens, last build 2015-04-10 22:22:55 -07:00
Brad Rydzewski
840ea6d595 Merge pull request #970 from benschumacher/issue-drone/drone#969
Rework BoltDB util functions to use bolt.Tx instead of DB
2015-04-10 14:12:03 -07:00
Ben Schumacher
46114f1231 Rework BoltDB util functions to use bolt.Tx instead of DB along with updates to existing API that leverage these to use Bolt's transaction wrapping functions. 2015-04-10 15:01:03 -06:00
Brad Rydzewski
779a6b46ab Merge pull request #968 from benschumacher/bolt-drone/drone#959
Add sequencing logic into the InsertBuild and test
2015-04-10 09:45:43 -07:00
Ben Schumacher
7bff8b3185 Add sequencing logic into the InsertBuild and test 2015-04-10 10:14:02 -06:00
Brad Rydzewski
950e4f4090 storing user repos index inside users object, for now 2015-04-08 22:18:25 -07:00
Brad Rydzewski
fac0582b57 flag parse, load config, readme 2015-04-08 16:59:57 -07:00
Brad Rydzewski
c9edd1a018 source session secret from config file 2015-04-08 16:36:56 -07:00