1
0
mirror of https://github.com/woodpecker-ci/woodpecker.git synced 2024-12-24 10:07:21 +02:00
Commit Graph

170 Commits

Author SHA1 Message Date
Brad Rydzewski
70732c341a Merge pull request #124 from vito/fix-tests
fix handler/testing test imports
2014-02-24 21:22:59 -08:00
Alex Suraci
4b52fcad1a provide runner to workers, use it for all builds
Signed-off-by: Abhijit Hiremagalur <abhi@pivotallabs.com>
2014-02-24 17:51:25 -08:00
Alex Suraci
ddc8e7a56f split build construction out of worker
(todo: inject runner into worker)

Signed-off-by: Abhijit Hiremagalur <abhi@pivotallabs.com>
2014-02-24 17:34:22 -08:00
Alex Suraci
acc51e83fd inject docker client into Builder
Signed-off-by: Abhijit Hiremagalur <abhi@pivotallabs.com>
2014-02-24 17:02:57 -08:00
Alex Suraci
12989b187c introduce Queue object
this is an intermediate step towards pushing configuration up.

Signed-off-by: Abhijit Hiremagalur <abhi@pivotallabs.com>
2014-02-24 16:53:28 -08:00
Alex Suraci
fc01782554 add constructor for Builder
this makes it easier to track required dependencies as they change

(todo: actually, like, use it for required dependencies)
2014-02-24 16:45:01 -08:00
Alex Suraci
0e98f294a3 fix handler/testing test imports
Signed-off-by: Abhijit Hiremagalur <abhi@pivotallabs.com>
2014-02-24 14:55:05 -08:00
Andrew Karpow
8f139daec2 add github ping hook handler 2014-02-24 13:56:42 +01:00
Brad Rydzewski
dc478a4ca8 Merge pull request #116 from fiveisprime/modulus-deployments
Adds support for Modulus deployments
2014-02-23 15:28:55 -08:00
Matt Hernandez
40296fbd93 Corrected project usage. 2014-02-23 18:10:01 -05:00
Matt Hernandez
492ac956ca Fixes.
Fixed the WriteEnv usage and updated to allow for sudo if necessary.
2014-02-23 18:07:25 -05:00
Matt Hernandez
77e2837ff0 Add Modulus to deployment class.
Allow the Modulus deployment type to be used.
2014-02-23 12:08:44 -05:00
Matt Hernandez
3920fd92fe Added Modulus deployment.
Uses the configuration options of: Token (the user's Modulus API token) and
project (the project to deploy to).
2014-02-23 12:02:53 -05:00
Nurahmadie
20bf390dc2 Enable deployment via ssh 2014-02-23 20:19:00 +07:00
Brad Rydzewski
d6b6506a5b Merge pull request #104 from shaunduncan/master
Fix form for full width of column
2014-02-22 15:35:58 -08:00
Brad Rydzewski
24df6277b1 Merge pull request #113 from jordane/jordane/add_irc_plugin
add irc notify plugin
2014-02-22 15:33:58 -08:00
Jordan Evans
25749802ac add irc notify plugin
It is based on github.com/fluffle/goirc
2014-02-21 16:10:04 -08:00
Brad Rydzewski
6410bdbe9d added validation for settings 2014-02-21 15:25:05 -07:00
Brad Rydzewski
3c25a4a00a fixed issue updating team member roles 2014-02-21 13:26:50 -07:00
Shaun Duncan
bf999a82b0 Fix form for full width of column 2014-02-20 20:55:56 -05:00
Nurahmadie
d9e4f3f509 Add shell script to generate migration script. 2014-02-19 08:15:51 +07:00
Nurahmadie
7b4c698e79 Refactor columns matching method 2014-02-19 07:38:53 +07:00
Nurahmadie
21f7fcb853 Fix index operations:
- Pass args as variadic params
- Tests for index operations
- Refactor fetchColumns
2014-02-19 01:11:41 +07:00
Nurahmadie
8d7cf16a89 Add func to fetch SQL definition for indices.
Also rearrange sql.Result and err declaration.
2014-02-18 21:22:22 +07:00
Nurahmadie
7a75c2d004 Keep indices when dropping/renaming columns. 2014-02-18 18:32:04 +07:00
Brad Rydzewski
2867818679 removed github domain and url from schema.go for unit tests 2014-02-17 23:10:20 -07:00
Brad Rydzewski
a200c7a0a2 altered migration to set default github domain and url 2014-02-17 23:08:06 -07:00
Brad Rydzewski
cb042e1c1a fixed compile error in migration script 2014-02-17 22:48:31 -07:00
Brad Rydzewski
bbb4bf48e0 Merge remote-tracking branch 'origin/master' 2014-02-17 22:42:01 -07:00
Brad Rydzewski
0e83e76ef4 removed unused migration sample file 2014-02-17 22:41:56 -07:00
Brad Rydzewski
85e60e4ee2 Merge pull request #75 from floatdrop/github-enterprise-support
GitHub Enterprise Support
2014-02-17 21:38:28 -08:00
Brad Rydzewski
7ce1e55ac3 Merge pull request #83 from fudanchii/migration
Migration system for sqlite
2014-02-17 20:46:13 -08:00
Brad Rydzewski
ed33bf7fbe fixed broken link on repo dashboard page to refresh page 2014-02-17 20:33:58 -07:00
Brad Rydzewski
cda6cef5ec fixed template issue with install screen, not using correct base 2014-02-17 12:40:03 -07:00
Andrew Karpow
d18fc8fc35 make smtp-auth optional 2014-02-16 22:36:01 +01:00
Colin Gemmell
5d9d367b78 Add form tag to make install work.
There seems to be no javascript to post this form and no form tag to make the form work so added one
2014-02-16 17:40:23 +00:00
Vsevolod Strukchinsky
1505175288 Migration file based on #83
I choosed Rev3, because Rev2 will be about "open invitations" feature.
2014-02-16 11:57:16 +06:00
Vsevolod Strukchinsky
407faca612 Fixed another github client instance in code 2014-02-16 11:45:15 +06:00
Vsevolod Strukchinsky
b113b2ac33 Make IsGit check less strict 2014-02-16 11:45:15 +06:00
Vsevolod Strukchinsky
87cc740e8a Fixed identation 2014-02-16 11:45:15 +06:00
Vsevolod Strukchinsky
833563763c Added settings to github_add page (fix redirect) 2014-02-16 11:45:15 +06:00
Vsevolod Strukchinsky
44d5f3baca Update all github clients in code 2014-02-16 11:45:15 +06:00
Vsevolod Strukchinsky
425cbbc324 Use custom github domain for webhook 2014-02-16 11:45:14 +06:00
Vsevolod Strukchinsky
6c9ff00f99 Put values from settings into handler/auth.go 2014-02-16 11:45:14 +06:00
Vsevolod Strukchinsky
7208d95a76 Added GitHubApiUrl and GitHubDomain to settings and template 2014-02-16 11:45:14 +06:00
Brad Rydzewski
423abdf17d Merge pull request #33 from phusion/master
Fix HTML closing errors
2014-02-15 18:14:32 -08:00
Brad Rydzewski
4b412d3a26 added code to prevent panic if /login is reached but no settings exist
minor styling. added success and fail message to top of /signup screen
modified open_registration to boolean value in database
2014-02-15 18:56:48 -07:00
Brad Rydzewski
828cb84c6d Merge pull request #67 from floatdrop/open-invitations
Open invitation setting
2014-02-15 17:22:54 -08:00
Nurahmadie
4ef0f1b437 Integrate migrations with drone.
Also add migration to tests.
2014-02-16 03:47:30 +07:00
Nurahmadie
da8d4346ee Add tests to migrate existing database without migration attributes. 2014-02-16 02:23:26 +07:00
Nurahmadie
8ce87f0d2c More tests for alter columns migration
Also change the way we handle columns rename migration.
SQLite restrict column addition not to have PRIMARY KEY and/or
UNIQUE attribute, so we have to change from:

add new column -> migrate data from old column to new column ->
rename old table -> create new table with old columns removed ->
migrate data from old table to the new table -> drop old table

to directly:
rename old table -> create new table with renamed columns ->
migrate data from old table to the new table -> drop old table
2014-02-16 00:56:17 +07:00
Nurahmadie
4465b2654d Fix migration step not checked against current version.
Add tests for DropColumns.
2014-02-15 22:17:22 +07:00
Nurahmadie
54a9544044 Integrate MigrationDriver to migrate.go 2014-02-15 20:16:54 +07:00
Nurahmadie
d2eed594ea Migration Driver for SQLite
Need more tests.
2014-02-15 19:29:53 +07:00
Vsevolod Strukchinsky
460ec90049 Fixup behavior on uninstalled state 2014-02-15 18:17:29 +06:00
yosssi
bc5c508bc2 Updated README.md to show all services.
Update pkg/build/images.go to use the latest version of CouchDB if
`couchdb` was set to `services`.
2014-02-14 09:37:43 +00:00
Vsevolod Strukchinsky
0bd8ef28dd Fixup signup and settings template 2014-02-14 10:53:22 +06:00
Vsevolod Strukchinsky
6937b7b21e Open invitation setting
Closes #64
2014-02-14 10:53:22 +06:00
Brad Rydzewski
aac473d689 Merge pull request #68 from yosssi/params-injection
Inject params into .drone.yml.
2014-02-13 18:50:15 -08:00
Brad Rydzewski
9e7d196e30 Merge pull request #65 from floatdrop/fix-status-url
Fixup back url in commit status
2014-02-13 15:34:30 -08:00
Keith Thornhill
cfa9082761 enable use of docker-standard DOCKER_HOST environment variable to allow drone to run builds on remote docker hosts. 2014-02-13 15:20:43 -08:00
Brad Rydzewski
f88171d433 branch is using url param on all pages now, until we get wildcard routing 2014-02-13 15:43:40 -07:00
yosssi
5895e364c1 Inject params into .drone.yml. 2014-02-13 15:30:27 +00:00
Vsevolod Strukchinsky
79ccd56960 Fixup back url in commit status 2014-02-13 14:36:40 +06:00
Brad Rydzewski
bb90a492cf Merge pull request #62 from yosssi/add-git-depth-option
Implemented a function for developers to specify the `--depth` option of the `git clone` command
2014-02-12 22:45:48 -08:00
yosssi
074de9d3b3 Implemented a function for developers to specify the --depth option of
the `git clone` command. refs #55
2014-02-13 02:22:43 +00:00
Brad Rydzewski
901d48ee82 Merge remote-tracking branch 'origin/master' 2014-02-12 12:23:19 -07:00
Brad Rydzewski
28fda64326 workaround for #51 2014-02-12 12:22:56 -07:00
Brad Rydzewski
0a8ef525e9 fix for issue #51 2014-02-12 12:15:59 -07:00
Brad Rydzewski
60765d6b37 Merge pull request #57 from yosssi/fix-alert-layout-adding-user
Fixed the overflow of the url when adding an admin user or a team member.
2014-02-11 23:14:17 -08:00
yosssi
08fdbc8c56 Fixed the overflow of the url when adding an admin user or a team
member.
2014-02-12 10:48:37 +09:00
Brad Rydzewski
088c45941c partial fix to issue #50 and issue #37 to select token from database 2014-02-11 16:05:53 -07:00
Brad Rydzewski
3a22094484 added code to ignore S3 builds when no access key or secret provided 2014-02-11 15:44:39 -07:00
Brad Rydzewski
443bf9d636 Merge remote-tracking branch 'origin/master' 2014-02-11 15:23:48 -07:00
Brad Rydzewski
a26b9c1658 removed duplicate /deploy /notify /publish directories in /pkg/build/script 2014-02-11 15:17:35 -07:00
Brad Rydzewski
7f458fc93e Merge pull request #46 from dz0ny/patch-1
Add: get git submodules in one step
2014-02-11 13:26:00 -08:00
Brad Rydzewski
0c36b42f69 Merge pull request #52 from antonlindstrom/feature-deploy-git
Implement feature git deploy
2014-02-11 12:35:47 -07:00
Anton Lindström
827ec1735f add git deployment into deployment list
Adds Git to the deployment list in deployment.go to actually be used by drone.
2014-02-11 19:28:50 +00:00
Anton Lindström
4d71643214 implement git deploy method
This commit implements the git deploy method. This is basically a copy of the
Heroku deploy method except it uses a target instead of an app. The target can
be anything that git accepts as a url.

An example of deploy using git can be:

    deploy:
      git:
        target: git@example.com:myapp.git
2014-02-11 19:23:15 +00:00
Janez Troha
c4a040c933 Fix: remove mysterious r
:)
2014-02-11 20:18:19 +01:00
Scott Ferguson
c9f388d608 Merge branch 'master' of https://github.com/drone/drone 2014-02-11 08:51:22 -06:00
Scott Ferguson
326c5ce45e Alert Github when a build has started 2014-02-11 08:47:55 -06:00
Janez Troha
f90c099e68 Add: get git submodules in one step
--recursive
--recurse-submodules
After the clone is created, initialize all submodules within, using their default settings. This is equivalent to running git submodule update --init --recursive immediately after the clone is finished. This option is ignored if the cloned repository does not have a worktree/checkout (i.e. if any of --no-checkout/-n, --bare, or --mirror is given)

from http://git-scm.com/docs/git-clone
2014-02-11 10:52:39 +01:00
Brad Rydzewski
8102265475 Merge pull request #40 from scottferg/team_invites
Fix team invites
2014-02-10 15:39:10 -07:00
Brad Rydzewski
2a8f3fc055 Merge pull request #39 from scottferg/master
Read the actual commit status when updating Github
2014-02-10 15:38:06 -07:00
Brad Rydzewski
c0251de71f Merge pull request #36 from slaskis/patch-1
s/Region/Access/
2014-02-10 15:36:55 -07:00
Brad Rydzewski
f8eccc43af Merge pull request #38 from fudanchii/html-fix
Typo on report title.
2014-02-10 15:35:42 -07:00
Scott Ferguson
1283b2b6f2 Fix team invites 2014-02-10 15:22:32 -06:00
Scott Ferguson
e36eacb0fe Fix team invites 2014-02-10 15:21:04 -06:00
Scott Ferguson
6c2b64dd55 Read the actual commit status when updating Github 2014-02-10 14:08:33 -06:00
Nurahmadie
8773f077e8 Typo on report title. 2014-02-10 15:21:22 +00:00
Robert Sköld
7c4299778f s/Region/Access/ 2014-02-10 12:53:55 +01:00
Damian Gryski
4e9c822ce8 Two small issues found by 'go vet' 2014-02-10 12:49:12 +01:00
Hongli Lai (Phusion)
7806a23b6f
Fix HTML closing errors 2014-02-10 11:21:31 +01:00
Brad Rydzewski
453caf033d Merge remote-tracking branch 'origin/master' 2014-02-10 03:03:37 -07:00
Brad Rydzewski
8d135d7b22 package for database migrations 2014-02-10 03:03:22 -07:00
Brad Rydzewski
476835903f setting ACL correctly in S3 code 2014-02-10 03:02:10 -07:00
Scott Ferguson
d262ffa1ab Show an inline error if the wrong password is given when deleting a repo 2014-02-09 20:09:42 -06:00
Scott Ferguson
1e75162bc8 Defer updateGitHubStatus so that it reports errors that occur before the build begins 2014-02-09 19:06:16 -06:00
Scott Ferguson
cf9b791071 Don't prematurely exit updateGitHubStatus() 2014-02-09 19:04:06 -06:00