Skip to content

Commit b8b4601

Browse files
committed
Remove Travis from tests
1 parent b289690 commit b8b4601

File tree

10 files changed

+2
-31
lines changed

10 files changed

+2
-31
lines changed

ext/gmp/tests/gmp_setbit_long.phpt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ gmp_setbit() with large index
33
--EXTENSIONS--
44
gmp
55
--SKIPIF--
6-
<?php if (getenv("TRAVIS") === "true") die("skip not suitable for Travis-CI"); ?>
76
<?php if (PHP_INT_SIZE != 8) die("skip this test is for 64bit platform only"); ?>
87
<?php if (getenv("SKIP_SLOW_TESTS")) die("skip slow test"); ?>
98
<?php

ext/pcntl/tests/pcntl_cpuaffinity.phpt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ pcntl
55
--SKIPIF--
66
<?php
77
if (!function_exists("pcntl_setcpuaffinity")) die("skip pcntl_setcpuaffinity is not available");
8-
if (getenv('TRAVIS')) die('skip Currently fails on Travis');
98
?>
109
--FILE--
1110
<?php

ext/pcntl/tests/pcntl_getcpu.phpt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ pcntl
66
<?php
77
if (!function_exists("pcntl_getcpu")) die("skip pcntl_getcpu() is not available");
88
if (!function_exists("pcntl_setcpuaffinity")) die("skip pcntl_setcpuaffinity() is not available");
9-
if (getenv('TRAVIS')) die('skip Currently fails on Travis');
109
if (getenv('SKIP_REPEAT')) die("skip Not repeatable");
1110
?>
1211
--FILE--

ext/standard/tests/file/disk_free_space_basic.phpt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
Test disk_free_space and its alias diskfreespace() functions : basic functionality
33
--SKIPIF--
44
<?php
5-
if (getenv("TRAVIS") === "true") die("skip inaccurate on TravisCI");
65
if (getenv('CIRRUS_CI')) die('skip Inaccurate on Cirrus');
76
?>
87
--INI--

ext/zlib/tests/gzcompress_basic1.phpt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
Test gzcompress() function : basic functionality
33
--EXTENSIONS--
44
zlib
5-
--SKIPIF--
6-
<?php if (getenv('TRAVIS')) die('skip Currently fails on Travis'); ?>
75
--FILE--
86
<?php
97
/*

ext/zlib/tests/gzdeflate_basic1.phpt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
Test gzdeflate() function : basic functionality
33
--EXTENSIONS--
44
zlib
5-
--SKIPIF--
6-
<?php if (getenv('TRAVIS')) die('skip Currently fails on Travis'); ?>
75
--FILE--
86
<?php
97
/*

ext/zlib/tests/gzencode_basic1.phpt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
Test gzencode() function : basic functionality
33
--EXTENSIONS--
44
zlib
5-
--SKIPIF--
6-
<?php if (getenv('TRAVIS')) die('skip Currently fails on Travis'); ?>
75
--FILE--
86
<?php
97
/*

run-tests.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -308,8 +308,6 @@ function main(): void
308308

309309
$no_file_cache = '-d opcache.file_cache= -d opcache.file_cache_only=0';
310310

311-
define('TRAVIS_CI', (bool) getenv('TRAVIS'));
312-
313311
// Determine the tests to be run.
314312

315313
$test_files = [];
@@ -916,7 +914,7 @@ function save_results(string $output_file, bool $prompt_to_save_results): void
916914
{
917915
global $sum_results, $failed_test_summary, $PHP_FAILED_TESTS, $php;
918916

919-
if (getenv('NO_INTERACTION') || TRAVIS_CI) {
917+
if (getenv('NO_INTERACTION')) {
920918
return;
921919
}
922920

@@ -1439,8 +1437,7 @@ function run_all_tests_parallel(array $test_files, array $env, ?string $redir_te
14391437
"GLOBALS" => $GLOBALS,
14401438
"constants" => [
14411439
"INIT_DIR" => INIT_DIR,
1442-
"TEST_PHP_SRCDIR" => TEST_PHP_SRCDIR,
1443-
"TRAVIS_CI" => TRAVIS_CI
1440+
"TEST_PHP_SRCDIR" => TEST_PHP_SRCDIR
14441441
]
14451442
])) . "\n";
14461443

sapi/cli/tests/upload_2G.phpt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,6 @@ if (empty($enough_free_ram)) {
3232
die(sprintf("skip need +3G free RAM, but only %01.2f available", $free_ram));
3333
}
3434

35-
if (getenv('TRAVIS')) {
36-
die("skip Fails intermittently on travis");
37-
}
38-
3935
if (getenv('CIRRUS_CI')) die('skip Fails on Cirrus');
4036

4137
if (getenv('SKIP_PERF_SENSITIVE')) {

sapi/fpm/tests/tester.inc

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -296,18 +296,6 @@ class Tester
296296
}
297297
}
298298

299-
/**
300-
* Skip if running on Travis.
301-
*
302-
* @param $message
303-
*/
304-
static public function skipIfTravis($message)
305-
{
306-
if (getenv("TRAVIS")) {
307-
die('skip Travis: ' . $message);
308-
}
309-
}
310-
311299
/**
312300
* Skip if not running as root.
313301
*/

0 commit comments

Comments
 (0)