forked from mongodb/laravel-mongodb
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/master' into patch-2
- Loading branch information
Showing
32 changed files
with
248 additions
and
96 deletions.
There are no files selected for viewing
This file contains 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,19 +1,27 @@ | ||
sudo: required | ||
dist: trusty | ||
language: php | ||
php: | ||
- "7.2" | ||
- "7.1" | ||
language: minimal | ||
|
||
matrix: | ||
include: | ||
- name: "7.1" | ||
env: PHP_VERSION=7.1 | ||
- name: "7.2" | ||
env: PHP_VERSION=7.2 | ||
- name: "7.3" | ||
env: PHP_VERSION=7.3 | ||
|
||
services: | ||
- docker | ||
|
||
cache: | ||
directories: | ||
- $HOME/.composer/cache | ||
|
||
install: | ||
- docker version | ||
- sudo pip install docker-compose | ||
- docker-compose version | ||
- cat Dockerfile | ||
- docker-compose build --build-arg PHP_VERSION=${TRAVIS_PHP_VERSION} | ||
- docker-compose build --build-arg PHP_VERSION=${PHP_VERSION} | ||
- docker-compose run --rm tests composer install --no-interaction | ||
|
||
script: | ||
- docker-compose up --exit-code-from php | ||
- docker-compose run --rm tests ./vendor/bin/phpunit --coverage-clover ./clover.xml |
This file contains 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,15 @@ | ||
ARG PHP_VERSION=7.2 | ||
ARG COMPOSER_VERSION=1.8 | ||
|
||
FROM composer:${COMPOSER_VERSION} | ||
FROM php:${PHP_VERSION}-cli | ||
|
||
RUN pecl install xdebug | ||
|
||
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 | ||
apt-get install -y autoconf pkg-config libssl-dev git libzip-dev zlib1g-dev && \ | ||
pecl install mongodb && docker-php-ext-enable mongodb && \ | ||
pecl install xdebug && docker-php-ext-enable xdebug && \ | ||
docker-php-ext-install -j$(nproc) pdo_mysql zip | ||
|
||
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 | ||
COPY --from=composer /usr/bin/composer /usr/local/bin/composer | ||
|
||
ENV PATH="~/.composer/vendor/bin:./vendor/bin:${PATH}" | ||
WORKDIR /code |
This file contains 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 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 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 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 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 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 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 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 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 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 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 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.