run phar build only on master, rights for token needed

This commit is contained in:
TomasVotruba 2020-01-09 13:20:14 +01:00
parent c76a07969e
commit d11399dadf

View File

@ -3,12 +3,13 @@ dist: bionic
language: php
php:
# 7.2 is covered in minimal dependencies
- '7.3'
- '7.4'
before_install:
# turn off XDebug
- phpenv config-rm xdebug.ini || return 0
- phpenv config-rm xdebug.ini
install:
- composer install --no-progress
@ -18,7 +19,8 @@ script:
stages:
- test
- compile
- name: compile
if: (branch = master OR tag IS present) && type = push
- name: phar
if: (branch = master OR tag IS present) && type = push
- coverage
@ -66,6 +68,7 @@ jobs:
# install lowest dependencies
- composer update --prefer-lowest --no-progress
-
# Run standalone install in non-root package, ref https://github.com/rectorphp/rector/issues/732
stage: test
php: 7.3
@ -100,15 +103,16 @@ jobs:
name: Test Coverage
script:
- phpdbg -qrr -d memory_limit=-1 vendor/bin/phpunit --coverage-clover coverage.xml
# Coveralls.io
- wget https://github.com/php-coveralls/php-coveralls/releases/download/v2.1.0/php-coveralls.phar
- php php-coveralls.phar --verbose
allow_failures:
- name: Standalone Run
- os: windows
cache:
directories:
- $HOME/.composer/cache
- tmp
notifications: