24 lines
484 B
PHP
Executable File
24 lines
484 B
PHP
Executable File
#!/usr/bin/env php
|
|
<?php
|
|
|
|
/**
|
|
|
|
title=gitModel->run();
|
|
timeout=0
|
|
cid=1
|
|
|
|
- 更新git提交信息到禅道,Gtilab的webhook调用 @0
|
|
|
|
*/
|
|
|
|
include dirname(__FILE__, 5) . '/test/lib/init.php';
|
|
include dirname(__FILE__, 2) . '/lib/git.unittest.class.php';
|
|
|
|
zenData('job')->gen(0);
|
|
zenData('repo')->loadYaml('repo')->gen(1);
|
|
zenData('repohistory')->gen(0);
|
|
su('admin');
|
|
|
|
$git = new gitTest();
|
|
|
|
r($git->runTest()) && p() && e('0'); // 更新git提交信息到禅道,Gtilab的webhook调用
|