Skip to content

Commit

Permalink
Remove Travis artefacts (php#15714)
Browse files Browse the repository at this point in the history
Travis was suspended php#15314

This removes 404 errored Travis image in README, travis configuration
directory and YAML file and usages in tests.

[skip ci]

Co-authored-by: Gina Peter Banyard <[email protected]>
  • Loading branch information
petk and Girgias authored Sep 3, 2024
1 parent 9a9e178 commit 13f0411
Show file tree
Hide file tree
Showing 19 changed files with 1 addition and 231 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ on:
- CONTRIBUTING.md
- CODING_STANDARDS.md
- .cirrus.yml
- .travis.yml
- travis/**
- .circleci/**
branches:
- PHP-8.1
Expand All @@ -28,8 +26,6 @@ on:
- CONTRIBUTING.md
- CODING_STANDARDS.md
- .cirrus.yml
- .travis.yml
- travis/**
- .circleci/**
branches:
- '**'
Expand Down
89 changes: 0 additions & 89 deletions .travis.yml

This file was deleted.

1 change: 0 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,6 @@ locations.
└─ ...
├─ scripts/ # php-config, phpize and internal development scripts
├─ tests/ # Core features tests
├─ travis/ # Travis CI service files
└─ win32/ # Windows build system files
├─ cp_enc_map.c # Generated by `win32/cp_enc_map_gen.exe`
└─ ...
Expand Down
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ blog to the most popular websites in the world. PHP is distributed under the
[PHP License v3.01](LICENSE).

[![Push](https://github.com/php/php-src/actions/workflows/push.yml/badge.svg)](https://github.com/php/php-src/actions/workflows/push.yml)
[![Build status](https://travis-ci.com/php/php-src.svg?branch=master)](https://travis-ci.com/github/php/php-src)
[![Fuzzing Status](https://oss-fuzz-build-logs.storage.googleapis.com/badges/php.svg)](https://bugs.chromium.org/p/oss-fuzz/issues/list?sort=-opened&can=1&q=proj:php)

## Documentation
Expand Down
1 change: 0 additions & 1 deletion docs/release-process.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ releases.

3. Ensure that the relevant tests on CI are green.

- https://travis-ci.com/github/php/php-src
- https://cirrus-ci.com/github/php/php-src
- https://github.com/php/php-src/actions

Expand Down
1 change: 0 additions & 1 deletion ext/gmp/tests/gmp_setbit_long.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ gmp_setbit() with large index
--EXTENSIONS--
gmp
--SKIPIF--
<?php if (getenv("TRAVIS") === "true") die("skip not suitable for Travis-CI"); ?>
<?php if (PHP_INT_SIZE != 8) die("skip this test is for 64bit platform only"); ?>
<?php if (getenv("SKIP_SLOW_TESTS")) die("skip slow test"); ?>
<?php
Expand Down
1 change: 0 additions & 1 deletion ext/pcntl/tests/pcntl_cpuaffinity.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ pcntl
--SKIPIF--
<?php
if (!function_exists("pcntl_setcpuaffinity")) die("skip pcntl_setcpuaffinity is not available");
if (getenv('TRAVIS')) die('skip Currently fails on Travis');
?>
--FILE--
<?php
Expand Down
1 change: 0 additions & 1 deletion ext/pcntl/tests/pcntl_getcpu.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ pcntl
<?php
if (!function_exists("pcntl_getcpu")) die("skip pcntl_getcpu() is not available");
if (!function_exists("pcntl_setcpuaffinity")) die("skip pcntl_setcpuaffinity() is not available");
if (getenv('TRAVIS')) die('skip Currently fails on Travis');
if (getenv('SKIP_REPEAT')) die("skip Not repeatable");
?>
--FILE--
Expand Down
1 change: 0 additions & 1 deletion ext/standard/tests/file/disk_free_space_basic.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
Test disk_free_space and its alias diskfreespace() functions : basic functionality
--SKIPIF--
<?php
if (getenv("TRAVIS") === "true") die("skip inaccurate on TravisCI");
if (getenv('CIRRUS_CI')) die('skip Inaccurate on Cirrus');
?>
--INI--
Expand Down
2 changes: 0 additions & 2 deletions ext/zlib/tests/gzcompress_basic1.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
Test gzcompress() function : basic functionality
--EXTENSIONS--
zlib
--SKIPIF--
<?php if (getenv('TRAVIS')) die('skip Currently fails on Travis'); ?>
--FILE--
<?php
/*
Expand Down
2 changes: 0 additions & 2 deletions ext/zlib/tests/gzdeflate_basic1.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
Test gzdeflate() function : basic functionality
--EXTENSIONS--
zlib
--SKIPIF--
<?php if (getenv('TRAVIS')) die('skip Currently fails on Travis'); ?>
--FILE--
<?php
/*
Expand Down
2 changes: 0 additions & 2 deletions ext/zlib/tests/gzencode_basic1.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
Test gzencode() function : basic functionality
--EXTENSIONS--
zlib
--SKIPIF--
<?php if (getenv('TRAVIS')) die('skip Currently fails on Travis'); ?>
--FILE--
<?php
/*
Expand Down
5 changes: 1 addition & 4 deletions run-tests.php
Original file line number Diff line number Diff line change
Expand Up @@ -308,8 +308,6 @@ function main(): void

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

define('TRAVIS_CI', (bool) getenv('TRAVIS'));

// Determine the tests to be run.

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

if (getenv('NO_INTERACTION') || TRAVIS_CI) {
if (getenv('NO_INTERACTION')) {
return;
}

Expand Down Expand Up @@ -1440,7 +1438,6 @@ function run_all_tests_parallel(array $test_files, array $env, ?string $redir_te
"constants" => [
"INIT_DIR" => INIT_DIR,
"TEST_PHP_SRCDIR" => TEST_PHP_SRCDIR,
"TRAVIS_CI" => TRAVIS_CI
]
])) . "\n";

Expand Down
4 changes: 0 additions & 4 deletions sapi/cli/tests/upload_2G.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,6 @@ if (empty($enough_free_ram)) {
die(sprintf("skip need +3G free RAM, but only %01.2f available", $free_ram));
}

if (getenv('TRAVIS')) {
die("skip Fails intermittently on travis");
}

if (getenv('CIRRUS_CI')) die('skip Fails on Cirrus');

if (getenv('SKIP_PERF_SENSITIVE')) {
Expand Down
12 changes: 0 additions & 12 deletions sapi/fpm/tests/tester.inc
Original file line number Diff line number Diff line change
Expand Up @@ -296,18 +296,6 @@ class Tester
}
}

/**
* Skip if running on Travis.
*
* @param $message
*/
static public function skipIfTravis($message)
{
if (getenv("TRAVIS")) {
die('skip Travis: ' . $message);
}
}

/**
* Skip if not running as root.
*/
Expand Down
76 changes: 0 additions & 76 deletions travis/compile.sh

This file was deleted.

4 changes: 0 additions & 4 deletions travis/setup-mysql.sh

This file was deleted.

8 changes: 0 additions & 8 deletions travis/setup-pgsql.sh

This file was deleted.

17 changes: 0 additions & 17 deletions travis/test.sh

This file was deleted.

0 comments on commit 13f0411

Please sign in to comment.