mirror of
https://github.com/php/php-src.git
synced 2024-09-21 09:57:23 +00:00
Remove Travis artefacts (#15714)
Travis was suspended https://github.com/php/php-src/pull/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 <girgias@php.net>
This commit is contained in:
parent
9a9e178328
commit
13f041163c
4
.github/workflows/push.yml
vendored
4
.github/workflows/push.yml
vendored
@ -10,8 +10,6 @@ on:
|
||||
- CONTRIBUTING.md
|
||||
- CODING_STANDARDS.md
|
||||
- .cirrus.yml
|
||||
- .travis.yml
|
||||
- travis/**
|
||||
- .circleci/**
|
||||
branches:
|
||||
- PHP-8.1
|
||||
@ -28,8 +26,6 @@ on:
|
||||
- CONTRIBUTING.md
|
||||
- CODING_STANDARDS.md
|
||||
- .cirrus.yml
|
||||
- .travis.yml
|
||||
- travis/**
|
||||
- .circleci/**
|
||||
branches:
|
||||
- '**'
|
||||
|
89
.travis.yml
89
.travis.yml
@ -1,89 +0,0 @@
|
||||
git:
|
||||
quiet: true
|
||||
|
||||
dist: focal
|
||||
language: c
|
||||
os: linux
|
||||
addons:
|
||||
apt:
|
||||
packages:
|
||||
- locales
|
||||
- language-pack-de
|
||||
- re2c
|
||||
- ccache
|
||||
- mysql-server
|
||||
- libbz2-dev
|
||||
- libcurl4-gnutls-dev
|
||||
- libenchant-dev
|
||||
- libfreetype6-dev
|
||||
- libgmp-dev
|
||||
- libicu-dev
|
||||
- libjpeg-dev
|
||||
- libonig-dev
|
||||
- libpng-dev
|
||||
- libpq-dev
|
||||
- libsasl2-dev
|
||||
- libsqlite3-dev
|
||||
- libsodium-dev
|
||||
- libtidy-dev
|
||||
- libwebp-dev
|
||||
- libxml2-dev
|
||||
- libxpm-dev
|
||||
- libxslt1-dev
|
||||
- libzip-dev
|
||||
|
||||
|
||||
services:
|
||||
- mysql
|
||||
- postgresql
|
||||
|
||||
notifications:
|
||||
email:
|
||||
on_failure: change
|
||||
irc:
|
||||
template:
|
||||
- "%{repository}#%{build_number} (%{branch} - %{commit} : %{author}): %{message} - Change view : %{compare_url} - Build details : %{build_url}"
|
||||
channels:
|
||||
- "irc.efnet.org#php.pecl"
|
||||
on_success: change
|
||||
on_failure: always
|
||||
|
||||
cache:
|
||||
apt: true
|
||||
ccache: true
|
||||
|
||||
env:
|
||||
global:
|
||||
- MYSQL_TEST_HOST=127.0.0.1
|
||||
- MYSQL_TEST_USER=travis
|
||||
- PDO_MYSQL_TEST_DSN="mysql:host=127.0.0.1;dbname=test"
|
||||
- PDO_MYSQL_TEST_USER=travis
|
||||
- PDO_MYSQL_TEST_PASS=
|
||||
- PDO_MYSQL_TEST_HOST=127.0.0.1
|
||||
- PDO_PGSQL_TEST_DSN="pgsql:host=localhost port=5432 dbname=test user=postgres password="
|
||||
- REPORT_EXIT_STATUS=1
|
||||
|
||||
jobs:
|
||||
include:
|
||||
- env: ENABLE_ZTS=1 ENABLE_DEBUG=1 S390X=1
|
||||
arch: s390x
|
||||
|
||||
before_script:
|
||||
- ccache --version
|
||||
- ccache --zero-stats
|
||||
- export USE_CCACHE=1
|
||||
# Enable IPv6
|
||||
- sudo sh -c 'echo 0 > /proc/sys/net/ipv6/conf/all/disable_ipv6'
|
||||
# Compile PHP
|
||||
- travis_wait ./travis/compile.sh
|
||||
# Setup Extensions
|
||||
- ./travis/setup-mysql.sh
|
||||
- ./travis/setup-pgsql.sh
|
||||
|
||||
# Run PHPs run-tests.php
|
||||
script:
|
||||
- ./travis/test.sh -d opcache.jit=tracing -d opcache.jit_buffer_size=64M
|
||||
- sapi/cli/php -d extension_dir=`pwd`/modules -r 'dl("zend_test");'
|
||||
|
||||
after_success:
|
||||
- ccache --show-stats
|
@ -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`
|
||||
└─ ...
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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--
|
||||
|
@ -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--
|
||||
|
@ -2,8 +2,6 @@
|
||||
Test gzcompress() function : basic functionality
|
||||
--EXTENSIONS--
|
||||
zlib
|
||||
--SKIPIF--
|
||||
<?php if (getenv('TRAVIS')) die('skip Currently fails on Travis'); ?>
|
||||
--FILE--
|
||||
<?php
|
||||
/*
|
||||
|
@ -2,8 +2,6 @@
|
||||
Test gzdeflate() function : basic functionality
|
||||
--EXTENSIONS--
|
||||
zlib
|
||||
--SKIPIF--
|
||||
<?php if (getenv('TRAVIS')) die('skip Currently fails on Travis'); ?>
|
||||
--FILE--
|
||||
<?php
|
||||
/*
|
||||
|
@ -2,8 +2,6 @@
|
||||
Test gzencode() function : basic functionality
|
||||
--EXTENSIONS--
|
||||
zlib
|
||||
--SKIPIF--
|
||||
<?php if (getenv('TRAVIS')) die('skip Currently fails on Travis'); ?>
|
||||
--FILE--
|
||||
<?php
|
||||
/*
|
||||
|
@ -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 = [];
|
||||
@ -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;
|
||||
}
|
||||
|
||||
@ -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";
|
||||
|
||||
|
@ -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')) {
|
||||
|
@ -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.
|
||||
*/
|
||||
|
@ -1,76 +0,0 @@
|
||||
#!/bin/bash
|
||||
set -ex
|
||||
if [[ "$ENABLE_ZTS" == 1 ]]; then
|
||||
TS="--enable-zts";
|
||||
else
|
||||
TS="";
|
||||
fi
|
||||
if [[ "$ENABLE_DEBUG" == 1 ]]; then
|
||||
DEBUG="--enable-debug";
|
||||
else
|
||||
DEBUG="";
|
||||
fi
|
||||
if [[ "$S390X" == 1 ]]; then
|
||||
S390X_CONFIG="--without-pcre-jit";
|
||||
else
|
||||
S390X_CONFIG="";
|
||||
fi
|
||||
|
||||
./buildconf --force
|
||||
./configure \
|
||||
--enable-option-checking=fatal \
|
||||
--prefix="$HOME"/php-install \
|
||||
$CONFIG_QUIET \
|
||||
$DEBUG \
|
||||
$TS \
|
||||
$S390X_CONFIG \
|
||||
--enable-phpdbg \
|
||||
--enable-fpm \
|
||||
--with-pdo-mysql=mysqlnd \
|
||||
--with-mysqli=mysqlnd \
|
||||
--with-pgsql \
|
||||
--with-pdo-pgsql \
|
||||
--with-pdo-sqlite \
|
||||
--enable-intl \
|
||||
--without-pear \
|
||||
--enable-gd \
|
||||
--with-jpeg \
|
||||
--with-webp \
|
||||
--with-freetype \
|
||||
--with-xpm \
|
||||
--enable-exif \
|
||||
--with-zip \
|
||||
--with-zlib \
|
||||
--enable-soap \
|
||||
--enable-xmlreader \
|
||||
--with-xsl \
|
||||
--with-tidy \
|
||||
--enable-sysvsem \
|
||||
--enable-sysvshm \
|
||||
--enable-shmop \
|
||||
--enable-pcntl \
|
||||
--with-readline \
|
||||
--enable-mbstring \
|
||||
--with-curl \
|
||||
--with-gettext \
|
||||
--enable-sockets \
|
||||
--with-bz2 \
|
||||
--with-openssl \
|
||||
--with-gmp \
|
||||
--enable-bcmath \
|
||||
--enable-calendar \
|
||||
--enable-ftp \
|
||||
--with-enchant=/usr \
|
||||
--enable-sysvmsg \
|
||||
--with-ffi \
|
||||
--with-sodium \
|
||||
--enable-zend-test=shared \
|
||||
--enable-dl-test=shared \
|
||||
--enable-werror \
|
||||
--with-pear
|
||||
|
||||
if [[ -z "$CONFIG_ONLY" ]]; then
|
||||
MAKE_JOBS=${MAKE_JOBS:-$(nproc)}
|
||||
make "-j${MAKE_JOBS}" $MAKE_QUIET
|
||||
make install
|
||||
fi
|
@ -1,4 +0,0 @@
|
||||
#!/bin/sh
|
||||
set -ev
|
||||
|
||||
mysql -vvv -e "CREATE DATABASE IF NOT EXISTS test"
|
@ -1,8 +0,0 @@
|
||||
#!/bin/sh
|
||||
set -ev
|
||||
|
||||
# PostgreSQL tests currently don't work on some architectures.
|
||||
if test -z "${ARM64}${S390X}"; then
|
||||
psql -c "ALTER USER postgres PASSWORD 'postgres';" -U postgres
|
||||
psql -c "CREATE DATABASE test;" -U postgres
|
||||
fi
|
@ -1,17 +0,0 @@
|
||||
#!/bin/bash
|
||||
set -ex
|
||||
|
||||
# ARM64 CI reports nproc=32, which is excessive.
|
||||
if [ -z "$ARM64" ]; then export JOBS=$(nproc); else export JOBS=16; fi
|
||||
|
||||
export SKIP_SLOW_TESTS=1
|
||||
export SKIP_IO_CAPTURE_TESTS=1
|
||||
./sapi/cli/php run-tests.php -P \
|
||||
-g "FAIL,SKIP,BORK,LEAK" --offline --show-diff --show-slow 1000 \
|
||||
--no-progress \
|
||||
--set-timeout 120 -j$JOBS \
|
||||
-d extension=`pwd`/modules/zend_test.so \
|
||||
-d zend_extension=`pwd`/modules/opcache.so \
|
||||
-d opcache.enable_cli=1 \
|
||||
-d opcache.protect_memory=1 \
|
||||
"$@"
|
Loading…
Reference in New Issue
Block a user