Skip to content

Commit

Permalink
Optimizations for composer (#952)
Browse files Browse the repository at this point in the history
* Add apcu optimization
* Update composer
  • Loading branch information
asbiin authored Mar 5, 2018
1 parent 974123e commit f4b4d29
Show file tree
Hide file tree
Showing 6 changed files with 117 additions and 110 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ before_install:

install:
# Get packages
- travis_retry composer install --no-interaction --prefer-dist --no-suggest --ignore-platform-reqs
- travis_retry composer install --no-interaction --no-suggest --ignore-platform-reqs

# Build js and css assets
- npm install
Expand Down Expand Up @@ -124,7 +124,7 @@ jobs:

install:
# Get packages without require-dev
- travis_retry composer install --no-interaction --prefer-dist --no-suggest --ignore-platform-reqs --no-dev
- travis_retry composer install --no-interaction --no-suggest --ignore-platform-reqs --no-dev
# Build js and css assets
- npm install
- npm run production
Expand Down
Binary file modified .travis.yml.sig
Binary file not shown.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ RUN cp .env.example .env; \

# Install composer dependencies and prepare permissions for Apache
USER monica
RUN composer install --no-interaction --prefer-dist --no-suggest --optimize-autoloader --no-dev && \
RUN composer install --no-interaction --no-suggest --no-dev && \
composer clear-cache
USER root

Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,12 @@ docker_push_bintray: .travis.deploy.json
build: build-dev

build-prod:
composer install --no-interaction --prefer-dist --no-suggest --optimize-autoloader --no-dev
composer install --no-interaction --no-suggest --no-dev
npm install
npm run production

build-dev:
composer install --no-interaction --prefer-dist --no-suggest --optimize-autoloader
composer install --no-interaction --no-suggest
npm install
npm run dev

Expand Down
9 changes: 7 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"fzaninotto/faker": "^1.6",
"guzzlehttp/guzzle": "^6.2",
"intervention/image": "^2.3",
"jenssegers/date": "^3.2",
"jenssegers/date": "^3.3",
"jeroendesloovere/vcard": "^1.5",
"laravel/cashier": "~7.0",
"laravel/framework": "5.5.*",
Expand All @@ -36,7 +36,8 @@
"predis/predis": "^1.1",
"roave/security-advisories": "dev-master",
"sabre/vobject": "^4.1",
"sentry/sentry-laravel": "^0.7.0"
"sentry/sentry-laravel": "^0.7.0",
"symfony/translation": "3.4.*"
},
"require-dev": {
"filp/whoops": "~2.0",
Expand All @@ -49,6 +50,9 @@
"symfony/css-selector": "2.8.*|3.0.*",
"symfony/dom-crawler": "2.8.*|3.0.*"
},
"suggest": {
"ext-apcu": "*"
},
"autoload": {
"classmap": [
"database/seeds",
Expand Down Expand Up @@ -83,6 +87,7 @@
]
},
"config": {
"apcu-autoloader": true,
"preferred-install": "dist",
"sort-packages": true,
"optimize-autoloader": true
Expand Down
Loading

0 comments on commit f4b4d29

Please sign in to comment.