Browse Source

[appengine] replace composer.json

GAE now runs composer itself and dev dependencies are not installed

https://cloud.google.com/appengine/docs/standard/php7/specifying-dependencies
pull/93/head
Aaron Parecki 5 years ago
parent
commit
12ad970c91
No known key found for this signature in database GPG Key ID: 276C2817346D6056
3 changed files with 45 additions and 2 deletions
  1. +1
    -0
      .travis.yml
  2. +43
    -0
      composer.production.json
  3. +1
    -2
      php.ini

+ 1
- 0
.travis.yml View File

@ -11,6 +11,7 @@ before_script:
- composer install --prefer-dist --dev --no-interaction
before_install:
- cp config.production.php config.php
- cp composer.production.json composer.json
before_deploy:
- openssl aes-256-cbc -K $encrypted_e44c58426490_key -iv $encrypted_e44c58426490_iv
-in XRay-67d8fdd0bba3.json.enc -out XRay-67d8fdd0bba3.json -d

+ 43
- 0
composer.production.json View File

@ -0,0 +1,43 @@
{
"name": "p3k/xray",
"type": "library",
"license": "MIT",
"homepage": "https://github.com/aaronpk/XRay",
"description": "X-Ray returns structured data from any URL",
"require": {
"league/plates": "3.*",
"league/route": "1.*",
"mf2/mf2": "^0.4",
"ezyang/htmlpurifier": "4.10.*",
"indieweb/link-rel-parser": "0.1.*",
"dg/twitter-php": "3.6.*",
"p3k/timezone": "*",
"p3k/http": ">=0.1.8",
"cebe/markdown": "1.1.*",
"p3k/picofeed": ">=0.1.38",
"facebook/graph-sdk": "^5.5",
"masterminds/html5": "^2.3"
},
"autoload": {
"psr-4": {
"p3k\\XRay\\": "lib/XRay"
},
"files": [
"lib/helpers.php",
"lib/XRay.php"
]
},
"require-dev": {
"phpunit/phpunit": "4.8.*"
},
"autoload-dev": {
"files": [
"controllers/Main.php",
"controllers/Parse.php",
"controllers/Token.php",
"controllers/Rels.php",
"controllers/Feeds.php",
"controllers/Certbot.php"
]
}
}

+ 1
- 2
php.ini View File

@ -1,3 +1,2 @@
extension = "curl.so"
google_app_engine.enable_functions = "php_sapi_name, libxml_disable_entity_loader"
open_basedir = none
open_basedir = none

Loading…
Cancel
Save