Skip to content

Commit 58f2f63

Browse files
committed
Adding some more things to omit lists
1 parent 976f651 commit 58f2f63

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,13 @@ install:
1717
- composer install --no-interaction --no-dev --no-progress --no-suggest --optimize-autoloader
1818

1919
script:
20-
- if [[ $BUILD_PHAR == 'true' ]]; then /usr/bin/env php ./bin/php-cs phpcs:build -vvv ; fi
20+
- if [[ $BUILD_PHAR == 'true' && $TRAVIS_TAG != '' ]]; then /usr/bin/env php ./bin/php-cs phpcs:build -vvv ; fi
2121

2222
deploy:
2323
provider: releases
2424
api_key: $GITHUB_API_TOKEN
2525
file: build/php-cs.phar
2626
skip_cleanup: true
2727
on:
28+
tags: true
2829
php: '7.1'

src/Command/BuildCommand.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ protected function addDirectory(string $dir) {
121121
'/test/',
122122
'/tests/',
123123
'/Tests/',
124+
'/Tester/',
124125
'/doc/',
125126
'/docs/',
126127
];
@@ -133,14 +134,18 @@ protected function addDirectory(string $dir) {
133134
'.gitattributes',
134135
'.gitkeep',
135136
'CHANGELOG',
137+
'CHANGELOG.md',
138+
'CHANGELOG.MD',
139+
'UPGRADING',
140+
'UPGRADING.md',
141+
'UPGRADING.MD',
136142
'README',
137143
'README.md',
138144
'README.MD',
139145

140146
];
141147

142148
foreach (glob(rtrim($this->resolvePath($dir), "/").'/*', GLOB_NOSORT) as $f) {
143-
// try to omit test stuff..
144149
foreach ($skipDirs as $skipDir) {
145150
if (false !== strpos($f, $skipDir)) {
146151
$this->log->debug("Skipping \"{$this->trimRootPath($f)}\"...");

0 commit comments

Comments
 (0)