Skip to content

Commit

Permalink
Updated travis config
Browse files Browse the repository at this point in the history
  • Loading branch information
PHLAK committed May 1, 2019
1 parent 336bfb9 commit 17eebca
Showing 1 changed file with 26 additions and 12 deletions.
38 changes: 26 additions & 12 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,37 @@
sudo: false

language: php

env:
- COMPOSER_PREFER=default
- COMPOSER_PREFER=lowest

php:
- 7.0
- 7.1
- 7.0
- 7.1
- 7.2
- 7.3
- nightly

matrix:
allow_failures:
- php: nightly

cache:
directories:
- $HOME/.composer/cache
- vendor

services:
- memcached
- redis-server

cache:
directories:
- $HOME/.composer/cache
- vendor

before_install:
- phpenv config-rm xdebug.ini
- if [[ $TRAVIS_PHP_VERSION == 5.* ]]; then printf "\n" | pecl install -f apcu-4.0.11; fi
- if [[ $TRAVIS_PHP_VERSION == 7.* ]]; then printf "\n" | pecl install -f apcu-5.1.11 apcu_bc-1.0.4; fi
- phpenv config-add travis.ini
- phpenv config-rm xdebug.ini || true
- travis_retry composer self-update
- if [[ $TRAVIS_PHP_VERSION == 5.* ]]; then printf "\n" | pecl install -f apcu-4.0.11; fi
- if [[ $TRAVIS_PHP_VERSION == 7.* ]]; then printf "\n" | pecl install -f apcu-5.1.1 apcu_bc-1.0.4; fi
- phpenv config-add travis.ini

install: composer install
install:
- "[[ $COMPOSER_PREFER == 'lowest' ]] && composer update --prefer-lowest || composer update"

0 comments on commit 17eebca

Please sign in to comment.