fix: add ignore platform reqs on build travis travis for php versions
This commit is contained in:
parent
f6a107d9f1
commit
c1db04e8d2
|
@ -2,8 +2,8 @@ sudo: true
|
||||||
language: php
|
language: php
|
||||||
php:
|
php:
|
||||||
#- 8.0
|
#- 8.0
|
||||||
- 7.1
|
|
||||||
- 7.2
|
- 7.2
|
||||||
|
- 7.1
|
||||||
- 5.6
|
- 5.6
|
||||||
matrix:
|
matrix:
|
||||||
allow_failures:
|
allow_failures:
|
||||||
|
@ -33,7 +33,7 @@ install:
|
||||||
- sudo mv ./tests/bootstrap-config-sample.php ./tests/bootstrap-config.php
|
- sudo mv ./tests/bootstrap-config-sample.php ./tests/bootstrap-config.php
|
||||||
- sudo ./tests/bin/install-wp-tests.sh test travis "" /tmp/wordpress localhost latest
|
- sudo ./tests/bin/install-wp-tests.sh test travis "" /tmp/wordpress localhost latest
|
||||||
true
|
true
|
||||||
- composer install
|
- if [[ $TRAVIS_PHP_VERSION = 7.1 || $TRAVIS_PHP_VERSION = 5.6 ]]; then composer install --ignore-platform-reqs; else composer install fi
|
||||||
- sudo mkdir /tmp/wordpress/wordpress-test/wp-content/uploads
|
- sudo mkdir /tmp/wordpress/wordpress-test/wp-content/uploads
|
||||||
- sudo chmod -R 777 /tmp/wordpress/wordpress-test/wp-content/uploads
|
- sudo chmod -R 777 /tmp/wordpress/wordpress-test/wp-content/uploads
|
||||||
- sudo wget https://phar.phpunit.de/phpunit-6.5.7.phar -P /tmp
|
- sudo wget https://phar.phpunit.de/phpunit-6.5.7.phar -P /tmp
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
"platform-check": false
|
"platform-check": false
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"post-install-cmd": "\"src/vendor/bin/phpcs\" --config-set installed_paths src/vendor/wimg/php-compatibility",
|
"post-install-cmd": "\"src/vendor/bin/phpcs\" --config-set installed_paths src/vendor/phpcompatibility/php-compatibility",
|
||||||
"post-update-cmd" : "\"src/vendor/bin/phpcs\" --config-set installed_paths src/vendor/wimg/php-compatibility"
|
"post-update-cmd" : "\"src/vendor/bin/phpcs\" --config-set installed_paths src/vendor/phpcompatibility/php-compatibility"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue