Browse Source

Add missing files to archive files

Dariusz Ruminski 7 years ago
parent
commit
13aae2b1ac
2 changed files with 12 additions and 2 deletions
  1. 9 2
      .gitattributes
  2. 3 0
      .travis.yml

+ 9 - 2
.gitattributes

@@ -1,4 +1,11 @@
-/tests export-ignore
+# @TODO 3.0 replace following `tests/... exportignore` with single `tests/ export-ignore`
+tests/**/*Test.php export-ignore
+tests/Fixtures/ export-ignore
+tests/Linter/AbstractLinterTestCase.php export-ignore
+tests/Differ/AbstractDifferTestCase.php export-ignore
+tests/AbstractDoctrineAnnotationFixerTestCase.php export-ignore
+tests/Test/AbstractTransformerTestCase.php export-ignore
+
 .appveyor.yml export-ignore
 .composer-require-checker.json export-ignore
 .editorconfig export-ignore
@@ -16,4 +23,4 @@ phpunit.xml.dist export-ignore
 *.yml   text whitespace=blank-at-eol,blank-at-eof,space-before-tab,tab-in-indent,tabwidth=4
 *.md    text whitespace=blank-at-eol,blank-at-eof
 *.rst   text whitespace=blank-at-eol,blank-at-eof
-/tests/Fixtures/**/* -text
+tests/Fixtures/**/* -text

+ 3 - 0
.travis.yml

@@ -70,6 +70,9 @@ install:
     - composer info -D | sort
 
 script:
+    # @TODO remove at 3.0
+    - if [ $TASK_SCA == 1 ]; then git archive -o /dev/null HEAD -v 2>&1 | grep tests | grep \.php | grep -v tests/Test/AbstractFixerTestCase.php | grep -v tests/Test/AbstractIntegrationTestCase.php | grep -v tests/Test/IntegrationCase.php | grep -v tests/Test/IntegrationCaseFactory.php && (echo "UNKNOWN FILES DETECTED" && travis_terminate 1) || echo "NO UNKNOWN FILES"; fi
+
     - if [ $TASK_SCA == 1 ]; then php php-cs-fixer fix --rules @PHP70Migration:risky,@PHP71Migration,native_function_invocation -q; fi
     - if [ $TASK_SCA == 1 ]; then ./check_trailing_spaces.sh || travis_terminate 1; fi
     - if [ $TASK_SCA == 1 ]; then travis_retry composer update $DEFAULT_COMPOSER_FLAGS $COMPOSER_FLAGS --no-dev --prefer-stable; fi