Skip to content

Commit

Permalink
Merge branch '1' into pulls/1/img-to-shortcode
Browse files Browse the repository at this point in the history
# Conflicts:
#	.travis.yml
  • Loading branch information
bergice committed Apr 10, 2019
2 parents 239be8e + 94e9a11 commit 3f8b46a
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 5 deletions.
17 changes: 14 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,31 @@ sudo: false

env:
global:
- COMPOSER_ROOT_VERSION=1.4.x-dev
- COMPOSER_ROOT_VERSION=1.x-dev
- CORE_RELEASE=master

matrix:
fast_finish: true
include:
- php: 5.6
env: DB=MYSQL PHPUNIT_TEST=1 PHPCS_TEST=1
env: DB=MYSQL PHPUNIT_TEST=1
- php: 7.0
env: DB=MYSQL PHPUNIT_TEST=1
- php: 7.1
env: DB=MYSQL PDO=1 PHPUNIT_COVERAGE_TEST=1
env: DB=MYSQL PHPUNIT_TEST=1
- php: 7.2
env: DB=MYSQL PHPUNIT_COVERAGE_TEST=1 PHPCS_TEST=1
- php: 7.2
env: DB=MYSQL PHPUNIT_TEST=1 PDO=1
- php: 7.3
env: DB=MYSQL PHPUNIT_TEST=1
- php: 7.3
env: DB=PGSQL PHPUNIT_TEST=1

before_script:
# Init PHP
- printf "\n" | pecl install imagick
- composer self-update || true
- phpenv rehash
- phpenv config-rm xdebug.ini
- export PATH=~/.config/composer/vendor/bin:$PATH
Expand All @@ -28,6 +38,7 @@ before_script:
- composer validate
- composer install --prefer-dist
- composer require --prefer-dist --no-update silverstripe/recipe-cms:4.4.x-dev
- if [[ $DB == PGSQL ]]; then composer require --no-update silverstripe/postgresql:2.x-dev --prefer-dist; fi
- composer update --prefer-dist
- if [[ $PHPCS_TEST ]]; then composer global require squizlabs/php_codesniffer:^3 --prefer-dist --no-interaction --no-progress --no-suggest -o; fi

Expand Down
10 changes: 9 additions & 1 deletion phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,13 @@ Requires PHPUnit ^5.7
<phpunit bootstrap="vendor/silverstripe/framework/tests/bootstrap.php" colors="true">
<testsuite name="Default">
<directory>tests/php</directory>
</testsuite>
</testsuite>
<filter>
<whitelist addUncoveredFilesFromWhitelist="true">
<directory suffix=".php">src/</directory>
<exclude>
<directory suffix=".php">tests/php/</directory>
</exclude>
</whitelist>
</filter>
</phpunit>
2 changes: 1 addition & 1 deletion src/Flysystem/FlysystemAssetStore.php
Original file line number Diff line number Diff line change
Expand Up @@ -1016,7 +1016,7 @@ private function searchForEquivalentFileID($asset)
[
['"FileHash" like ?' => DB::get_conn()->escapeString($parsedFileID['Hash']) . '%'],
['not "FileHash" like ?' => DB::get_conn()->escapeString($file->getHash())],
'WasPublished' => true
'"WasPublished"' => true
],
"",
1
Expand Down

0 comments on commit 3f8b46a

Please sign in to comment.