2011-11-13 17:48:51 +00:00
|
|
|
language: php
|
|
|
|
|
2015-03-04 15:48:39 +00:00
|
|
|
sudo: false
|
2017-06-22 12:33:13 +00:00
|
|
|
|
2017-06-17 12:39:23 +00:00
|
|
|
dist: trusty
|
2015-03-04 15:48:39 +00:00
|
|
|
|
2017-06-22 12:33:13 +00:00
|
|
|
git:
|
|
|
|
depth: 5
|
|
|
|
|
2015-03-04 15:48:39 +00:00
|
|
|
cache:
|
|
|
|
directories:
|
|
|
|
- $HOME/.composer/cache
|
|
|
|
|
|
|
|
addons:
|
2015-08-20 11:02:17 +00:00
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- parallel
|
2015-03-04 15:48:39 +00:00
|
|
|
|
2013-01-11 20:47:32 +00:00
|
|
|
php:
|
2011-11-13 17:48:51 +00:00
|
|
|
- 5.4
|
2012-12-20 12:59:21 +00:00
|
|
|
- 5.5
|
2014-02-24 07:24:01 +00:00
|
|
|
- 5.6
|
2015-03-01 20:47:15 +00:00
|
|
|
- 7.0
|
2016-09-14 09:33:43 +00:00
|
|
|
- 7.1
|
2017-10-27 17:33:43 +00:00
|
|
|
- 7.2
|
2018-10-16 15:44:04 +00:00
|
|
|
- 7.3
|
2015-10-27 10:12:43 +00:00
|
|
|
- nightly
|
2015-03-08 17:30:56 +00:00
|
|
|
|
|
|
|
matrix:
|
2017-06-17 12:39:23 +00:00
|
|
|
include:
|
2018-03-29 21:28:02 +00:00
|
|
|
- php: 5.3
|
|
|
|
dist: precise
|
2018-10-16 15:44:04 +00:00
|
|
|
- php: 7.3
|
2018-03-29 21:28:02 +00:00
|
|
|
env: deps=high
|
2015-03-09 08:22:39 +00:00
|
|
|
fast_finish: true
|
2015-10-27 10:12:43 +00:00
|
|
|
allow_failures:
|
|
|
|
- php: nightly
|
2013-12-19 15:33:37 +00:00
|
|
|
|
2017-06-22 12:33:13 +00:00
|
|
|
before_install:
|
2018-03-29 21:28:02 +00:00
|
|
|
# disable xdebug if available
|
2017-06-22 12:33:13 +00:00
|
|
|
- phpenv config-rm xdebug.ini || echo "xdebug not available"
|
|
|
|
# disable default memory limit
|
2018-03-29 21:36:46 +00:00
|
|
|
- export INI=~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
|
2017-06-22 12:33:13 +00:00
|
|
|
- echo memory_limit = -1 >> $INI
|
|
|
|
|
|
|
|
install:
|
|
|
|
# flags to pass to install
|
|
|
|
- flags="--ansi --prefer-dist --no-interaction --optimize-autoloader --no-suggest --no-progress"
|
2018-03-29 21:28:02 +00:00
|
|
|
# update deps to latest in case of high deps build
|
|
|
|
- if [ "$deps" == "high" ]; then composer config platform.php 7.2.4; composer update $flags; fi
|
2017-06-22 12:33:13 +00:00
|
|
|
# install dependencies using system provided composer binary
|
2015-10-28 02:52:53 +00:00
|
|
|
- composer install $flags
|
2017-06-22 12:33:13 +00:00
|
|
|
# install dependencies using composer from source
|
2015-10-28 02:52:53 +00:00
|
|
|
- bin/composer install $flags
|
2017-06-22 12:33:13 +00:00
|
|
|
|
|
|
|
before_script:
|
|
|
|
# make sure git tests do not complain about user/email not being set
|
2013-03-28 11:48:19 +00:00
|
|
|
- git config --global user.name travis-ci
|
|
|
|
- git config --global user.email travis@example.com
|
2011-11-13 18:01:46 +00:00
|
|
|
|
2013-09-25 08:14:42 +00:00
|
|
|
script:
|
2017-06-22 12:33:13 +00:00
|
|
|
# run test suite directories in parallel using GNU parallel
|
2018-11-12 14:23:32 +00:00
|
|
|
- ls -d tests/Composer/Test/* | grep -v TestCase.php | parallel --gnu --keep-order 'echo "Running {} tests"; ./vendor/bin/phpunit -c tests/complete.phpunit.xml --colors=always {} || (echo -e "\e[41mFAILED\e[0m {}" && exit 1);'
|
2017-11-29 22:52:13 +00:00
|
|
|
|
|
|
|
before_deploy:
|
2017-11-15 06:25:16 +00:00
|
|
|
- php -d phar.readonly=0 bin/compile
|
|
|
|
|
|
|
|
deploy:
|
|
|
|
provider: releases
|
|
|
|
api_key: $GITHUB_TOKEN
|
|
|
|
file: composer.phar
|
|
|
|
skip_cleanup: true
|
|
|
|
on:
|
|
|
|
tags: true
|
|
|
|
repo: composer/composer
|
2018-10-17 06:53:19 +00:00
|
|
|
php: '7.2'
|