-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Fix tests #1724
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Fix tests #1724
Changes from 4 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
cd8d028
Update Dockerfile, add for methods setUp and tearDown return type h…
178ce3b
Resolve error test with touch
01e599a
Use COMPOSER_VERSION in Dockerfile
4c0f3fc
Add alias for composer
b52c98f
Change parent method's names
281fdd2
Remove changes in .travis.yml
8c8de06
Remove changes from Dockerfile
0ac6803
Revert changes in docker-compose.yml
23fa853
Update image with mysql
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ language: php | |
php: | ||
- "7.2" | ||
- "7.1" | ||
- "7.3" | ||
|
||
services: | ||
- docker | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,27 @@ | ||
ARG COMPOSER_VERSION=1.8 | ||
ARG PHP_VERSION=7.2 | ||
FROM composer:${COMPOSER_VERSION} as composer-build | ||
FROM php:${PHP_VERSION}-cli-alpine | ||
|
||
FROM php:${PHP_VERSION}-cli | ||
RUN apk add --update --no-cache -t .php-build-deps \ | ||
autoconf \ | ||
libmcrypt=2.5.8-r7 \ | ||
git \ | ||
make \ | ||
g++ \ | ||
gcc \ | ||
openssl-dev \ | ||
libzip-dev; \ | ||
pecl install mongodb-1.5.3 | ||
|
||
RUN pecl install xdebug | ||
RUN set -xe; \ | ||
if [[ "${PHP_VERSION:0:3}" != "7.3" ]]; then \ | ||
pecl install xdebug-2.6.1; \ | ||
docker-php-ext-enable xdebug; \ | ||
fi; | ||
|
||
RUN docker-php-ext-enable mongodb && \ | ||
docker-php-ext-install -j$(nproc) pdo pdo_mysql zip | ||
|
||
RUN apt-get update && \ | ||
apt-get install -y autoconf pkg-config libssl-dev git zlib1g-dev | ||
|
||
RUN pecl install mongodb && docker-php-ext-enable mongodb && \ | ||
docker-php-ext-install -j$(nproc) pdo pdo_mysql zip && docker-php-ext-enable xdebug | ||
|
||
RUN curl -sS https://getcomposer.org/installer | php \ | ||
&& mv composer.phar /usr/local/bin/ \ | ||
&& ln -s /usr/local/bin/composer.phar /usr/local/bin/composer | ||
|
||
ENV PATH="~/.composer/vendor/bin:./vendor/bin:${PATH}" | ||
COPY --from=composer-build /usr/bin/composer /usr/local/bin/composer | ||
RUN composer global require "hirak/prestissimo:^0.3" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -47,5 +47,8 @@ | |
"Jenssegers\\Mongodb\\MongodbQueueServiceProvider" | ||
] | ||
} | ||
}, | ||
"scripts": { | ||
"run-tests": "vendor/bin/phpunit" | ||
} | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ services: | |
volumes: | ||
- .:/code | ||
working_dir: /code | ||
command: bash -c "composer install --prefer-source --no-interaction && php ./vendor/bin/phpunit" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can we also revert these changes please? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @jenssegers, I reverted this changes |
||
command: sh -c "composer update --prefer-dist --no-interaction --prefer-lowest --prefer-stable && composer run-tests" | ||
depends_on: | ||
- mysql | ||
- mongodb | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need this fixed version?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also can't we still use the docker-php-ext-install?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mongodb-1.5.3 latest stable version in https://pecl.php.net/package/mongodb
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In original Dockerfile used https://github.com/jenssegers/laravel-mongodb/blob/master/Dockerfile#L10
pecl install mongodb && docker-php-ext-enable mongodb