Skip to content

Commit

Permalink
Update Travis config
Browse files Browse the repository at this point in the history
  • Loading branch information
dshafik committed May 5, 2019
1 parent 848190d commit af7d5b7
Show file tree
Hide file tree
Showing 3 changed files with 155 additions and 123 deletions.
66 changes: 56 additions & 10 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,59 @@
language: php
php:
- 5.5
- 5.6
- 7.0
- 7.1
- 7.2
- 7.3
- 5.5
- 5.6
- 7.0
- 7.1
- 7.2
- 7.3
- nightly
env:
# composer install (uses lock file)
#
# The lock file is only used by developers of the library and ensures
# a sane dev environment.
#
# Everything below local dev PHP version _or_ platform req expected to fail
# HHVM expected to fail for some platform reqs
- DEPS='lock'
# composer update --prefer-lowest
#
# Ensures that the lowest possible versions will work
#
# HHVM may fail here if older versions required HHVM specific changes
# to be compatible
- DEPS='low'
# composer update
#
# This uses the latest possible dependencies for the given PHP version.
#
# If a platform requirement is set, this may not be actual latest versions
# and they may be incompatible with newer PHP versions if the PHP requirement is
# lax (e.g. >=5.3.6 and a platform of 5.3.6 running on 7.0 which doesn't include
# necessary bug fixes for 7.0)
- DEPS='high'
matrix:
fast_finish: true
allow_failures:
# PHP nightly may fail in all configuration
- php: nightly
# PHP < dev version may fail with composer.lock
# Currently running PHP 7.1
- php: 5.5
env: DEPS='lock'
- php: 5.6
env: DEPS='lock'
- php: 7.0
env: DEPS='lock'
# Everything except nightly should pass with high/low
sudo: false
install: travis_retry composer install --no-interaction --prefer-source
script: phpunit
after_script: wget https://scrutinizer-ci.com/ocular.phar && php ocular.phar code-coverage:upload
--format=php-clover build/coverage/coverage.clover
before_install:
- composer self-update
install:
- if [ "$DEPS" == "lock" ]; then travis_retry composer install --no-interaction --prefer-source; fi;
- if [ "$DEPS" == "dev" ]; then travis_retry composer update --minimum-stability=dev --no-interaction --prefer-source; fi;
- if [ "$DEPS" == "low" ]; then travis_retry composer update --prefer-lowest --no-interaction --prefer-source; fi;
- if [ "$DEPS" == "high" ]; then travis_retry composer update --no-interaction --prefer-source; fi;
- composer show --tree
script: php vendor/bin/phpunit
after_script: if (( `php -r 'echo PHP_MAJOR_VERSION;'` == 7 )); then wget https://scrutinizer-ci.com/ocular.phar && php ocular.phar code-coverage:upload --format=php-clover build/coverage/coverage.clover; fi;
8 changes: 7 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"name": "akamai-open/netstorage",
"description": "Akamai NetStorage",
"require": {
"akamai-open/edgegrid-client": "^0.6.0",
"php": ">=5.5",
"akamai-open/edgegrid-client": "^1.0.0",
"league/flysystem": "^1.0",
"twistor/flysystem-stream-wrapper": "^1.0",
"ext-simplexml": "*",
Expand All @@ -16,6 +17,11 @@
"squizlabs/php_codesniffer": "^2.3",
"dshafik/guzzlehttp-vcr": "dev-master"
},
"config": {
"platform": {
"php": "5.5.0"
}
},
"license": "Apache 2.0",
"authors": [
{
Expand Down
Loading

0 comments on commit af7d5b7

Please sign in to comment.