Skip to content

Commit

Permalink
Move env setting for test to phpunit.xml.dist
Browse files Browse the repository at this point in the history
  • Loading branch information
frankdejonge committed Aug 8, 2020
1 parent ecf6122 commit 5f601f6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ install:
- if [[ "${UPGRADE_AWS_SDK}" == "yes" ]]; then composer require --dev --ignore-platform-reqs aws/aws-sdk-php:^3.147.3; fi

script:
- export FLYSYSTEM_TEST_SFTP=yes
- if [[ "${DISABLE_TRAVIS_RETRY}" == "yes" ]]; then vendor/bin/phpunit --coverage-text --coverage-clover=coverage.xml; fi
- if [[ "${DISABLE_TRAVIS_RETRY}" != "yes" ]]; then travis_retry vendor/bin/phpunit --coverage-text --coverage-clover=coverage.xml; fi
- vendor/bin/phpstan analyse -l 6 src
Expand Down
4 changes: 3 additions & 1 deletion phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
<directory suffix="Test.php">src/</directory>
</testsuite>
</testsuites>

<php>
<env name="FLYSYSTEM_TEST_SFTP" value="yes" />
</php>
<filter>
<whitelist>
<directory>src/</directory>
Expand Down

0 comments on commit 5f601f6

Please sign in to comment.