Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dependencies for building the PHAR #124

Merged
merged 6 commits into from Nov 3, 2018

Conversation

theofidry
Copy link
Contributor

Attempt to udpate PHP-Scoper and switch from the unmaintained Box2 to Humbug Box A.K.A Box 3.

It's not going as well as I hoped mostly because Easy_Rdf is using a weird PSR-0 setup which PHP-Scoper is not able to convert correctly to PSR-4.

- if [[ $coverage = 1 ]]; then mkdir -p build/logs; fi
- if [[ $coverage = 1 ]]; then wget https://github.com/satooshi/php-coveralls/releases/download/v2.0.0/php-coveralls.phar; fi
- if [[ $lint = 1 ]]; then wget https://github.com/FriendsOfPHP/PHP-CS-Fixer/releases/download/v2.10.0/php-cs-fixer.phar; fi
- if [[ $lint = 1 ]]; then composer global require --dev 'phpstan/phpstan:^0.8'; fi
- if [[ ! $deps && $TRAVIS_PHP_VERSION = "7.2" ]]; then curl -LSs https://box-project.github.io/box2/installer.php | php; fi;
- wget -O box.phar https://github.com/humbug/box/releases/download/3.1.3/box.phar
- export BOX_BIN=$(pwd)/box.phar
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we export BOX_BIN here because the shell script uses that environment variable. It's also conveniently allows one to switch to another bin locally, e.g. myself to switch to my current box binary directly from the humbug/box project.

@@ -1,31 +0,0 @@
{
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nothing wrong with the file itself but I think it's a better practice to have a .dist to allow one to use the non .dist file locally for testing his stuff

@@ -0,0 +1,33 @@
{
"banner": [
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there was no banner previously, up to you if you want one or if you want to remove it

@theofidry
Copy link
Contributor Author

PR ready for review, the failure seems unrelated but I think it would be better to rebase & merge this one after #142

@theofidry
Copy link
Contributor Author

@dunglas ready for review

@dunglas dunglas merged commit e1e5ad6 into api-platform:master Nov 3, 2018
@dunglas
Copy link
Member

dunglas commented Nov 3, 2018

Thank you very much @theofidry

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants