Commit graph

1405 commits

Author SHA1 Message Date
Brad Rydzewski
9c882c1a9e table-driven tests for badge permutations 2015-04-30 22:18:39 -07:00
Brad Rydzewski
acc6bb76ee minor restructuring 2015-04-30 21:20:59 -07:00
Brad Rydzewski
7ead6c82dd Merge remote-tracking branch 'upstream/bolt' into bolt 2015-04-30 21:09:02 -07:00
Brad Rydzewski
5660634c29 refactor datastore structure for consistency 2015-04-30 21:08:42 -07:00
Brad Rydzewski
0690a85bd3 Merge pull request #994 from benschumacher/testify-mocks
Alternative pattern for API unit tests (versus #991)
2015-04-30 21:07:21 -07:00
Brad Rydzewski
a0c7b3f768 organizing build file 2015-04-30 20:59:22 -07:00
Brad Rydzewski
4e61464225 removed some comments / dead code 2015-04-30 20:40:59 -07:00
Brad Rydzewski
3a4772cbe6 added favicon 2015-04-30 19:14:42 -07:00
Brad Rydzewski
779c1c06d3 agent endpoints now protected 2015-04-30 14:57:53 -07:00
Brad Rydzewski
0dc79e5886 page to get token for workers 2015-04-30 14:41:52 -07:00
Brad Rydzewski
6fcae7d80a hooks are protected with signed sha 2015-04-30 14:23:46 -07:00
Brad Rydzewski
64cc684295 added error message when cannot create repo 2015-04-30 11:01:46 -07:00
Brad Rydzewski
371a64ef6a hook honors branch filter 2015-04-30 10:39:16 -07:00
Brad Rydzewski
543a46a755 contacts agent to cancel build 2015-04-30 00:42:23 -07:00
Brad Rydzewski
3863617056 allow websocket connections cross-origin 2015-04-30 00:24:39 -07:00
Brad Rydzewski
77246cc9c9 hide build output when pending 2015-04-30 00:20:48 -07:00
Brad Rydzewski
ad80facbbd websocket output working 2015-04-29 19:57:43 -07:00
Brad Rydzewski
7a75a17535 ability to visit public repos when not authenticated 2015-04-29 16:08:21 -07:00
Brad Rydzewski
ca931cd9eb ability to persist agent data 2015-04-29 15:26:22 -07:00
Brad Rydzewski
4071ea73a0 removed commented code no longer used from datastore 2015-04-29 11:19:39 -07:00
Brad Rydzewski
f740bf91cf don't display logs when build is killed 2015-04-28 16:36:13 -07:00
Brad Rydzewski
7649248385 hooked up restart, cancel in user interface 2015-04-28 16:27:30 -07:00
Brad Rydzewski
864a47f502 added error messages to login flow 2015-04-28 16:08:20 -07:00
Brad Rydzewski
08527d5aea test cov for eventbus 2015-04-28 15:30:51 -07:00
Brad Rydzewski
b84943222b get netrc data when hook is triggering 2015-04-28 15:08:21 -07:00
Ben Schumacher
52b441527c Fix spelling mistake 2015-04-28 15:57:56 -06:00
Ben Schumacher
0e53778d22 Badge API tests 2015-04-28 15:42:09 -06:00
Brad Rydzewski
67a4e302c7 ability to get netrc from remote 2015-04-28 14:39:48 -07:00
Ben Schumacher
e033a1a4a5 Alternative pattern for API unit tests 2015-04-27 15:48:21 -06:00
Brad Rydzewski
6006699109 Merge pull request #988 from oliveiradan/bolt
Unit Test code for: bolt package
2015-04-27 13:29:15 -07:00
Daniel Oliveira
24a0d15281 solved SetBuildTask() test, properly populating Tasks 2015-04-27 12:34:33 -06:00
Daniel Oliveira
4ade23e8ac Merge remote-tracking branch 'upstream/bolt' into bolt 2015-04-27 10:41:25 -06:00
Brad Rydzewski
65105d06c2 queue polling not correctly handles client disconnect 2015-04-26 23:49:38 -07:00
Daniel Oliveira
4e53cc184e Merge remote-tracking branch 'upstream/bolt' into bolt 2015-04-25 22:40:36 -06:00
Brad Rydzewski
96b49cf0fc website subscribes to build events, update pages 2015-04-25 21:27:24 -07:00
Brad Rydzewski
8e6fbc8ceb fixed bindata build issues 2015-04-25 16:46:02 -07:00
Brad Rydzewski
712c18459f serving the index.html page from bindata 2015-04-25 16:43:51 -07:00
Brad Rydzewski
3b7c9738a3 ability to squash and embed static files 2015-04-25 16:16:56 -07:00
Daniel Oliveira
707b0e3e13 Merge remote-tracking branch 'upstream/bolt' into bolt 2015-04-24 18:21:19 -06:00
Daniel Oliveira
abc83303ee solve build.go conflict 2015-04-24 18:19:48 -06:00
Brad Rydzewski
a1f3b2da4d got websocket events working 2015-04-24 17:06:46 -07:00
Brad Rydzewski
da350989d3 fixed minor queue glitches 2015-04-24 14:25:03 -07:00
Brad Rydzewski
39e7ce9840 add error when removing item not exists 2015-04-23 16:32:46 -07:00
Brad Rydzewski
1d1dff0dcf added unit tests for queue 2015-04-23 16:22:23 -07:00
Daniel Oliveira
987e85f261 About this commit:
1. server/builds.go:92 used SetStatus(). Replaced with SetBuildStatus().
2. Added a index check in SetBuildTask() and return an error in case the tasks number is > than build.tasks size.
2015-04-23 13:39:36 -06:00
Daniel Oliveira
4edf385d1c About this commit:
1. server/builds.go:92 used SetStatus(). Replaced with SetBuildStatus().
2. Added a index check in SetBuildTask() and return an error in case the tasks number is > than build.tasks size.
2015-04-23 12:15:17 -06:00
Daniel Oliveira
0579df7584 repo_test.go conflict resolution 2015-04-23 11:28:03 -06:00
Daniel Oliveira
f74ca63359 Disabled SetBuildTask() test until we get the nil ptr crash addressed 2015-04-23 10:04:31 -06:00
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