fork of https://github.com/oxigraph/rocksdb and https://github.com/facebook/rocksdb for nextgraph and oxigraph
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
939 B
33 lines
939 B
10 years ago
|
<?php
|
||
|
// Copyright 2004-present Facebook. All Rights Reserved.
|
||
|
|
||
|
class FacebookArcanistConfiguration extends ArcanistConfiguration {
|
||
|
|
||
|
public function didRunWorkflow($command,
|
||
|
ArcanistBaseWorkflow $workflow,
|
||
|
$error_code) {
|
||
|
if ($command == 'diff' && !$workflow->isRawDiffSource()) {
|
||
|
$this->maybePushToJenkins($workflow);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
//////////////////////////////////////////////////////////////////////
|
||
|
/* Send off builds to jenkins */
|
||
|
function maybePushToJenkins($workflow) {
|
||
|
$diffID = $workflow->getDiffID();
|
||
|
if ($diffID === null) {
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
$results = $workflow->getTestResults();
|
||
|
if (!$results) {
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
$url = "https://ci-builds.fb.com/view/rocksdb/job/rocksdb_diff_check/"
|
||
|
."buildWithParameters?token=AUTH&DIFF_ID=$diffID";
|
||
|
system("curl --noproxy '*' \"$url\" > /dev/null 2>&1");
|
||
|
}
|
||
|
|
||
|
}
|