fix travis ci
This commit is contained in:
parent
134cad57ef
commit
f1135d3b1e
2 changed files with 25 additions and 31 deletions
54
.travis.yml
54
.travis.yml
|
@ -5,14 +5,11 @@ notifications:
|
||||||
email:
|
email:
|
||||||
on_success: never
|
on_success: never
|
||||||
on_failure: change
|
on_failure: change
|
||||||
|
|
||||||
cache:
|
cache:
|
||||||
directories:
|
directories:
|
||||||
- vendor
|
- vendor
|
||||||
- $HOME/.composer/cache
|
- "$HOME/.composer/cache"
|
||||||
|
|
||||||
after_success: bash bin/deploy.sh
|
after_success: bash bin/deploy.sh
|
||||||
|
|
||||||
env:
|
env:
|
||||||
matrix:
|
matrix:
|
||||||
- WP_VERSION=latest WP_MULTISITE=0
|
- WP_VERSION=latest WP_MULTISITE=0
|
||||||
|
@ -20,8 +17,7 @@ env:
|
||||||
- WP_TRAVISCI=travis:phpunit
|
- WP_TRAVISCI=travis:phpunit
|
||||||
- SVN_REPO: https://plugins.svn.wordpress.org/activitypub/
|
- SVN_REPO: https://plugins.svn.wordpress.org/activitypub/
|
||||||
- GH_REF: https://github.com/pfefferle/wordpress-activitypub.git
|
- GH_REF: https://github.com/pfefferle/wordpress-activitypub.git
|
||||||
- secure: "AgeB9Snw4AQqjvWEVavwcvhzQOFHEurl+W08DRh0HilCZEuBNiTRf0V8ExOSjgxcL/bxVoagC9499XcRXKR2S7YjFzAXRAOTbdey8z1I2RWHmdRIKACsgm95uT6arlOAoKPXk3Tp+Ykj591Zw8zVfrhnu81qyTcJSmGk4zphDWwgOiyE8bmXLDA02fPVhB0YnGG07P0HwdmCEwkXIMqJWs8j5vDoJhXFcaaOkywCOgjbwmNtoOJpwURiO19udBrQHDF4ujCxGbzzVhsyMjSjy2GFGC8SO5ZvvoZJL0x+m/1yZfJa1MVcOFuwTFbdJrV04k2bnYeTo5LXy3whg94FdNr32e50hzchDrBPmjYhoUT4/9yBP0okyH/e5M/tahulB2zxEfY1wfbUZjQXbCWOJM6330hnyic5hs1Q3z2LlWCszkZ+sfRwNsGFQOQD+6MXPkwBobgC+sQaQYanT8w9J0Dx2dsgEkMmcrxbdvQ8rohJ6qAza6/t6+8cU9AGfeEzZg7O1SlGN1R1vTFjHhlElF6Fwb+1Tgdq18Iu6sFGKkmgGgjn2lXQlTgcHASgUoYaGrf8h7ZcuLj3WmEIhhoZXetRp1CPE76kPpb19Zf3BYjrMwReaMCxSfTfrEEYh+BYmwjixQFrQgOL9pW60YEq1QZiMufrKBeeAoCB1q7mHyo="
|
- secure: k6uZL/zVYvuSsG4tUMvVC6+DTYKSueOYj6j9csKSa08EzPl0JLPoNN/5MPihi+zZkBPLL+KjBgUUYfBtdcOh/xwPb+lilg5UnvM7TKQEG583RtBbohADvahQHN4mxZb6yBvrmvbB5jNtf+3L4RcOgdONEb2CpGo5n8RRM3MXxF4WSn9s+F+P0fvWCpcZnM9yqgbTJNUaZHw4tRWQ7eYZ5kFxSxKSnZd5+149UAh2YcKjA+ix3rrK0ClOlGaMVZz+SV4/qoNwamxMTMAQ6Be1wIelXz0n92FIonw6euDfBSgNLg+WLiAYoqaM+tEluLV1DRcx5TLUfmAOGli6pEfqL6XZxf8iZheMtn5Ir0nR4vLbOUKEojqEpLwmlUjiTN6RSZbPMquBNz/lOEQd9S/EzPLrtvlBRYAq0EmI62KtXVG+vHta2TTF+LS0caXjVZaHcpF4SYmuG5WyR6d0KpnVw6czvXu7hyq2sNz6lj1hUt15pPZO8tFkJFTs87pOBfEj/GnjIE4Iab2HA/HgdWqFpB+5ZAWH9QDIa9c3+QUQQf2qA7Z1yS0c5SBn/TE+0O3yomyBTD63Zc7gNG2qqw+THql5fzG3iGV5M6db+yTY0INfsJYuRjQXpn9Q35ZTxgXEEvu7naHh162wa14K18zzXoVEjhywOoW3X1Qiz6VFK8s=
|
||||||
|
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- php: 7.2
|
- php: 7.2
|
||||||
|
@ -34,7 +30,6 @@ matrix:
|
||||||
- php: 5.4
|
- php: 5.4
|
||||||
- php: 5.3
|
- php: 5.3
|
||||||
dist: precise
|
dist: precise
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
- |
|
- |
|
||||||
# Remove Xdebug for a huge performance increase:
|
# Remove Xdebug for a huge performance increase:
|
||||||
|
@ -72,7 +67,6 @@ before_script:
|
||||||
if [[ "$WP_TRAVISCI" == "travis:phpcs" ]] ; then
|
if [[ "$WP_TRAVISCI" == "travis:phpcs" ]] ; then
|
||||||
composer install
|
composer install
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- mysql --version
|
- mysql --version
|
||||||
- phpenv versions
|
- phpenv versions
|
||||||
- php --version
|
- php --version
|
||||||
|
@ -84,29 +78,27 @@ before_script:
|
||||||
- git --version
|
- git --version
|
||||||
- svn --version
|
- svn --version
|
||||||
- locale -a
|
- locale -a
|
||||||
|
|
||||||
before_install:
|
before_install:
|
||||||
- export PATH="$HOME/.composer/vendor/bin:$PATH"
|
- export PATH="$HOME/.composer/vendor/bin:$PATH"
|
||||||
- |
|
- |
|
||||||
if [[ ! -z "$WP_VERSION" ]] ; then
|
if [[ ! -z "$WP_VERSION" ]] ; then
|
||||||
set -e
|
set -e
|
||||||
bash bin/install-wp-tests.sh wordpress_test root '' localhost $WP_VERSION
|
bash bin/install-wp-tests.sh wordpress_test root '' localhost $WP_VERSION
|
||||||
set +e
|
set +e
|
||||||
fi
|
fi
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- |
|
- |
|
||||||
if [[ ! -z "$WP_VERSION" ]] ; then
|
if [[ ! -z "$WP_VERSION" ]] ; then
|
||||||
# Run the build because otherwise there will be a bunch of warnings about
|
# Run the build because otherwise there will be a bunch of warnings about
|
||||||
# failed `stat` calls from `filemtime()`.
|
# failed `stat` calls from `filemtime()`.
|
||||||
echo Running with the following versions:
|
echo Running with the following versions:
|
||||||
php -v
|
php -v
|
||||||
phpunit --version
|
phpunit --version
|
||||||
# Run PHPUnit tests
|
# Run PHPUnit tests
|
||||||
phpunit || exit 1
|
phpunit || exit 1
|
||||||
WP_MULTISITE=1 phpunit || exit 1
|
WP_MULTISITE=1 phpunit || exit 1
|
||||||
fi
|
fi
|
||||||
- |
|
- |
|
||||||
if [[ "$WP_TRAVISCI" == "travis:phpcs" ]] ; then
|
if [[ "$WP_TRAVISCI" == "travis:phpcs" ]] ; then
|
||||||
./vendor/bin/phpcs -p -s -v -n --standard=./phpcs.ruleset.xml --extensions=php
|
./vendor/bin/phpcs -p -s -v -n --standard=./phpcs.ruleset.xml --extensions=php
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -66,6 +66,8 @@ svn st | grep '^!' | sed -e 's/\![ ]*/svn del -q /g' | sh
|
||||||
echo "Run svn add"
|
echo "Run svn add"
|
||||||
svn st | grep '^?' | sed -e 's/\?[ ]*/svn add -q /g' | sh
|
svn st | grep '^?' | sed -e 's/\?[ ]*/svn add -q /g' | sh
|
||||||
|
|
||||||
|
echo "Release tag: $TRAVIS_TAG as user: $SVN_USER"
|
||||||
|
|
||||||
# If tag number and credentials are provided, commit to trunk.
|
# If tag number and credentials are provided, commit to trunk.
|
||||||
if [[ $TRAVIS_TAG && $SVN_USER && $SVN_PASS ]]; then
|
if [[ $TRAVIS_TAG && $SVN_USER && $SVN_PASS ]]; then
|
||||||
if [[ ! -d tags/$TRAVIS_TAG ]]; then
|
if [[ ! -d tags/$TRAVIS_TAG ]]; then
|
||||||
|
|
Loading…
Reference in a new issue