mirror of
https://github.com/rectorphp/rector.git
synced 2025-03-14 12:29:43 +01:00
run phar build only on master, rights for token needed
This commit is contained in:
parent
c76a07969e
commit
d11399dadf
10
.travis.yml
10
.travis.yml
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user