Mathias Meyer
223cf949a1
Fix another variable.
2014-06-18 11:55:27 +02:00
Mathias Meyer
d9bf47c36a
Fix variable name.
2014-06-18 11:55:27 +02:00
Mathias Meyer
415d266f61
Fix typo.
2014-06-18 11:55:27 +02:00
Mathias Meyer
e726b1b697
Fix ERb line.
2014-06-18 11:55:27 +02:00
Mathias Meyer
a7f0a861cb
Fetch last build if no branch specified.
...
This restores backwards compatibility with the current behaviour
rather than defaulting to master. Though the latter would probably
the right thing to do in the longer term.
2014-06-18 11:55:26 +02:00
Mathias Meyer
5081bb157f
Skip including a build if it doesn't exist.
...
This catches branch specifications where no build is available.
2014-06-18 11:55:26 +02:00
Mathias Meyer
99395d85c1
Delete TODO.
2014-06-18 11:55:26 +02:00
Mathias Meyer
b81b24b3ce
Make master a string.
2014-06-18 11:55:26 +02:00
Mathias Meyer
3f16100247
Support the branch option for cc.xml requests.
...
Fixes travis-ci/travis-ci#2090
2014-06-18 11:55:26 +02:00
Hiro Asari
dae8652279
Merge branch 'master' into ha-feature-remove_log_endpoint
2014-06-17 10:40:30 -04:00
Hiro Asari
9265ac62c9
Merge branch 'master' into ha-feature-remove_log_endpoint
...
Conflicts:
Gemfile.lock
travis-api.gemspec
2014-06-17 09:05:05 -04:00
Konstantin Haase
143a9cd071
Revert "removed the branches endpoint"
...
This reverts commit f7450cdb6b
.
2014-06-17 14:44:13 +02:00
Konstantin Haase
0145236b30
Merge pull request #123 from travis-ci/rkh-lint
...
add endpoint for .travis.yml linting
2014-06-17 14:15:02 +02:00
Konstantin Haase
10fe7e1c39
add endpoint for linting
2014-06-17 12:14:10 +02:00
Hiro Asari
8d4c4488b1
Merge pull request #94 from travis-ci/jk_remove_branches_endpoint
...
Remove the branches endpoint
2014-06-16 11:36:59 -04:00
Hiro Asari
dfffe8e405
Remove PATCH logs/:job_id
endpoint
...
To eradicate unnecessary inconsistency.
Spec to test the existing `GET logs/:id` remains.
2014-06-12 07:20:47 -04:00
Hiro Asari
477c8b9212
Tweak RemoveLog helper
...
Leave responding up to the endpoint
Remove unnecessary parameter from the helper's parameter
2014-06-11 20:19:57 -04:00
Hiro Asari
cc03c5458a
DRY up log patching logic
...
Move the shared logic into a Helpers method so that there is no
code duplication
2014-06-11 18:07:12 -04:00
Hiro Asari
8da49332d6
Clean up error handling for RemoveLog
...
With the error message change in travis-core, we can handle
2 exceptions in one rescue clause
2014-06-11 13:58:57 -04:00
Hiro Asari
4a3807b21a
Standardize error handling for RemoveLog service endpoints
...
Return status 409 for errors
2014-06-11 13:51:47 -04:00
Hiro Asari
1cf298464a
Add RemoveLog service endpoint to jobs/:id/log
...
This replaces https://github.com/travis-ci/travis-api/pull/107 .
2014-06-11 13:39:21 -04:00
Hiro Asari
5c079f8e66
Add specs for RemoveLog service
...
Status code is debatable; I opted for 422 when the job is still
running, and for 500 if unexpected error happened
2014-06-11 09:30:50 -04:00
Piotr Sarnacki
d02648a542
Add build_id to requests payload
2014-05-06 16:04:10 +02:00
Mathias Meyer
34a7f817b3
Remove documentation, redirect /docs to new docs.
2014-05-05 15:06:06 +02:00
Mathias Meyer
c240daa760
Enable async in the API.
2014-04-24 11:36:35 +02:00
Mathias Meyer
74761b439e
Remove response inspector. Enable monitoring on staging.
2014-04-24 10:14:21 +02:00
Mathias Meyer
fe88881dba
Use git rack-cache, less verbose.
2014-04-23 18:06:05 +02:00
Mathias Meyer
879d531bdc
Put inspect before rack cache.
2014-04-23 17:31:58 +02:00
Mathias Meyer
7790f59b81
Debug nil responses.
2014-04-23 17:24:50 +02:00
Mathias Meyer
5623316889
Output body.
2014-04-23 14:05:21 +02:00
Mathias Meyer
cb83aa4626
Output response on Librato error.
2014-04-23 13:59:00 +02:00
Mathias Meyer
d6963c1325
Prefix error message.
2014-04-23 13:44:00 +02:00
Mathias Meyer
b83dc1c631
Actually remove prefix.
2014-04-23 13:31:53 +02:00
Mathias Meyer
5542c6f3ff
Add error handler, remove prefix.
2014-04-23 13:28:23 +02:00
Mathias Meyer
3566b47d23
Require correct file.
2014-04-23 12:58:10 +02:00
Mathias Meyer
9bdaf9dc24
Require librato exporter.
2014-04-23 12:54:14 +02:00
Mathias Meyer
c8b2b15f56
Simplify Librato setup.
...
Moves monitoring related setup to its own method.
2014-04-18 15:54:34 +02:00
Mathias Meyer
d0818c5f1c
Enable direct librato export for metriks.
2014-04-18 15:47:48 +02:00
Piotr Sarnacki
360881a888
Remove ssh_keys endpoint
...
SshKeys will make sense only on Travis CI Pro
2014-04-15 11:14:11 +02:00
Piotr Sarnacki
c42335a286
Merge pull request #117 from travis-ci/ps-ssh-keys
...
Add ssh keys to settings API
2014-04-15 10:59:59 +02:00
Piotr Sarnacki
17fd6201b8
Don't error out on settings
...
We didn't have scope: :private specified on settings endpoint which
resulted in errors (services check permissions of current user anyway,
but it will error out if there is no user available).
2014-04-15 10:58:08 +02:00
Piotr Sarnacki
f107d4676e
Params in POST and PATCH requests should be fetched from request body
...
This also adds missing specs for ssh_keys endpoint
2014-04-10 14:07:20 +02:00
Henrik Hodne
26064f95a1
Merge pull request #119 from travis-ci/hh-skylight
...
Skylight
2014-04-09 18:08:48 -05:00
Henrik Hodne
9b0fb64ba1
skylight: add service probe
2014-04-09 16:53:24 -05:00
Henrik Hodne
162b5b0cca
skylight: extract probes from config.ru
2014-04-09 14:34:20 -05:00
Henrik Hodne
928ed11c62
skylight: use Sinatra support from skylight gem
...
This hasn't been merged in yet, so use my fork for now.
2014-04-09 14:30:04 -05:00
Konstantin Haase
993e46bea1
Merge branch 'rkh-check-state'
2014-04-09 13:33:29 -04:00
Henrik Hodne
208a8248f7
skylight: refactor more into extension
2014-04-09 06:09:43 -05:00
Henrik Hodne
da92cfd640
Remove New Relic
2014-04-09 05:25:00 -05:00
Henrik Hodne
749ee8b943
skylight: only load extension if skylight is available
2014-04-09 04:14:19 -05:00