-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy pathbootstrap.sh
More file actions
executable file
·21 lines (19 loc) · 818 Bytes
/
bootstrap.sh
File metadata and controls
executable file
·21 lines (19 loc) · 818 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh -e
# This script bootstraps composer2nix with composer2nix and regenerates the Nix
# expressions for the testcases.
# To do this you need to vanilla composer package manager installed on your
# system.
#
# You can spawn a nix-shell with composer and all relevant tools as follows:
#
# nix-shell -p php phpPackages.composer nix-prefetch-scripts
composer install
php bin/composer2nix --composer-env src/Composer2Nix/composer-env.nix --no-copy-composer-env --executable
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 ../..
rm -Rf vendor