Commit graph

212 commits

Author SHA1 Message Date
Benjamin Manns
4cd5e69e7b Remove unreachable return. 2014-03-06 10:50:48 -08:00
Benjamin Manns
baf468973f Format go code. 2014-03-06 10:45:21 -08:00
Kir Shatrov
5bf726d4d4 Autofocus on email field in login 2014-03-06 16:35:57 +04:00
Brad Rydzewski
686f755c5d Merge pull request #164 from ewr/SpecifyTmpDirViaEnv
Add ability to specify temp directory via DRONE_TMP environment variable
2014-03-05 14:42:59 -08:00
Eric Richardson
74f5a41a05 Add ability to specify temp directory via DRONE_TMP environment variable
* If not set, defaults to the previously-used `/tmp/drone`
* This is the directory used for storing cached volumes, so in some deployment
  scenarios the admin may wish to place it somewhere more resilient than /tmp.
2014-03-05 17:10:29 -05:00
Vsevolod Strukchinsky
0c9dafc5c9 Remove unnecessary appending identicon in template 2014-03-05 16:25:27 +06:00
Vsevolod Strukchinsky
fae4adaffc Add identicon query param to GravatarPattern 2014-03-05 16:19:44 +06:00
Brad
4333d62c37 added yml config for custom /etc/hosts entries 2014-03-04 11:08:13 -08:00
Brad
f5d142a4b5 moved environment variables from Dockerfile to build script 2014-03-04 11:07:41 -08:00
Brad
cecef21d4f fixed merge issue with template.go and duplicate fmt import 2014-03-04 10:50:53 -08:00
Brad Rydzewski
791f7b0652 Merge pull request #153 from movableink/js-in-external-files
JS in external files
2014-03-04 10:27:40 -08:00
Red Daly
dbbbe325c3 Improve error messages in template parsing init(). 2014-03-04 04:47:47 -08:00
Brad
c1b9353943 added code to persist directories between builds. see issue #147 2014-03-02 22:54:09 -08:00
Brad
18d5421706 a bit of prep-work for adding caching 2014-03-02 22:35:01 -08:00
Brad
600bcdea38 added section to yaml for custom hostnames 2014-03-02 18:55:28 -08:00
Nurahmadie
fe3bb97231 Fix pull-request checkout not working for Git >=1.8
Explicitly create pr branch from origin
2014-03-02 20:03:05 +07:00
Nurahmadie
cd5126d8c9 Set author for pull request 2014-03-02 19:09:14 +07:00
Michael Nutt
f468203e23 add jasmine specs for javascript 2014-03-02 02:08:30 -05:00
Michael Nutt
b2965bf432 extract commit update js into a separate file 2014-03-02 00:43:20 -05:00
Brad Rydzewski
c69e9d3ab7 Merge remote-tracking branch 'origin/master' 2014-03-01 20:25:22 -07:00
Brad Rydzewski
f33ebcc21c ability to use custom badges. standard badges now using shields.io 2014-03-01 20:25:10 -07:00
Nurahmadie
6b8e86fd02 Fix gravatar size at build page to fit the stylesheet. 2014-03-02 02:34:15 +00:00
Michael Nutt
6e92e73a98 logline output buffers rather than updating on every ws message
In builds with lots of output, trying to reload the page partway
through the build results in thousands of websocket messages (one
per line) that each update the DOM.  This can cause the browser to
freeze.  Instead, use requestAnimation frame to delay the DOM
updates.
2014-03-01 19:51:14 -05:00
Brad Rydzewski
77ff7971d3 Merge pull request #138 from zond/master
Added a button to turn auto tail on/off
2014-02-27 16:01:11 -08:00
Brad Rydzewski
252a8a9e68 Merge pull request #139 from jordane/jordane/add_irc_plugin
properly quit irc after sending failure/success
2014-02-27 16:00:21 -08:00
Jordan Evans
bab544261a properly quit irc after sending failure/success 2014-02-27 12:00:15 -08:00
Martin Bruse
bc2043d4cf instead of doing magic on scroll events, move the button to the bottom of the stdout pre. 2014-02-27 12:04:51 +00:00
Martin Bruse
0c9a9f6d63 added a button to turn auto tail on/off 2014-02-27 10:28:24 +00:00
Brad Rydzewski
80c42309d3 Merge remote-tracking branch 'origin/master' 2014-02-26 15:24:35 -07:00
Brad Rydzewski
21d1bcc551 fixed typo in admin template causing issue #108 2014-02-26 15:24:18 -07:00
Brad Rydzewski
404f7784bc Merge pull request #133 from zond/master
DRONE_BRANCH and DRONE_PR env variables
2014-02-26 13:50:44 -08:00
Brad Rydzewski
deba709d87 added exit code to builds 2014-02-26 14:24:48 -07:00
Martin Bruse
90681986fe More discriminate env setting 2014-02-26 14:18:09 +01:00
Martin Bruse
7bb3358b63 Added more Environment variables. 2014-02-26 13:43:31 +01:00
Brad Rydzewski
e62cdce37f added echo statement to print when S3 deployment is starting 2014-02-26 00:58:50 -07:00
Brad Rydzewski
fa9d3c8277 Merge remote-tracking branch 'origin/master' 2014-02-26 00:01:51 -07:00
Alex Suraci
a198657a7e Runner -> BuildRunner to be more descriptive
also kill some stale comments
2014-02-25 17:14:14 -08:00
Alex Suraci
9e1c4e60e5 remove docker/queue singletons; inject in main 2014-02-25 17:10:04 -08:00
Brad Rydzewski
987e53eb39 ability to view public repos without authentication 2014-02-25 17:13:59 -07:00
Brad Rydzewski
73c03dc2e0 publicly display private projects 2014-02-25 16:50:49 -07:00
Brad Rydzewski
5673c4d2ac only inject private parameters for non-pull requests, for security purposes 2014-02-25 16:48:43 -07:00
Brad Rydzewski
c0adf459f9 Merge pull request #125 from vito/injectable-builder
Injectable builder (and friends)
2014-02-25 15:42:37 -08:00
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