1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-05 07:54:03 +00:00

Laravel 7 support

This commit is contained in:
Samuel Štancl 2020-03-04 20:04:03 +01:00
parent 292b7acd16
commit 97348e960b
3 changed files with 26 additions and 24 deletions

View file

@ -1,9 +1,10 @@
# env: env:
# - LARAVEL_VERSION="^6.0" TESTBENCH_VERSION="~4.0" REDIS_DRIVER=phpredis - LARAVEL_VERSION="^6.0"
- LARAVEL_VERSION="^7.0"
language: php language: php
php: php:
- '7.2' - '7.4'
services: services:
- docker - docker
@ -11,8 +12,8 @@ services:
before_install: before_install:
- docker-compose up -d - docker-compose up -d
# install: install:
# - travis_retry docker-compose exec test composer require --no-interaction "laravel/framework:$LARAVEL_VERSION" "orchestra/testbench:$TESTBENCH_VERSION" - travis_retry docker-compose exec test composer require --no-interaction "laravel/framework:$LARAVEL_VERSION"
install: install:
- travis_retry docker-compose exec test composer install --no-interaction - travis_retry docker-compose exec test composer install --no-interaction

View file

@ -4,27 +4,29 @@ LABEL maintainer="Samuel Štancl"
ENV DEBIAN_FRONTEND=noninteractive ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update \ RUN apt-get update
&& apt-get install -y curl zip unzip git sqlite3 \
php7.2-fpm php7.2-cli \ RUN apt-get install -y software-properties-common
php7.2-pgsql php7.2-sqlite3 php7.2-gd \ RUN add-apt-repository -y ppa:ondrej/php
php7.2-curl php7.2-memcached \
php7.2-imap php7.2-mysql php7.2-mbstring \ RUN apt-get install -y curl zip unzip git sqlite3 \
php7.2-xml php7.2-zip php7.2-bcmath php7.2-soap \ php7.4-fpm php7.4-cli \
php7.2-intl php7.2-readline php7.2-xdebug \ php7.4-pgsql php7.4-sqlite3 php7.4-gd \
php7.4-curl php7.4-memcached \
php7.4-imap php7.4-mysql php7.4-mbstring \
php7.4-xml php7.4-zip php7.4-bcmath php7.4-soap \
php7.4-intl php7.4-readline php7.4-xdebug \
php-msgpack php-igbinary \ php-msgpack php-igbinary \
&& php -r "readfile('http://getcomposer.org/installer');" | php -- --install-dir=/usr/bin/ --filename=composer \ && php -r "readfile('http://getcomposer.org/installer');" | php -- --install-dir=/usr/bin/ --filename=composer \
&& mkdir /run/php && mkdir /run/php
RUN apt-get install -y php7.2-redis RUN apt-get install -y php7.4-redis
RUN apt-get install -y python3 RUN apt-get install -y python3
RUN apt-get install -y php7.2-dev php-pear RUN apt-get install -y php7.4-dev php-pear
RUN pecl install xdebug RUN pecl install xdebug
# RUN echo '' > /etc/php/7.2/cli/conf.d/20-xdebug.ini RUN echo 'zend_extension=/usr/lib/php/20190902/xdebug.so' > /etc/php/7.4/cli/conf.d/20-xdebug.ini
# RUN echo 'zend_extension=/usr/lib/php/20170718/xdebug.so' >> /etc/php/7.2/cli/php.ini
RUN echo 'zend_extension=/usr/lib/php/20170718/xdebug.so' > /etc/php/7.2/cli/conf.d/20-xdebug.ini
RUN apt-get -y autoremove \ RUN apt-get -y autoremove \
&& apt-get clean \ && apt-get clean \

View file

@ -11,17 +11,16 @@
], ],
"require": { "require": {
"ext-json": "*", "ext-json": "*",
"illuminate/support": "^6.0", "illuminate/support": "^6.0|^7.0",
"facade/ignition-contracts": "^1.0", "facade/ignition-contracts": "^1.0",
"ramsey/uuid": "^3.7" "ramsey/uuid": "^3.7"
}, },
"require-dev": { "require-dev": {
"vlucas/phpdotenv": "^3.3", "vlucas/phpdotenv": "^3.3|^4.0",
"laravel/telescope": "^2.0", "laravel/framework": "^6.0|^7.0",
"laravel/framework": "^6.0", "orchestra/testbench-browser-kit": "^4.0|^5.0",
"orchestra/testbench-browser-kit": "^4.0",
"league/flysystem-aws-s3-v3": "~1.0", "league/flysystem-aws-s3-v3": "~1.0",
"phpunit/phpcov": "^6.0" "phpunit/phpcov": "^6.0|^7.0"
}, },
"autoload": { "autoload": {
"psr-4": { "psr-4": {