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 pull request mongodb#1 from jenssegers/master
merge from upstream
- Loading branch information
Showing
68 changed files
with
1,468 additions
and
967 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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
end_of_line = lf | ||
insert_final_newline = true | ||
indent_style = space | ||
indent_size = 4 | ||
trim_trailing_whitespace = true |
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
github: jenssegers | ||
open_collective: laravel-mongodb |
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 |
---|---|---|
|
@@ -7,3 +7,4 @@ composer.lock | |
*.sublime-workspace | ||
*.project | ||
.idea/ | ||
.phpunit.result.cache |
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,20 +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 | ||
- sed -i -e "s/php:cli/php:${TRAVIS_PHP_VERSION}-cli/g" Dockerfile | ||
- cat Dockerfile | ||
- docker-compose build | ||
- 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,14 +1,15 @@ | ||
FROM php:cli | ||
ARG PHP_VERSION=7.2 | ||
ARG COMPOSER_VERSION=1.8 | ||
|
||
RUN pecl install xdebug | ||
FROM composer:${COMPOSER_VERSION} | ||
FROM php:${PHP_VERSION}-cli | ||
|
||
RUN apt-get update && \ | ||
apt-get install -y autoconf pkg-config libssl-dev git && \ | ||
pecl install mongodb git zlib1g-dev && 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,51 +1,59 @@ | ||
{ | ||
"name": "jenssegers/mongodb", | ||
"description": "A MongoDB based Eloquent model and Query builder for Laravel (Moloquent)", | ||
"keywords": ["laravel","eloquent","mongodb","mongo","database","model","moloquent"], | ||
"homepage": "https://github.com/jenssegers/laravel-mongodb", | ||
"authors": [ | ||
{ | ||
"name": "Jens Segers", | ||
"homepage": "https://jenssegers.com" | ||
} | ||
], | ||
"license" : "MIT", | ||
"require": { | ||
"illuminate/support": "^5.6", | ||
"illuminate/container": "^5.6", | ||
"illuminate/database": "^5.6", | ||
"illuminate/events": "^5.6", | ||
"mongodb/mongodb": "^1.0.0" | ||
}, | ||
"require-dev": { | ||
"phpunit/phpunit": "^6.0|^7.0", | ||
"orchestra/testbench": "^3.1", | ||
"mockery/mockery": "^1.0", | ||
"satooshi/php-coveralls": "^2.0", | ||
"doctrine/dbal": "^2.5" | ||
}, | ||
"autoload": { | ||
"psr-0": { | ||
"Jenssegers\\Mongodb": "src/" | ||
} | ||
}, | ||
"autoload-dev": { | ||
"classmap": [ | ||
"tests/TestCase.php", | ||
"tests/models", | ||
"tests/seeds" | ||
] | ||
}, | ||
"suggest": { | ||
"jenssegers/mongodb-session": "Add MongoDB session support to Laravel-MongoDB", | ||
"jenssegers/mongodb-sentry": "Add Sentry support to Laravel-MongoDB" | ||
}, | ||
"extra": { | ||
"laravel": { | ||
"providers": [ | ||
"Jenssegers\\Mongodb\\MongodbServiceProvider", | ||
"Jenssegers\\Mongodb\\MongodbQueueServiceProvider" | ||
] | ||
} | ||
} | ||
} | ||
{ | ||
"name": "jenssegers/mongodb", | ||
"description": "A MongoDB based Eloquent model and Query builder for Laravel (Moloquent)", | ||
"keywords": [ | ||
"laravel", | ||
"eloquent", | ||
"mongodb", | ||
"mongo", | ||
"database", | ||
"model", | ||
"moloquent" | ||
], | ||
"homepage": "https://github.com/jenssegers/laravel-mongodb", | ||
"authors": [ | ||
{ | ||
"name": "Jens Segers", | ||
"homepage": "https://jenssegers.com" | ||
} | ||
], | ||
"license": "MIT", | ||
"require": { | ||
"illuminate/support": "^5.8|^6.0", | ||
"illuminate/container": "^5.8|^6.0", | ||
"illuminate/database": "^5.8|^6.0", | ||
"illuminate/events": "^5.8|^6.0", | ||
"mongodb/mongodb": "^1.4" | ||
}, | ||
"require-dev": { | ||
"phpunit/phpunit": "^6.0|^7.0|^8.0", | ||
"orchestra/testbench": "^3.1|^4.0", | ||
"mockery/mockery": "^1.0", | ||
"satooshi/php-coveralls": "^2.0", | ||
"doctrine/dbal": "^2.5" | ||
}, | ||
"autoload": { | ||
"psr-0": { | ||
"Jenssegers\\Mongodb": "src/" | ||
} | ||
}, | ||
"autoload-dev": { | ||
"classmap": [ | ||
"tests/TestCase.php", | ||
"tests/models", | ||
"tests/seeds" | ||
] | ||
}, | ||
"suggest": { | ||
"jenssegers/mongodb-session": "Add MongoDB session support to Laravel-MongoDB", | ||
"jenssegers/mongodb-sentry": "Add Sentry support to Laravel-MongoDB" | ||
}, | ||
"extra": { | ||
"laravel": { | ||
"providers": [ | ||
"Jenssegers\\Mongodb\\MongodbServiceProvider", | ||
"Jenssegers\\Mongodb\\MongodbQueueServiceProvider" | ||
] | ||
} | ||
} | ||
} |
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.