Commit Graph

522 Commits

Author SHA1 Message Date
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
Piotr Sarnacki
0e6757080e Bump travis-core 2013-02-25 17:28:24 +01:00
Piotr Sarnacki
65b1e6b988 Respond with 406 if we can't return requested formats 2013-02-25 17:27:56 +01:00
Piotr Sarnacki
212eb6d9d3 Allow passing more than one mime type in Accept 2013-02-25 17:27:56 +01:00
Piotr Sarnacki
1d7be066cb Make it easy to check if Accept::Entry accepts given mime type 2013-02-25 17:27:56 +01:00
Piotr Sarnacki
c9e99cf2cf Allow more than one type in Accept header 2013-02-25 17:27:56 +01:00
Josh Kalderimis
179c5cbc4c also test against jruby 2013-02-24 13:25:16 +11:00
Josh Kalderimis
ecae377a0b a bundle update, mostly for core but lets see how this goes 2013-02-24 13:04:50 +11:00
Erik Michaels-Ober
1870498774 Merge pull request #52 from laserlemon/shields
Update the build status images
2013-02-22 13:45:32 -08:00
Steve Richert
7feee5d193 Add pending and error status images 2013-02-22 08:45:10 -05:00
Steve Richert
2b8d1f9161 Update the build status images
Badges… CONSOLIDATE! The Shields project is standardizing the design of code badges. Gemnasium and Code Climate are already on board.

https://twitter.com/svenfuchs/status/300327379673436160
2013-02-21 20:56:16 -05:00
Piotr Sarnacki
d902f44e9c Bump travis-support 2013-02-17 14:01:04 +01:00
Konstantin Haase
2e6865d55f don't run metrics etc in heroku console 2013-02-14 19:12:26 +01:00