Commit graph

1157 commits

Author SHA1 Message Date
Alvaro
4b59896f4c Fix the tests.
Not very elegant, but now the strings have an extra space to allow putting the options there.
2015-01-30 10:07:55 +02:00
Alvaro
a6caa67c6f Be able to force docker to update the tags 2015-01-30 09:10:19 +02:00
Brad Rydzewski
2f76696226 Merge pull request #857 from andy-g/list_view
Adding a list-view layout
2015-01-29 21:40:18 -08:00
Brad Rydzewski
9cc3f56ac7 Merge pull request #858 from epipho/inc-build-num-2
All builds now have a monotonically increasing build number (v2)
2015-01-28 21:48:50 -08:00
epipho
717bef75dd Adding test for get build number. Moved build number env build injection 2015-01-28 23:39:09 -05:00
epipho
5f8b026d14 All builds now have a per-repository monotonically increasing build number accessible via DRONE_BUILD_NUMBER
and CI_BUILD_NUMBER env variables.
2015-01-28 21:13:22 -05:00
Andy Gardner
5ea14a73af Adding a list-view layout 2015-01-28 14:15:20 +02:00
Brad Rydzewski
350d056d34 Merge pull request #832 from andy-g/live_commit_update
Make live updates to the commits (repo controller) without needing to reload
2015-01-26 22:40:46 -08:00
Brad Rydzewski
e6bcae2e1d Merge pull request #853 from Bugagazavr/gitlab-ouath
Refresh tokens before any requests to remote
2015-01-26 18:40:15 -08:00
Kirill Zaitsev
d225181a0f Refresh tokens before any requests to remote 2015-01-27 02:33:27 +03:00
Brad Rydzewski
9aa6c92e90 Merge pull request #847 from udzura/master
Getting github orgs more than 30
2015-01-26 15:07:33 -08:00
Uchio KONDO
6699770e76 Fix loop to be consistent with the others 2015-01-26 16:20:53 +09:00
Uchio KONDO
e4efc039c9 Merge remote-tracking branch 'origin/master' 2015-01-26 15:51:09 +09:00
Brad Rydzewski
7c13fdac79 Merge pull request #846 from Bugagazavr/gitlab-ouath
Gitlab oauth login
2015-01-25 22:42:14 -08:00
Brad Rydzewski
35acc48dd1 Merge pull request #848 from bradrydzewski/master
vendored flowdock dependency
2015-01-25 22:39:23 -08:00
Brad Rydzewski
6add452168 vendored flowdock dependency 2015-01-25 22:35:14 -08:00
Uchio KONDO
bcb8b17c32 Get github orgs over 30 2015-01-26 14:56:30 +09:00
Kirill Zaitsev
f47ab27702 Gitlab oauth login 2015-01-23 22:28:24 +03:00
Andy Gardner
8f93561f04 Merge branch 'master' into live_commit_update 2015-01-23 12:31:12 +02:00
Brad Rydzewski
44c5ca2b55 Merge pull request #845 from shawnzhu/npm
publish npm package if not exist on registry #799
2015-01-22 18:13:09 -08:00
Ke Zhu
25f1e24ce0 publish npm package if not exist on registry #799 2015-01-22 20:42:32 -05:00
Brad Rydzewski
46955db3bd Merge pull request #844 from andy-g/exclude_pr_from_branches
Exclude Pull Requests from the branches.
2015-01-22 09:00:08 -08:00
Andy Gardner
77e059ae98 Exclude Pull Requests from the branches.
Currently they are included because the AngularJS "filter" filter defaults to a substring match rather than a strict equality comparison, so filtering by '' includes everything.

https://docs.angularjs.org/api/ng/filter/filter
2015-01-22 11:33:10 +02:00
Andy Gardner
3e1b3c5871 Only live update for existing builds
The build message will only be displayed for new builds as the new item will not be auto updated, if the build has been auto-updated no build message will be displayed.
2015-01-22 10:53:10 +02:00
Brad Rydzewski
8408cfd055 Merge pull request #834 from shawnzhu/npm
npm publish only when version not exist
2015-01-21 20:09:42 -08:00
Brad Rydzewski
1ec5ac963d Merge pull request #843 from bradrydzewski/master
added apt-get update to yaml prior to installing packages
2015-01-21 07:52:52 -08:00
Brad Rydzewski
5c9b5f65b9 added apt-get update to yaml prior to installing packages 2015-01-21 07:40:27 -08:00
Ke Zhu
d860133d28 npm publish only when version not exist 2015-01-20 10:32:49 -05:00
Andy Gardner
217cf0bc23 Make live updates to the commits without needing to reload 2015-01-20 15:13:53 +02:00
Brad Rydzewski
c8ac57c2ba Merge pull request #827 from bradrydzewski/master
partial fix for issue #812
2015-01-16 22:17:23 -08:00
Brad Rydzewski
b8b01c2db4 partial fix for issue #812 2015-01-16 22:11:36 -08:00
Brad Rydzewski
b44bdd7ac7 Merge pull request #826 from mattbostock/per_plugin_registration
Per-remote open registration
2015-01-16 22:04:51 -08:00
Brad Rydzewski
3e8fdf0ea7 Merge pull request #788 from gregory90/docker-publish-pull
Always pull newest base image when using docker publish plugin
2015-01-16 21:40:41 -08:00
Brad Rydzewski
11e7ea7e15 Merge pull request #824 from orjanbruland/master
Use Slug instead of Name for Bitbucket repos.
2015-01-16 21:22:39 -08:00
Matt Bostock
c48c6ebc88 Remove capability package
It's no longer used. This commit can always be reverted later if it's
needed again.
2015-01-16 22:05:23 +00:00
Matt Bostock
307aed12bc Move open registration setting into remote plugins
...so that it's possible to enable or disable open registration on a
per-remote basis.

For example, the `DRONE_REGISTRATION_OPEN` environment variable now
becomes `DRONE_GITHUB_OPEN` when using GitHub as a remote.

The default for open registration in this commit is `false` (disabled),
which matches the existing behaviour.

This is useful if you need to support both public and private remotes,
e.g. GitHub.com and GitHub Enterprise, where you trust all of the
private users and want to allow open registration for those but would
not want all GitHub.com users to run builds on your server.

Tested with GitHub and GitLab.
2015-01-16 22:04:24 +00:00
Ørjan Bruland
570a23f952 Use Slug instead of Name for Bitbucket repos. 2015-01-16 17:36:56 +01:00
Brad Rydzewski
f79762177c Merge pull request #820 from dcarley/github_whitelist_orgs
Support org whitelists for GitHub+GHE remotes
2015-01-15 21:50:01 -08:00
Brad Rydzewski
2dba3c2309 Merge pull request #823 from bradrydzewski/master
fixed #822
2015-01-15 21:45:25 -08:00
Brad Rydzewski
5dd08030e3 fixed #822 2015-01-15 21:35:38 -08:00
Dan Carley
8fa473b07a Support org whitelists for GitHub+GHE remotes
Allow the GitHub and GitHub Enterprise remotes to restrict who can login
based on a user's organisation membership. This can be used as a safe
addition to open registration and also ensures that access is revoked when a
user is subsequently removed from the org. The default is not to restrict at
all.
2015-01-15 17:05:53 +00:00
Dan Carley
789adf90e4 Add test for GitHub remote Authorize()
To test that it correctly authorises a valid user, prior to me extending it.
This only tests the happy path because simulating oAuth failures is going
to be quite hard at this stage.
2015-01-15 14:54:27 +00:00
Dan Carley
a608f5ef82 Add test for GitHub remote GetOrgs() helper
I'm about to re-use this in another helper, so test that it works as
expected. Also fix the inline documentation which was copied from
`GetOrgRepos`.
2015-01-15 14:54:27 +00:00
Dan Carley
86b0329d57 Change org name in GitHub testdata
The example JSON taken from GitHub's API documentation doesn't indicate that
`login` is the name of an organisation rather than a user. Change it to
something that looks more like an org, because it will make a test that I'm
about to add more readable. The endpoint name changes accordingly.
2015-01-15 14:54:26 +00:00
Brad Rydzewski
f33b6efb74 Merge pull request #818 from bradrydzewski/master
fixed incorrect method for GetRepo in Drone client
2015-01-15 02:07:18 -08:00
Brad Rydzewski
768b299543 fixed incorrect method for GetRepo in Drone client 2015-01-15 00:22:33 -08:00
Brad Rydzewski
dac460f488 Merge pull request #813 from bradrydzewski/master
fixed dependency issue w/ gopkg.in
2015-01-13 23:36:38 -08:00
Brad Rydzewski
f209d126db fixed govet issue 2015-01-13 23:32:25 -08:00
Brad Rydzewski
27640db7a3 fixed dep in docker_test.go 2015-01-13 23:24:23 -08:00
Brad Rydzewski
97d80a43b7 fixed dep issue 2015-01-13 23:18:31 -08:00