Commit Graph

484 Commits

Author SHA1 Message Date
Piotr Sarnacki
2a19cd5bfa Revert "disable new relic"
This reverts commit 48cf45c5f6.
2013-04-16 20:01:14 +02:00
Konstantin Haase
74612ed067 switch to unicorn 2013-04-16 18:28:20 +02:00
Henrik Hodne
6d0aad47ec Update example payloads 2013-04-15 14:11:58 -05:00
Henrik Hodne
a18f211f6f Merge pull request #25 from henrikhodne/add-responses-to-documentation
Add responses to documentation
2013-04-15 02:44:31 -07:00
Henrik Hodne
0f31ff4fb6 Add favicon 2013-04-15 02:17:08 -05:00
Henrik Hodne
e38b40e00a Update docs style to look more like the main docs site 2013-04-15 02:04:50 -05:00
Piotr Sarnacki
e0e3603d25 Bump travis-core 2013-04-12 03:32:32 +02:00
Piotr Sarnacki
be22ff6eda Ensure that we properly handle 404 formats 2013-04-11 14:47:00 +02:00
Piotr Sarnacki
3c75f9fa07 Bump travis-core 2013-04-03 13:39:10 +02:00
Piotr Sarnacki
d776f841c8 Bump travis-core 2013-03-29 17:16:08 +01:00
Piotr Sarnacki
cc70e15825 Fetch all builds in PR rake task, but skip when it's already filled in 2013-03-27 15:48:47 +01:00
Piotr Sarnacki
def6c92125 Don't error out on micro migrations on production 2013-03-27 15:13:19 +01:00
Piotr Sarnacki
0ea7cc3ac4 Update only builds that need to be updated in pull_request_data rake task 2013-03-27 15:04:54 +01:00
Piotr Sarnacki
f28c47597e Bump travis-core 2013-03-27 14:54:08 +01:00
Piotr Sarnacki
adbc0653e4 Revert "Don't require micro_migrations in Rakefile"
Apparently it's needed to run tests

This reverts commit 17de12655d.
2013-03-27 13:24:56 +01:00
Piotr Sarnacki
17de12655d Don't require micro_migrations in Rakefile
It breaks when I want to run any rake task
2013-03-27 13:01:05 +01:00
Piotr Sarnacki
b4e59caebf Add task to migrate pull request data for builds 2013-03-27 12:58:32 +01:00
Piotr Sarnacki
1d6587caba Bump travis-core 2013-03-27 12:58:12 +01:00
Henrik Hodne
6f5f7d0073 Add responses to repository endpoints 2013-03-26 20:41:23 -05:00
Henrik Hodne
c1aaeeee32 Add a way to add responses to documentation
You can add a predefined JSON response by entering
"json(:resource_name)" in the docstring. This will then be replaced
with the resource with the same name, found in
lib/travis/api/app/endpoint/documentation/resources.rb.
2013-03-26 20:40:35 -05:00
Piotr Sarnacki
887c835bd4 Use client_domain instead of domain for url in CC.xml 2013-03-25 16:53:20 +01:00
Piotr Sarnacki
15dd13ba02 Merge branch 'pr/46' 2013-03-25 16:40:08 +01:00
Piotr Sarnacki
f3ceee9b28 Always set content_type in responder 2013-03-25 16:39:37 +01:00
Andre Arko
637af8aa44 oh and the spec cares too 2013-03-25 16:16:42 +01:00
Andre Arko
2935050395 https is better 2013-03-25 16:16:42 +01:00
Andre Arko
c57e9cbcc6 valid URLs in cc.xml Project webUrl 2013-03-25 16:09:37 +01:00
Andre Arko
6940532994 Ensure proper content type for cc.xml 2013-03-25 16:09:15 +01:00
Piotr Sarnacki
61142c7cf6 Return 404 unless we can find API builder for resource
In order to protect us from rendering a resource simply converted to
json, without processing it with API data class, this commit changes
JSON responder behavior to render 404 if we can't find associated data
class. The only exception to that rule is when resource is already a
Hash, meaning that it was processed before - we sometimes return for
example simple Hash responses like { result: true }.

The Hash exception could allow to accidentally pass resource.as_json to
responder, but in travis-ci/travis-support@124b8b6 I disabled default
as_json method on AR::Base classes, so the risk of such mistake is
lowered.
2013-03-24 19:49:28 +01:00
Konstantin Haase
33463fe042 update core 2013-03-21 16:33:57 +01:00
Konstantin Haase
92be2a3fcd fix test for new autosync 2013-03-20 19:53:38 +01:00
Konstantin Haase
268b02db50 regenerate gemspec 2013-03-20 19:53:29 +01:00
Konstantin Haase
0854912a4e update core and support 2013-03-20 18:04:50 +01:00
Nick Schonning
591bca9093 First cut generic Contributing.md file for Travis
For https://github.com/travis-ci/travis-ci/issues/940
2013-03-18 23:07:55 -03:00
Piotr Sarnacki
2efd1cb9a6 It's .deploy-sha, not .deploy_sha 😡 2013-03-16 16:42:52 +01:00
Piotr Sarnacki
7099331907 Read .deploy-sha file from the proper path 2013-03-16 15:34:59 +01:00
Piotr Sarnacki
ce470af1c3 Bump travis-core 2013-03-16 14:38:40 +01:00
Piotr Sarnacki
705927ff74 Don't error out if xml is requested with something else than repo 2013-03-12 12:08:43 +01:00
Piotr Sarnacki
c0b9a468d6 Forgot to delete one of the tests 2013-03-11 23:58:58 +01:00
Piotr Sarnacki
54a6926aaf Properly handle non existent resources
This commit changes travis-api to always return 404 response if resource
is not available. Previously we were returning image/png with "unknown"
status instead if user used "*/*" Accept header, which was confusing.
2013-03-11 23:52:57 +01:00
Piotr Sarnacki
b6f3ef10aa Resource can be nil in Responders::Image 2013-03-11 20:57:45 +01:00
Piotr Sarnacki
04bb751b02 When serving image, return proper Last-Modified header 2013-03-11 20:54:24 +01:00
Henrik Hodne
63155e65b6 Fix link to travis-web
Fix #55
2013-03-03 18:27:29 -06:00
Erik Michaels-Ober
cf6c605022 Fix kerning/alignment/anti-aliasing of passing image 2013-02-28 14:43:30 -08:00
Erik Michaels-Ober
5372e34b13 Use brighter green color for passing badge
This is the same color used for the best scores on Code Climate and
Coveralls and is more pleasing to the eye than the current
yellowy-green.
2013-02-28 07:44:43 -08:00
Piotr Sarnacki
7384011e54 Use rubygems via https 2013-02-26 21:06:16 +01:00
Piotr Sarnacki
8599ca80a2 Bump travis-core 2013-02-26 21:04:05 +01:00
Piotr Sarnacki
2065b3ded0 Bump travis-core 2013-02-25 17:29:33 +01:00
Piotr Sarnacki
5345ef818e Use version from each of the accept headers, not only first one 2013-02-25 17:28:24 +01:00
Piotr Sarnacki
5f91706e64 Allow to pass version as Accept param 2013-02-25 17:28:24 +01:00
Piotr Sarnacki
36783e6359 Handle chunked=true param in Accept header 2013-02-25 17:28:24 +01:00