Commit Graph

2028 Commits

Author SHA1 Message Date
Joe Corcoran
0aeec35935 Fix duplicate lines from rebase 2016-06-22 16:59:49 +02:00
Joe Corcoran
769ae71076 Fix service specs 2016-06-22 16:50:11 +02:00
Joe Corcoran
88d9000042 Refactor repeated pattern into extracted method
Seems like we'll be checking login status before finding a resource
a lot, so here's a standard way to do it.
2016-06-21 15:34:11 +02:00
Joe Corcoran
81e93ca710 Better style in error handling 2016-06-21 15:34:11 +02:00
Joe Corcoran
00fb01bd7a Remove some duplication 2016-06-21 15:34:11 +02:00
Joe Corcoran
cae6da540f Add env vars endpoints
This adds API V3 endpoints for querying, creating, modifying and
deleting environment variables.

It has no concept of encryption yet and should be considered a work in
progress.

We should also talk about the slightly off-track approach in the
EnvVars::Create service – maybe there's a way to standardise the
querying and rendering for post requests?

2016-06-21 15:34:11 +02:00
Joe Corcoran
026dc4cb98 Use travis-settings to manage JSON settings field
Since we use repository.settings as a kind of dump for all
sorts of settings, some user-facing and some not, this lets us
leave the db as it is, but pretend to have separate models for each
"kind" of setting.
2016-06-21 15:33:05 +02:00
Sven Fuchs
cf5ea374d4 Merge pull request #277 from travis-ci/sf-cleanup-core
cleanup core
2016-06-21 15:28:39 +02:00
Sven Fuchs
dc176e0c0e remove commented callback code 2016-06-21 15:20:24 +02:00
Sven Fuchs
25f74defe5 try fixing updating github oauth scopes 2016-06-21 14:00:04 +02:00
Sven Fuchs
7250656de0 fix event notification 2016-06-21 12:16:43 +02:00
Sven Fuchs
6603990fe4 trigger sync in the auth endpoint, not the user model 2016-06-20 16:59:55 +02:00
Sven Fuchs
da4c7f26e6 fix auth endpoint 2016-06-20 15:04:38 +02:00
Sven Fuchs
060dd8aced delete github/find_or_create[org|repo|user] services 2016-06-20 11:26:47 +02:00
Sven Fuchs
84ebb6b24e move tracking github oauth scopes out of the user model, and into Travis::Github::Oauth 2016-06-19 17:33:03 +02:00
Sven Fuchs
734a7b9566 use travis-settings, remove travis/settings 2016-06-19 16:07:06 +02:00
Sven Fuchs
eb78d9df30 remove overwritable_method_definitions 2016-06-19 15:51:41 +02:00
Sven Fuchs
fb0493a33c delete commitcommand, request approval, branches, and states 2016-06-19 15:46:30 +02:00
Sven Fuchs
04cd5bea24 move travis.rb and travis/config to lib 2016-06-19 15:20:11 +02:00
Sven Fuchs
c6f6dd5f5a we can now run all specs in one go 2016-06-19 15:15:52 +02:00
Sven Fuchs
0f1e697abd delete github/services/sync_user and user_mailer, remove action_mailer 2016-06-19 15:04:39 +02:00
Sven Fuchs
a6658fa4d3 get rid of spec_helper_core 2016-06-19 14:35:54 +02:00
Sven Fuchs
a26c188822 move travis/api/serialize/* from core to lib 2016-06-18 18:01:09 +02:00
Sven Fuchs
51c6c8f58f move api/serializer to api/serialize/serializer 2016-06-18 17:58:36 +02:00
Sven Fuchs
81d8c64e98 rename api/v[0-2] to api/serialize/v[0-2] 2016-06-18 17:52:48 +02:00
Ana Rosas
4e858e3949 Merge pull request #265 from travis-ci/ar-enqueue-cancelling-jobs-builds
Enqueue messages for Hub to cancel Jobs/Builds | Modify restart endpoints
2016-06-15 16:22:05 +02:00
Ana Rosas
bf20506e09 Merge branch 'master' into ar-enqueue-cancelling-jobs-builds 2016-06-15 16:15:05 +02:00
Ana Rosas
41c274b222 Remove 'type' from payload 2016-06-15 14:36:59 +02:00
Tyranja
3cfac6a5c1 Merge pull request #267 from travis-ci/rlh-are-remove-core
Move the travis-core dependancy into vendor
2016-06-15 13:59:42 +02:00
Sven Fuchs
3508df01a9 fix rake spec task 2016-06-14 19:12:54 +02:00
Sven Fuchs
c0e57cc890 add dependencies from travis-core 2016-06-14 19:10:34 +02:00
Sven Fuchs
4155c8ebcd remove travis-core dependency from gemspec 2016-06-14 17:45:10 +02:00
Ana Rosas
5949429f75 Enqueue restart message on job/restart v3 endpoint 2016-06-14 17:39:29 +02:00
Ana Rosas
a2d1322b60 Enqueue cancel message on job/cancel v3 endpoint 2016-06-14 17:24:05 +02:00
Ana Rosas
bb7260bc9e Enqueue restart message on build restart v3 endpoint 2016-06-14 16:46:29 +02:00
Tyranja
91ca0efe03 Fix gemspec AGAIN 2016-06-14 15:31:07 +02:00
Tyranja
b36a6f8358 Fix gemspec AGAIN 2016-06-14 15:28:05 +02:00
Tyranja
06de527c63 Sort and uniq gemspec authors and emails 2016-06-14 15:20:45 +02:00
Tyranja
8f9d5e41b7 remove debugging output 2016-06-14 15:18:15 +02:00
Tyranja
2624bd9e72 Revert "Removes the unused travis-core v0 code"
This reverts commit a68c0028d8e8dfb4a0e7f965e57fbc9e8686ba86.
2016-06-14 15:18:15 +02:00
Tyranja
56a59e4cc3 Adds debugging output for canceling jobs 2016-06-14 15:18:15 +02:00
Tyranja
c4e58c3e63 Add Commit_command back to vendor 2016-06-14 15:17:47 +02:00
Tyranja
341adbae21 Removes the unused travis-core v0 code 2016-06-14 15:17:47 +02:00
Sven Fuchs
feb4bcd90f delete unused stuffz 2016-06-14 15:17:47 +02:00
Renée Hendricksen
0077b6414a fix sidekiq on this branch 2016-06-14 15:17:47 +02:00
Renée Hendricksen
489c404bbb updated gemspec 2016-06-14 15:17:47 +02:00
Renée Hendricksen
e467fa3e6d renamed the core spec directory 2016-06-14 15:17:47 +02:00
Renée Hendricksen
ce071ad728 log pattern got excluded 2016-06-14 15:17:20 +02:00
Renée Hendricksen
5776e13385 wrong ruby in travis file 2016-06-14 15:17:20 +02:00
Renée Hendricksen
62f0bf7081 this is needed too 2016-06-14 15:17:20 +02:00