2017-09-24 20:20:02 +00:00
|
|
|
#!/bin/sh -e
|
|
|
|
|
2020-03-31 21:08:24 +00:00
|
|
|
# This script bootstraps composer2nix with composer2nix and regenerates the Nix
|
|
|
|
# expressions for the testcases.
|
2020-03-31 19:59:31 +00:00
|
|
|
# To do this you need to vanilla composer package manager installed on your
|
2022-02-22 21:58:48 +00:00
|
|
|
# system.
|
2020-03-31 19:59:31 +00:00
|
|
|
#
|
2022-02-22 21:58:48 +00:00
|
|
|
# You can spawn a nix-shell with composer and all relevant tools as follows:
|
|
|
|
#
|
|
|
|
# nix-shell -p php phpPackages.composer nix-prefetch-scripts
|
2020-03-31 19:59:31 +00:00
|
|
|
|
|
|
|
composer install
|
2017-10-25 18:51:35 +00:00
|
|
|
php bin/composer2nix --composer-env src/Composer2Nix/composer-env.nix --no-copy-composer-env --executable
|
2020-03-31 21:08:24 +00:00
|
|
|
cd tests/dependencies
|
|
|
|
composer install
|
|
|
|
php ../../bin/composer2nix --composer-env ../../src/Composer2Nix/composer-env.nix --no-copy-composer-env --name dependencies
|
|
|
|
rm -Rf vendor
|
|
|
|
cd ../enduser
|
|
|
|
php ../../bin/composer2nix --composer-env ../../src/Composer2Nix/composer-env.nix --no-copy-composer-env -p phpunit/phpunit
|
|
|
|
cd ../..
|
2017-09-24 20:20:02 +00:00
|
|
|
rm -Rf vendor
|