Skip to content

Commit 292ce9b

Browse files
savamarkovicmghoneimy
authored andcommitted
Add php 8.0 support
1 parent 6500f76 commit 292ce9b

File tree

2 files changed

+15
-38
lines changed

2 files changed

+15
-38
lines changed

.travis.yml

Lines changed: 13 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,20 @@
1+
language: php
2+
php:
3+
- '7.1'
4+
- '7.2'
5+
- '7.3'
6+
- '7.4'
7+
- '8.0'
8+
jobs:
9+
allow_failures:
10+
- php: 8.0
11+
112
before_script:
213
- composer install
314

4-
script: vendor/phpunit/phpunit/phpunit tests/ --whitelist src/ --coverage-clover build/coverage/xml
15+
script: composer run test
516

617
after_script:
718
- php vendor/bin/codacycoverage clover build/coverage/xml
819

9-
_install_windows: &install_windows
10-
install:
11-
- choco install php --version $PHP_VERSION --no-progress --package-parameters='"/InstallDir:C:\tools\PHP"'
12-
- choco install composer --no-progress --ia '"/DEV=C:\tools\php /PHP=C:\tools\php"'
13-
- export PATH=$PATH:/C/tools/php
14-
15-
_install_osx: &install_osx
16-
install:
17-
- brew unlink python@2
18-
- brew install php@$PHP_VERSION
19-
- brew install composer
20-
21-
jobs:
22-
include:
23-
- os: linux
24-
language: php
25-
php: 7.1
26-
- os: linux
27-
language: php
28-
php: 7.2
29-
- os: linux
30-
language: php
31-
php: 7.3
32-
- os: osx
33-
language: sh
34-
env: PHP_VERSION='7.2'
35-
<<: *install_osx
36-
- os: osx
37-
language: sh
38-
env: PHP_VERSION='7.3'
39-
<<: *install_osx
40-
- os: windows
41-
language: sh
42-
env: PHP_VERSION='7.3.9'
43-
<<: *install_windows
20+
os: linux

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@
3434
},
3535
"bin": ["bin/generate_schema_objects"],
3636
"require": {
37-
"php": "^7.1",
38-
"gmostafa/php-graphql-client": "^1.6"
37+
"php": "^7.1 || ^8.0",
38+
"gmostafa/php-graphql-client": "^1.6 || ^2.0"
3939
},
4040
"require-dev": {
4141
"phpunit/phpunit": "^7.5|^8.0",

0 commit comments

Comments
 (0)