Commit graph

437 commits

Author SHA1 Message Date
Brad Rydzewski
e6cb22f190 migration to discussed data model in #1066 2015-06-22 20:45:08 -07:00
Brad Rydzewski
2b269d0e54 updated repo struct 2015-06-18 18:50:57 -07:00
Brad Rydzewski
564e029c17 refactor task to job 2015-06-18 17:36:52 -07:00
Brad Rydzewski
64715c390c updated user object 2015-06-18 16:37:40 -07:00
Brad Rydzewski
dc0e714992 loading database via driver 2015-06-14 23:26:49 -07:00
Brad Rydzewski
ef6b621f7f Merge remote-tracking branch 'origin/0.4.0' into 0.4.0 2015-06-13 18:42:29 -07:00
Brad Rydzewski
06d1f1b8d4 remove meddler from all sql 2015-06-13 18:40:07 -07:00
Brad Rydzewski
ed0cae98a2 removed ref to old package in tests 2015-06-13 17:51:55 -07:00
Brad Rydzewski
1f0c249c82 migrated star to auto-gen sql 2015-06-13 17:49:21 -07:00
Brad Rydzewski
771f1cf606 migrated more files to generated sql 2015-06-13 17:37:36 -07:00
Brad Rydzewski
dddc1dd84c using auto-gen sql utility 2015-06-13 16:48:06 -07:00
Jean Mertz
8dfb9cfcd7 ignore GH "push" event when ref is deleted 2015-06-11 19:17:14 +02:00
Brad Rydzewski
b00b46914d ignore non-open pull requests 2015-06-08 08:42:45 -07:00
Brad Rydzewski
13a05a0106 set commit status for all commits in GH, not just pull requests 2015-06-08 08:26:58 -07:00
Brad Rydzewski
e935bed53e removed leftover constraint that no longer means anything 2015-06-07 23:02:27 -07:00
Brad Rydzewski
70a9a588ba refactor to enable multiple builtin remote plugins 2015-06-07 19:48:36 -07:00
Brad Rydzewski
f76dcb1171 enforce plugin whitelist for notifications 2015-06-07 17:26:25 -07:00
Brad Rydzewski
906bbe9cc5 enforce plugin whitelist 2015-06-07 17:04:57 -07:00
Ben Schumacher
33666d71a0 Finish removal of pkg/settings 2015-05-29 23:11:49 -06:00
Ben Schumacher
8062df6766 Remove unused pkg/settings 2015-05-29 23:00:01 -06:00
Ben Schumacher
145d88f39b Fix tests, update README.md 2015-05-29 23:00:01 -06:00
Ben Schumacher
42896b3711 Replace pkg/settings with pkg/config 2015-05-29 23:00:01 -06:00
Brad Rydzewski
33b4a02787 more density on env var page 2015-05-28 15:31:02 -07:00
Brad Rydzewski
d36af9f646 auto save when repo form data is changed 2015-05-26 23:25:47 -07:00
Brad Rydzewski
35d604659a moved to Godep with path rewrite 2015-05-22 11:37:40 -07:00
Brad Rydzewski
d0930f42cf fixed styling 2015-05-21 17:00:31 -07:00
Brad Rydzewski
8c655d600d provides a way to white-list plugins at a global config level 2015-05-19 23:19:59 -07:00
Brad Rydzewski
f3c06a8fc3 global environment parameters 2015-05-19 21:22:31 -07:00
Ben Schumacher
6e7326e7b2 Adding tests for DelToken in pkg/server/token.go 2015-05-19 13:46:19 -06:00
Brad Rydzewski
87f0efaeab fixed failing test. removed unused /incorrect plugin package 2015-05-18 23:20:12 -07:00
Brad Rydzewski
e09f02db9e remote agent now working and tested 2015-05-18 21:53:34 -07:00
Brad Rydzewski
7aedd78015 remote agent can now pull builds and push results 2015-05-18 20:44:44 -07:00
Brad Rydzewski
bb6ab45700 Merge remote-tracking branch 'upstream/0.4.0' into 0.4.0 2015-05-18 15:47:38 -07:00
Brad Rydzewski
88d0cdbaf0 code re-enables build agents. needs to be more thoroughly tested 2015-05-18 15:47:13 -07:00
Brad Rydzewski
d5e279143e Merge pull request #1020 from CiscoCloud/token-api-test
Unit tests for PostToken API
2015-05-18 11:52:01 -07:00
Ben Schumacher
d40a65b6a3 Update test to reflect current behavior 2015-05-18 12:46:08 -06:00
Ben Schumacher
a5c62fc572 Drop settings in PostToken -- it isn't needed 2015-05-18 12:42:00 -06:00
Ben Schumacher
f9f2fdc2c8 Unit tests for PostToken API 2015-05-18 12:07:48 -06:00
Brad Rydzewski
50ab7309a7 removed dead comment code 2015-05-17 23:19:33 -07:00
Brad Rydzewski
a14d21f5b9 improved streaming w/ websocket. potential for auto re-connect, resume 2015-05-17 23:07:10 -07:00
Brad Rydzewski
73ed4f08d5 moved to central copy function 2015-05-17 19:25:53 -07:00
Brad Rydzewski
30eed8723d moved all remaining files under designated structure 2015-05-17 14:25:04 -07:00
Brad Rydzewski
e3f0a39761 moving more data under pkg dir 2015-05-17 13:51:42 -07:00
Brad Rydzewski
40a9543c0c moving remote pkg per new multi-binary structure 2015-05-17 11:45:09 -07:00
Brad Rydzewski
137fb62e85 moving queue package 2015-05-17 11:42:56 -07:00
Brad Rydzewski
f58b48d329 moved yaml parsing to yaml package 2015-05-17 11:36:12 -07:00
Brad Rydzewski
4c847296d4 refactoring toward multi-binary project layout 2015-05-17 11:10:43 -07:00
Brad Rydzewski
e8a39a3b14 moving config code 2015-05-16 17:48:08 -07:00
Brad
ce44ddfeca pushing my local branch 2014-06-04 14:25:38 -07:00
Martin Charles
c6930ef57b Fixed an Unhandled Error in badges.go
There was an unhandled error in badges.go. If you pass an invalid
branch to the badge handler (http://beta.drone.io/github.com/drone/drone/
status.svg?branch=this) the browser is told to redirect to a blank string.
This is unintended behavior. Now, a 404 response is sent instead.
2014-06-02 12:44:27 -04:00
kibao
632b61adbf Update buildscript for old builds 2014-05-29 18:57:20 +02:00
Michael Nutt
ff98d74731 always specify a branch when rebuilding 2014-05-23 13:23:43 -04:00
Michael Nutt
fbdb330d5c add rebuild button for users who have admin access to the repo 2014-05-22 23:52:03 -04:00
Michael Nutt
913332d965 save drone.yml on the build 2014-05-22 23:16:01 -04:00
Matt Martz
d3448badd6 Make target optional in the swift publish plugin
This allows uploading a directory to the root of a container. If
uploading a file and you do not specify a target, nothing will actually
be uploaded.
2014-05-21 11:53:51 -05:00
Brad Rydzewski
4d22c5f6e4 Merge pull request #303 from fudanchii/fix-handler
Fix RepoHandler
2014-05-07 14:44:26 -07:00
Nurahmadie
87c762f222 Add -r flag to enable recursive scp 2014-05-07 03:40:42 +07:00
Nurahmadie
113f4917ff Increase fixtures number assertion for user test 2014-05-07 00:59:21 +07:00
Ke Zhu
0ee9b163b9 correct npm publish logic 2014-05-04 22:05:24 -04:00
Ke Zhu
d77b3209b0 update npm login method 2014-05-04 21:48:03 -04:00
Ke Zhu
d0628bbe7b support publishing to npm 2014-05-04 16:06:18 -04:00
Matt Martz
509d0ec23b Add the ability to restrict publish plugins to a specific branch 2014-05-01 12:59:45 -05:00
Matt Martz
4686cfeccc Support custom PyPI repositories 2014-04-29 15:11:06 -05:00
Nurahmadie
27c770e097 Fix RepoHandler 2014-04-29 19:48:45 +07:00
Ke Zhu
b009768e41 automatically install cf tool to resolve issue #193 2014-04-21 00:07:48 -04:00
Ke Zhu
25f167b34a make space and organization optional 2014-04-20 10:35:50 -04:00
Ke Zhu
a0fce08fc3 Merge branch 'deploy-to-cf' of github.com:shawnzhu/drone into deploy-to-cf 2014-04-20 10:34:30 -04:00
Andrew Davidson
6e3814a0cb use short hash 2014-04-18 10:08:31 -07:00
Andrew Davidson
2a90a2c8a8 update email notification subject 2014-04-17 18:14:13 -07:00
Brad Rydzewski
cf19e1c47d Merge pull request #275 from macb/bugfix/github_slack_urls
Correct url building for branch query.
2014-04-17 16:02:26 -07:00
Mac Browning
4fef8ad7d4 Correct url building for branch query. Fixes drone/drone#265 2014-04-17 18:57:13 -04:00
Simon Menke
0c6c0dfbbc Split Github and Bitbucket hook handlers
See #2 #232
2014-04-17 09:55:23 +02:00
Alexandre Butynski
cd3888a453 Use the good input type in the login form
This is in order to display the good keyboard in all devices
2014-04-11 23:00:30 +02:00
Nurahmadie
aac0a8830f Merge branch 'mgt' into mt 2014-04-10 17:02:41 +00:00
Nurahmadie
1736716baa Migration tests for mysql
invoke:
    export DB_ENV=mysql
    export MYSQL_LOGIN='root:psswd@/'
    go test -v github.com/drone/drone/pkg/database/migrate/testing
2014-04-10 16:59:06 +00:00
Brad Rydzewski
82843d7342 Merge pull request #247 from vito/branch-commits
add branch query parameter to commit view
2014-04-09 10:15:26 -07:00
Mark Steve Samson
6cfecc13d9 Add build links to Slack notifications 2014-04-09 17:39:23 +08:00
Brad Rydzewski
2838997eb1 Merge pull request #249 from marksteve/notify-slack
Slack notification  #200
2014-04-07 22:55:41 -07:00
Mark Steve Samson
cecbbbbc76 Minor message change 2014-04-08 09:08:51 +08:00
Alex Suraci
055ed199a1 use query parameter for commit branch 2014-04-06 15:03:51 -07:00
Alex Suraci
10c3c8108e Revert "Revert "query and show commits by branch""
This reverts commit 7d52a4c4df.
2014-04-06 13:54:09 -07:00
Marcus Ramberg
45324bc65a Slack uses markdown, not html 2014-04-06 22:04:13 +02:00
Nurahmadie
202ea95368 Move testing related code 2014-04-06 15:04:38 +00:00
Nurahmadie
fe58917a7c Add stub for mysql test at migration 2014-04-06 15:04:37 +00:00
Nurahmadie
b9111a3f44 Add test for mysql 2014-04-06 15:04:36 +00:00
Marcus Ramberg
68c7342cbf Expose error message when payload cannot be parsed 2014-04-06 14:34:11 +02:00
vagrant
d7338cfdb2 It builds 2014-04-06 09:05:30 +00:00
Brad Rydzewski
0c9a765956 Merge pull request #237 from fudanchii/gitlab
Gitlab integration support
2014-04-04 18:05:24 -07:00
Nurahmadie
fe75126fe1 Fix tests 2014-04-03 20:20:16 +00:00
Nurahmadie
f17101be0d Set commit.PullRequest for PullRequestHook 2014-04-03 17:39:37 +00:00
Matt Martz
19ba3e2277 Provide checkbox to override private setting on repo 2014-04-02 19:36:35 -05:00
Nurahmadie
1fca69dade Refactor PullRequestHook signature.
May parse hook payload only once.
2014-04-03 00:01:52 +00:00
Nurahmadie
6f10a57f4a Stub for merge request hook handling.
GitLab merge request hook payload doesn't provide
any information regarding source commits.

And since Drone currently doesn't support manual fetch from another
remote upstream, merge request hook only supported for maerge request
fro within the same repository.
2014-04-02 02:50:11 +00:00
Brad Rydzewski
dd46fa9563 Merge pull request #213 from movableink/fail-pending-on-startup
Fail pending on startup
2014-04-01 13:21:46 -07:00
Brad Rydzewski
189d880de9 Merge pull request #233 from swgillespie/master
Add support for publishing to PyPI #203
2014-04-01 12:51:24 -07:00
Michael Nutt
efb5d4e0cf Merge remote-tracking branch 'drone/master' into fail-pending-on-startup
Conflicts:
	cmd/droned/drone.go
2014-04-01 15:32:43 -04:00
Michael Nutt
ce0a172136 combine sql statements to set both pending and started to failure on startup 2014-04-01 15:29:14 -04:00
Nurahmadie
07071119ca Use TrimSpace 2014-03-31 16:10:06 +00:00
Nurahmadie
0d44a20c63 Fix gitlab account re-link 2014-03-31 06:53:47 +00:00
Nurahmadie
c295776b87 Set gitlab_token column, and use ioutil for r.Body 2014-03-30 21:32:20 +00:00
Nurahmadie
e2a45df3b8 Add initial hook handler 2014-03-30 16:26:53 +00:00
swgillespie
fc3236b95a Change format of .pypirc file in line with what distutils expects 2014-03-29 15:22:37 -07:00
swgillespie
ed18293ab3 Forgot to gofmt 2014-03-29 15:18:25 -07:00
swgillespie
2d07120891 Flag is 'formats', not 'format 2014-03-29 15:17:27 -07:00
swgillespie
ec409e51a1 Add ability to choose different formats 2014-03-29 15:15:52 -07:00
Ke Zhu
3bf5135547 support deploy to cloudfoundry 2014-03-29 16:12:47 -04:00
Nurahmadie
15770e6237 Add gitlab options add admin page. 2014-03-29 11:51:02 +00:00
Nurahmadie
ea4917e278 Fix Bitbucket merging conflict 2014-03-29 06:49:44 +00:00
Nurahmadie
43c0a54718 Initial Gitlab Support 2014-03-29 06:37:50 +00:00
Brad Rydzewski
839e77ab58 Merge remote-tracking branch 'origin/master' 2014-03-28 14:22:51 -07:00
Brad Rydzewski
32cc9351c0 forgot to add coveralls env vars to unit test, passing now 2014-03-28 14:22:37 -07:00
Brad Rydzewski
e2831f3d7a Merge pull request #232 from soundrop/feature/bitbucket-integration
Add Bitbucket integration
2014-03-28 14:16:25 -07:00
Brad Rydzewski
9d52350610 Merge remote-tracking branch 'origin/master' 2014-03-28 12:36:55 -07:00
Brad Rydzewski
965ac671a5 Merge pull request #229 from fudanchii/mysql-fix
sync mysql behavior with sqlite
2014-03-28 12:23:19 -07:00
Ali Sabil
8f4f747c86 Add Bitbucket integration 2014-03-28 19:40:26 +01:00
swgillespie
44aaf4fd9c Initial commit, haven't tested yet 2014-03-27 22:43:58 -07:00
Brad Rydzewski
e6f2ba05a9 Merge remote-tracking branch 'origin/master' 2014-03-27 09:53:53 -07:00
Nurahmadie
ded5c5ef7d sync mysql behavior with sqlite 2014-03-27 17:43:07 +07:00
Alex Suraci
3145b710c1 run privileged builds in web workers 2014-03-26 22:40:17 -07:00
Rafael Garcia
a284332a91 migrate/sqlite: create table only if it doesn't exist
fixes #224
2014-03-26 14:26:51 -07:00
Brad Rydzewski
3339a4c3f0 added env vars for coveralls 2014-03-26 11:07:14 -07:00
Matt Martz
ec390c320e Add OpenStack swift publish functionality 2014-03-26 09:04:13 -05:00
Mark Steve Samson
29664be7b8 Initial slack notification work 2014-03-26 18:43:40 +08:00
Brad Rydzewski
fe1f2666f3 Merge pull request #171 from fudanchii/migration
[RFC] database refactorization
2014-03-25 12:45:30 -07:00
Kir Shatrov
5567bb679f Reworked implementation with test coverage 2014-03-25 19:08:05 +04:00
Kir Shatrov
9bd7706ca3 Deployment with Bash command
Using this piece of YAML:
```
deploy:
	bash:
		command: 'bundle exec cap production deploy'
```

Will run Capistrano and deploy your app to production.
You can use any other deployment tool instead of Capistrano.
2014-03-25 19:08:05 +04:00
Brad Rydzewski
16997c3d1e unit test to cover image pull failing 2014-03-24 13:36:23 -07:00
Brad Rydzewski
be6f2171fb updated exiting unit tests. placeholders for new ones 2014-03-23 23:42:33 -07:00
Brad Rydzewski
d498f18881 ability to specify your own service images. unit tests not yet passing 2014-03-23 23:26:50 -07:00
Brad Rydzewski
1c5aebe9fb added code for parsing Docker image names and returning owner, name and tag 2014-03-23 23:15:36 -07:00
Michael Nutt
138beeeb45 also fail pending builds on startup 2014-03-24 00:21:33 -04:00
Michael Nutt
635b73a811 mark all previously started builds as failed on startup 2014-03-24 00:11:13 -04:00
Andrews Medina
6ccc1729fb implemented tsuru deploy plugin. 2014-03-22 23:22:01 -03:00
Brad Rydzewski
092348f8f2 removed unused fmt package 2014-03-20 00:33:45 -07:00
indexzero
33be72b45d [api] First pass at "jitsu deploy". Thanks @fiveisprime! 2014-03-20 01:35:14 -04:00
Alex Suraci
e0c9617dc7 add admin checkbox for setting a repo privileged 2014-03-19 10:53:52 -07:00
Brad Rydzewski
cccf0fb610 Merge remote-tracking branch 'origin/master' 2014-03-18 23:34:12 -07:00
Brad Rydzewski
11251f1909 added tests for when creating / starting build container fails 2014-03-18 23:30:50 -07:00
Brad Rydzewski
d7096f7e66 added code for privileged mode with unit tests 2014-03-18 23:21:04 -07:00
Brad Rydzewski
f3530d76b2 Merge pull request #191 from fudanchii/deployment
Fix `artifact` env-var being replaced if only one entry is listed.
2014-03-18 22:46:29 -07:00
Nurahmadie
1dbef76780 Fix ARTIFACT env-var being replaced if only one entry is listed.
Also, use WriteEnv.
2014-03-19 09:02:35 +07:00
Brad Rydzewski
f363ce804b improved coverage of Builder.teardown function in pkg/build 2014-03-17 16:40:15 -07:00
Brad Rydzewski
854d3443d7 Merge branch 'example-fixture' 2014-03-17 12:06:48 -07:00
Brad Rydzewski
96c256b17d added some comments to describe the different test cases 2014-03-17 12:04:48 -07:00
Brad Rydzewski
7d52a4c4df Revert "query and show commits by branch"
This reverts commit 2d837cc3db.
2014-03-16 23:08:53 -07:00
Brad Rydzewski
5c848d647a Merge pull request #179 from arturhoo/feature/svg-badges
Use SVG badges instead of PNG
2014-03-16 22:33:53 -07:00
Nurahmadie
7eb06fc0d5 Use NullString instead of checking for error. 2014-03-16 12:26:45 +07:00
Nurahmadie
44ffb70813 Use variadic parameters for DropColumns.
Also add some comments.
2014-03-16 12:26:18 +07:00
Nurahmadie
571f7d02b0 Fix some column type to work with both mysql and sqlite.
Basically this is caused by sqlite actually doesn't have any
column type restriction. also save gob type column as blob to enforce
byte-string value, since varchar with utf8 collation type will take at
least 3 byte to store, this will break YAML-Gob decoding at `params`
column.

Also fix some typo, and clean up fixtures code.
2014-03-15 18:20:11 +07:00
Alex Suraci
2d837cc3db query and show commits by branch
This allows the same SHA to have different builds on different branches, each
separately viewable. This is useful for expressing a "pipeline" in terms of
branches, e.g. a commit starts on branch A and progress through B and C to
master, with the build script switching on branch name.

Previously viewing each build would arbitrarily choose which branch's commit
to show.
2014-03-14 12:13:34 -07:00