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] 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'