✅ Fixed bulk conversion getting stuck on missing files ✅ Added robust error handling and timeout protection ✅ Improved JavaScript response parsing ✅ Added file existence validation ✅ Fixed missing PHP class imports ✅ Added comprehensive try-catch error recovery 🔧 Key fixes: - File existence checks before conversion attempts - 30-second timeout protection per file - Graceful handling of 500 errors and JSON parsing issues - Automatic continuation to next file on failures - Cache busting for JavaScript updates 🎯 Result: Bulk conversion now completes successfully even with missing files 🚀 Generated with Claude Code (https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
59 lines
1.2 KiB
YAML
59 lines
1.2 KiB
YAML
language: php
|
|
os: linux
|
|
|
|
matrix:
|
|
fast_finish: true
|
|
include:
|
|
- name: "PHP 7.4, Xenial"
|
|
php: 7.4
|
|
dist: xenial
|
|
env:
|
|
- PHPSTAN=1
|
|
- UPLOADCOVERAGE=0
|
|
- name: "PHP 7.3, Xenial"
|
|
php: 7.3
|
|
dist: xenial
|
|
env:
|
|
- PHPSTAN=1
|
|
- UPLOADCOVERAGE=1
|
|
- name: "PHP 7.2, Xenial"
|
|
php: 7.2
|
|
dist: xenial
|
|
env:
|
|
- PHPSTAN=1
|
|
- UPLOADCOVERAGE=0
|
|
- name: "PHP 7.1, Xenial"
|
|
php: 7.1
|
|
dist: xenial
|
|
env:
|
|
- PHPSTAN=1
|
|
- UPLOADCOVERAGE=0
|
|
- name: "PHP 7.0, Xenial"
|
|
php: 7.0
|
|
dist: xenial
|
|
env:
|
|
- PHPSTAN=0
|
|
- UPLOADCOVERAGE=0
|
|
- name: "PHP 5.6, Trusty"
|
|
php: 5.6
|
|
dist: trusty
|
|
env:
|
|
- PHPSTAN=0
|
|
- UPLOADCOVERAGE=0
|
|
|
|
before_script:
|
|
- (composer self-update; true)
|
|
- composer install
|
|
- if [[ $PHPSTAN == 1 ]]; then composer require --dev phpstan/phpstan:"^0.12.37"; fi
|
|
|
|
script:
|
|
- composer test
|
|
- if [[ $PHPSTAN == 1 ]]; then vendor/bin/phpstan analyse src --level=4; fi
|
|
|
|
after_script:
|
|
- |
|
|
if [[ $UPLOADCOVERAGE == 1 ]]; then
|
|
wget https://scrutinizer-ci.com/ocular.phar
|
|
php ocular.phar code-coverage:upload --format=php-clover coverage.clover
|
|
fi
|