-
-
Notifications
You must be signed in to change notification settings - Fork 40
Expand file tree
/
Copy pathtravis.php
More file actions
28 lines (22 loc) · 667 Bytes
/
travis.php
File metadata and controls
28 lines (22 loc) · 667 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?php
declare(strict_types=1);
$server = proc_open(PHP_BINARY . " /home/travis/build/PocketMine-MP/PocketMine-MP.phar --no-wizard --disable-readline", [
0 => ['pipe', 'r'],
1 => ['pipe', 'w'],
2 => ['pipe', 'w'],
], $pipes
);
fwrite($pipes[0], "blocksniper\nmakeplugin BlockSniper\nstop\n\n");
while(!feof($pipes[1])){
echo fgets($pipes[1]);
}
fclose($pipes[0]);
fclose($pipes[1]);
fclose($pipes[2]);
echo "\n\nReturn value: " . proc_close($server) . "\n";
if(count(glob('PocketMine-MP/plugins/DevTools/BlockSniper*.phar')) === 0){
echo "The BlockSniper Travis CI build failed.\n";
exit(1);
}
echo "The BlockSniper Travis CI build succeeded.\n";
exit(0);