From aff4babfa51ad458ebcf087e2a325ffed87612ac Mon Sep 17 00:00:00 2001 From: Christopher Joe Date: Mon, 11 Dec 2017 12:04:18 +1300 Subject: [PATCH] Feature Set .gitattributes to ignore docs and tests folder, and some source asset files which are not needed --- .gitattributes | 10 +++++++++- .travis.yml | 2 +- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.gitattributes b/.gitattributes index 9612f64ef..134c8f450 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,4 +1,12 @@ -docs/ export-ignore +/tests export-ignore +/docs export-ignore +/.tx export-ignore +/.gitattributes export-ignore +/.gitignore export-ignore +/.travis.yml export-ignore +/.scrutinizer.yml export-ignore +/*.dist export-ignore +/behat.yml export-ignore # Line endings sake text eol=lf diff --git a/.travis.yml b/.travis.yml index 87e6b7007..9e1dec634 100644 --- a/.travis.yml +++ b/.travis.yml @@ -81,7 +81,7 @@ before_script: - composer require silverstripe/recipe-core:1.1.x-dev silverstripe/admin:1.1.x-dev silverstripe/versioned:1.1.x-dev --no-update - if [[ $PHPUNIT_TEST == cms ]] || [[ $BEHAT_TEST == cms ]]; then composer require silverstripe/recipe-cms:1.1.x-dev --no-update; fi - if [[ $PHPCS_TEST ]]; then composer global require squizlabs/php_codesniffer:^3 --prefer-dist --no-interaction --no-progress --no-suggest -o; fi - - composer install --prefer-dist --no-interaction --no-progress --no-suggest --optimize-autoloader --verbose --profile + - composer install --prefer-source --no-interaction --no-progress --no-suggest --optimize-autoloader --verbose --profile # Log constants to CI for debugging purposes - php ./tests/dump_constants.php