From d70ec6eabc077c8f33420bb0f5b5e8c7ae9902b8 Mon Sep 17 00:00:00 2001 From: Jan Sorgalla Date: Fri, 3 Feb 2017 11:54:17 +0100 Subject: [PATCH 1/7] Remove deprecated --dev option from composer install --- travis-init.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/travis-init.sh b/travis-init.sh index 07b1d2a8..f3f3b228 100755 --- a/travis-init.sh +++ b/travis-init.sh @@ -37,4 +37,4 @@ if [[ "$TRAVIS_PHP_VERSION" != "hhvm" && fi -composer install --dev --prefer-source +composer install --prefer-source From 95b459ce5f4d614a5bdd0805c44d11f5bfdc77ff Mon Sep 17 00:00:00 2001 From: Jan Sorgalla Date: Fri, 3 Feb 2017 11:54:52 +0100 Subject: [PATCH 2/7] Remove --prefer-source from composer install --- travis-init.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/travis-init.sh b/travis-init.sh index f3f3b228..5b21086c 100755 --- a/travis-init.sh +++ b/travis-init.sh @@ -37,4 +37,4 @@ if [[ "$TRAVIS_PHP_VERSION" != "hhvm" && fi -composer install --prefer-source +composer install From 54bf45dd6f09d7c228d2c5bfc98df64a2f1f94b9 Mon Sep 17 00:00:00 2001 From: Jan Sorgalla Date: Fri, 3 Feb 2017 11:57:04 +0100 Subject: [PATCH 3/7] Move composer install to .travis.yml --- .travis.yml | 4 +++- travis-init.sh | 2 -- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index a29daf2b..85944a34 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,7 +7,9 @@ php: - 7.0 - hhvm -install: ./travis-init.sh +install: + - ./travis-init.sh + - composer install script: - ./vendor/bin/phpunit --coverage-text diff --git a/travis-init.sh b/travis-init.sh index 5b21086c..424d3e0a 100755 --- a/travis-init.sh +++ b/travis-init.sh @@ -36,5 +36,3 @@ if [[ "$TRAVIS_PHP_VERSION" != "hhvm" && fi fi - -composer install From bec5e5a8df3e9043b80559f1d64e86c7bdb48c6d Mon Sep 17 00:00:00 2001 From: Jan Sorgalla Date: Fri, 3 Feb 2017 12:16:45 +0100 Subject: [PATCH 4/7] Enable container based infrastructure on travis --- .travis.yml | 7 +++++++ travis-init.sh | 3 --- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 85944a34..d5f0760c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,6 +7,13 @@ php: - 7.0 - hhvm +sudo: false + +addons: + apt: + packages: + - libevent-dev # Used by 'event' and 'libevent' PHP extensions + install: - ./travis-init.sh - composer install diff --git a/travis-init.sh b/travis-init.sh index 424d3e0a..f8990ab5 100755 --- a/travis-init.sh +++ b/travis-init.sh @@ -5,9 +5,6 @@ set -o pipefail if [[ "$TRAVIS_PHP_VERSION" != "hhvm" && "$TRAVIS_PHP_VERSION" != "hhvm-nightly" ]]; then - # install "libevent" (used by 'event' and 'libevent' PHP extensions) - sudo apt-get install -y libevent-dev - # install 'event' PHP extension echo "yes" | pecl install event From 5f9c697d990d71e13e38c4c5d412d66fac719594 Mon Sep 17 00:00:00 2001 From: Jan Sorgalla Date: Fri, 3 Feb 2017 12:17:54 +0100 Subject: [PATCH 5/7] Enable travis cache --- .travis.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.travis.yml b/.travis.yml index d5f0760c..8bdf688d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -14,6 +14,10 @@ addons: packages: - libevent-dev # Used by 'event' and 'libevent' PHP extensions +cache: + directories: + - $HOME/.composer/cache + install: - ./travis-init.sh - composer install From 91ffeb1c52c608f4c12ef088be2e217b82a19a77 Mon Sep 17 00:00:00 2001 From: Jan Sorgalla Date: Fri, 3 Feb 2017 12:23:55 +0100 Subject: [PATCH 6/7] Add PHP 7.1 to test matrix --- .travis.yml | 1 + travis-init.sh | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 8bdf688d..f317c3f0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,6 +5,7 @@ php: - 5.5 - 5.6 - 7.0 + - 7.1 - hhvm sudo: false diff --git a/travis-init.sh b/travis-init.sh index f8990ab5..87456016 100755 --- a/travis-init.sh +++ b/travis-init.sh @@ -9,7 +9,8 @@ if [[ "$TRAVIS_PHP_VERSION" != "hhvm" && echo "yes" | pecl install event # install 'libevent' PHP extension (does not support php 7) - if [[ "$TRAVIS_PHP_VERSION" != "7.0" ]]; then + if [[ "$TRAVIS_PHP_VERSION" != "7.0" && + "$TRAVIS_PHP_VERSION" != "7.1" ]]; then curl http://pecl.php.net/get/libevent-0.1.0.tgz | tar -xz pushd libevent-0.1.0 phpize @@ -21,7 +22,8 @@ if [[ "$TRAVIS_PHP_VERSION" != "hhvm" && fi # install 'libev' PHP extension (does not support php 7) - if [[ "$TRAVIS_PHP_VERSION" != "7.0" ]]; then + if [[ "$TRAVIS_PHP_VERSION" != "7.0" && + "$TRAVIS_PHP_VERSION" != "7.1" ]]; then git clone --recursive https://github.com/m4rw3r/php-libev pushd php-libev phpize From f986c5693aa7fcd1a2ee641fe6f418deba2e4318 Mon Sep 17 00:00:00 2001 From: Jan Sorgalla Date: Mon, 6 Feb 2017 19:44:54 +0100 Subject: [PATCH 7/7] Adjust composer cache directory to only cache package files --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index f317c3f0..0b7ce2cd 100644 --- a/.travis.yml +++ b/.travis.yml @@ -17,7 +17,7 @@ addons: cache: directories: - - $HOME/.composer/cache + - $HOME/.composer/cache/files install: - ./travis-init.sh pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy