Skip to content

Commit 5cc7ad1

Browse files
authored
Add PHP 8.0 tests (#186)
1 parent 1524e57 commit 5cc7ad1

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

.travis.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ php:
77
- 7.2 # security support until 30/11/2020
88
- 7.3 # security support until 06/12/2021
99
- 7.4 # security support until 28/11/2022
10+
- 8.0 # security support until 26/11/2023
1011
- nightly
1112

1213
addons:
@@ -17,6 +18,13 @@ addons:
1718
before_script:
1819
- stable='^[0-9\.]+$'; if [[ "$TRAVIS_PHP_VERSION" =~ $stable ]]; then phpenv config-rm xdebug.ini; fi
1920
- export PATH="$HOME/.composer/vendor/bin:$PATH"
21+
# PHPUnit 8.x is not (yet) supported, so prevent issues with Travis images using it.
22+
- |
23+
if [[ $TRAVIS_PHP_VERSION == "nightly" || $TRAVIS_PHP_VERSION == "8.0" ]]; then
24+
travis_retry composer install --ignore-platform-reqs
25+
else
26+
travis_retry composer install
27+
fi
2028
2129
script:
2230
- ant test -Dcomposer.path=composer

build.properties

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,3 @@ composer.path = ${basedir}/composer.phar
44

55
#PHP Code Sniffer
66
phpcs.standard = PEAR
7-
phpcs.dir = ${basedir}/vendor/squizlabs/php_codesniffer

build.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<delete dir="${basedir}/build" />
1818
</target>
1919

20-
<target name="vendor" description="Load composer repositories" depends="composer">
20+
<target name="vendor" description="Load composer repositories" depends="composer" unless="${env.TRAVIS}">
2121
<exec executable="${composer.path}" failonerror="true">
2222
<arg value="install" />
2323
</exec>

0 commit comments

Comments
 (0)