From 78a62f890126c5ab2337d68b34283a7c347ace57 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Dunglas?= Date: Wed, 15 Nov 2017 08:25:16 +0200 Subject: [PATCH 1/2] Deploy PHAR to GitHub releases --- .travis.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.travis.yml b/.travis.yml index bbb5f963f..3e4c5c07d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -57,3 +57,14 @@ before_script: script: # run test suite directories in parallel using GNU parallel - ls -d tests/Composer/Test/* | 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);' + - 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 + php: '5.3' From 657068886f28d3c3832ea305b58f2d82365fa82a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Dunglas?= Date: Wed, 29 Nov 2017 23:52:13 +0100 Subject: [PATCH 2/2] Fix comments --- .travis.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 3e4c5c07d..5b8cf1391 100644 --- a/.travis.yml +++ b/.travis.yml @@ -57,6 +57,8 @@ before_script: script: # run test suite directories in parallel using GNU parallel - ls -d tests/Composer/Test/* | 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);' + +before_deploy: - php -d phar.readonly=0 bin/compile deploy: @@ -67,4 +69,4 @@ deploy: on: tags: true repo: composer/composer - php: '5.3' + php: '7.1'