mirror of
git://develop.git.wordpress.org/
synced 2025-01-17 12:58:25 +01:00
Build/Test Tools: Remove the TravisCI configuration file.
In [49162], GitHub Action workflow configuration files were introduced to run all of Core’s automated testing with the intent to fully transition after some time was allowed for testing. After two full months of testing, the time to finish this transition has come. We thank TravisCI for testing the codebase through nearly 20 major and many more minor releases. Merges [49876] to the 4.8 branch. See #52161. See #50401. git-svn-id: https://develop.svn.wordpress.org/branches/4.8@49885 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
3344fe7002
commit
38e448e2b5
135
.travis.yml
135
.travis.yml
@ -1,135 +0,0 @@
|
||||
language: php
|
||||
|
||||
services:
|
||||
- docker
|
||||
|
||||
cache:
|
||||
apt: true
|
||||
directories:
|
||||
- $HOME/.npm
|
||||
- vendor
|
||||
|
||||
env:
|
||||
global:
|
||||
- LOCAL_DIR: build
|
||||
- NPM_INSTALL: true
|
||||
- WP_INSTALL: true
|
||||
- PHP_FPM_UID: "`id -u`"
|
||||
- PHP_FPM_GID: "`id -g`"
|
||||
|
||||
matrix:
|
||||
include:
|
||||
- env: WP_TRAVISCI=travis:js LOCAL_PHP=7.1-fpm WP_INSTALL=false
|
||||
name: "JS Tests"
|
||||
- env: LOCAL_PHPUNIT=6-php-7.1-fpm WP_TRAVISCI=test:php
|
||||
name: "PHPUnit Tests: PHP 7.1"
|
||||
- env: LOCAL_PHP_MEMCACHED=true LOCAL_PHP=5.6-fpm LOCAL_PHPUNIT=4-php-5.6-fpm WP_TRAVISCI=test:php
|
||||
name: "PHPUnit Tests: PHP 5.6 with Memcached"
|
||||
- env: WP_TRAVISCI=travis:phpunit WP_INSTALL=false
|
||||
php: 5.2
|
||||
dist: precise
|
||||
name: "PHPUnit Tests: PHP 5.2"
|
||||
fast_finish: true
|
||||
|
||||
before_install:
|
||||
- |
|
||||
if [[ "$WP_TRAVISCI" == "test:php" ]]; then
|
||||
travis_retry svn checkout https://plugins.svn.wordpress.org/wordpress-importer/tags/0.6.3/ tests/phpunit/data/plugins/wordpress-importer
|
||||
fi
|
||||
- |
|
||||
if [[ "$WP_TRAVISCI" != "travis:phpunit" ]]; then
|
||||
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
|
||||
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
|
||||
sudo apt-get update
|
||||
sudo apt-get -y -o Dpkg::Options::="--force-confnew" install docker-ce
|
||||
fi
|
||||
- |
|
||||
sudo rm /usr/local/bin/docker-compose
|
||||
curl -L https://github.com/docker/compose/releases/download/1.24.0/docker-compose-`uname -s`-`uname -m` > docker-compose
|
||||
chmod +x docker-compose
|
||||
sudo mv docker-compose /usr/local/bin
|
||||
- |
|
||||
if [[ "$WP_TRAVISCI" == "travis:phpunit" ]]; then
|
||||
mysql -u root -e "CREATE DATABASE wordpress_tests;"
|
||||
cp wp-tests-config-sample.php wp-tests-config.php
|
||||
sed -i "s/youremptytestdbnamehere/wordpress_tests/" wp-tests-config.php
|
||||
sed -i "s/yourusernamehere/root/" wp-tests-config.php
|
||||
sed -i "s/yourpasswordhere//" wp-tests-config.php
|
||||
travis_retry svn checkout https://plugins.svn.wordpress.org/wordpress-importer/tags/0.6.3/ tests/phpunit/data/plugins/wordpress-importer
|
||||
fi
|
||||
|
||||
before_script:
|
||||
- npm --version
|
||||
- node --version
|
||||
- nvm install
|
||||
- |
|
||||
if [[ "$WP_TRAVISCI" == "travis:phpunit" ]]; then
|
||||
phpenv config-rm xdebug.ini
|
||||
mysql --version
|
||||
phpenv versions
|
||||
php --version
|
||||
php -m
|
||||
fi
|
||||
- |
|
||||
if [[ "$NPM_INSTALL" == "true" ]]; then
|
||||
npm install
|
||||
fi
|
||||
- |
|
||||
if [[ "$WP_TRAVISCI" == "test:php" ]]; then
|
||||
npm run env:start
|
||||
npm run build
|
||||
docker-compose run --rm mysql mysql --version
|
||||
docker-compose run --rm php php --version
|
||||
docker-compose run --rm php php -m
|
||||
docker-compose run --rm phpunit phpunit --version
|
||||
fi
|
||||
- |
|
||||
if [[ "$LOCAL_PHP_MEMCACHED" == "true" ]]; then
|
||||
cp tests/phpunit/includes/object-cache.php build/wp-content/object-cache.php
|
||||
# The memcached server needs to start after `npm run env:start`, which sets up the Docker network.
|
||||
docker run --name memcached --net $(basename "$PWD")_wpdevnet -d memcached
|
||||
fi
|
||||
- |
|
||||
if [[ "$WP_INSTALL" == "true" ]]; then
|
||||
# Run the install process after memcached has started.
|
||||
npm run env:install
|
||||
fi
|
||||
- npm --version
|
||||
- node --version
|
||||
- curl --version
|
||||
- git --version
|
||||
- svn --version
|
||||
- php --version
|
||||
- php -i
|
||||
- locale -a
|
||||
|
||||
script:
|
||||
- |
|
||||
if [[ "$WP_TRAVISCI" == "test:php" ]]; then
|
||||
npm run test:php -- --verbose -c phpunit.xml.dist &&
|
||||
npm run test:php -- --verbose -c phpunit.xml.dist --group ajax &&
|
||||
npm run test:php -- --verbose -c tests/phpunit/multisite.xml &&
|
||||
npm run test:php -- --verbose -c tests/phpunit/multisite.xml --group ms-files &&
|
||||
npm run test:php -- --verbose -c phpunit.xml.dist --group external-http &&
|
||||
npm run test:php -- --verbose -c phpunit.xml.dist --group restapi-jsclient &&
|
||||
# __fakegroup__ is excluded to force PHPUnit to ignore the <exclude> settings in phpunit.xml.dist.
|
||||
LOCAL_PHP_XDEBUG=true npm run test:php -- -v --group xdebug --exclude-group __fakegroup__
|
||||
else
|
||||
npm run grunt $WP_TRAVISCI
|
||||
fi
|
||||
|
||||
after_script:
|
||||
- |
|
||||
if [[ "$WP_TEST_REPORTER" == "true" ]]; then
|
||||
git clone https://github.com/WordPress/phpunit-test-runner.git test-runner
|
||||
docker-compose run --rm -e WPT_PREPARE_DIR=/var/www -e WPT_TEST_DIR=/var/www php php test-runner/report.php
|
||||
fi
|
||||
|
||||
notifications:
|
||||
slack:
|
||||
rooms:
|
||||
secure: PO3x/bhYXNFqAMtzDzpOAnHcg2KzG2gGbBDft1HlqN4O8hRJqrRs7hqsEe9wKZUs6qf9Jv0ZleJ5AmcSd0DbDAFsfqeWtnWpsj8NqOIWgLX0C2idvfNRzCX1mUd6E1hlAjjTGnKn4MV3m1dRurwcDqacSBVtbXKQ+yPSgM3eXYkDz8EFbTsMcda8pFskcXr98E7/YomU0QtgOcjXndxGZ53zUQ1rfaDwUJzGY3bn5nLoweVZsSIeEFSiNcip7Kt22zVlU0SAb6QlBf3F0h9IWoRD59BQ7pkl53FWzpXoHzUYOFmn0jB5y1vHMlHvTDVEmDuumpCEqnxVvLh33AwGtqYRWH36PEfTn/u1YTFr7FS7KbwrKw9Nn+jUZe3KFrVzgQNUt0El33mO0FbSoNEWJhxRarp0D1z3/HVsbon3Fwzt/3jBHGf9nI+tHH4u7KQ70+M7pzBsV7F7Lc60YnuKrcy/hkwObGB0Za9tMHPUw3c7b4ep6nSa4ts9S++IijLWDaNAq7K/j7fAfI1JrkPIw4T6PcGpNAADkmlCrvToKE4axExaJke/lkUb+3Pwdj0h7ePzPSrHT8aASlKFM1PuI1KRMn/J4wRLtGeLlfYXvVlaQYmJobJtYgoiNWJWMIybLGVBSVPohdGO3qIJbl8WNPN1cW2ZZTcEBprLe8y7MSo=
|
||||
on_start: never
|
||||
on_failure: always
|
||||
on_success: change
|
||||
on_pull_requests: false
|
Loading…
x
Reference in New Issue
Block a user