2016-11-28 17:44:06 +01:00
|
|
|
.PHONY: updater.phar
|
|
|
|
|
2023-06-07 09:13:19 +02:00
|
|
|
updater.phar: updater.php lib/*.php buildVersionFile.php
|
2016-11-02 07:46:19 +01:00
|
|
|
php buildVersionFile.php
|
2016-11-21 18:00:16 +01:00
|
|
|
composer dump-autoload
|
2023-06-07 09:13:19 +02:00
|
|
|
composer run box
|
2016-10-27 12:27:52 +02:00
|
|
|
chmod +x updater.phar
|
2016-11-02 07:46:19 +01:00
|
|
|
rm lib/Version.php
|
2016-10-27 12:27:52 +02:00
|
|
|
|
|
|
|
clean:
|
2022-08-04 13:20:26 +02:00
|
|
|
rm updater.phar index.php
|
|
|
|
|
2022-08-30 12:29:47 +02:00
|
|
|
index.php: lib/UpdateException.php lib/LogException.php lib/RecursiveDirectoryIteratorWithoutData.php lib/Updater.php index.web.php
|
2022-08-04 13:20:26 +02:00
|
|
|
# First put openining php tag and license
|
|
|
|
awk '/^<\?php$$/,/\*\//' index.web.php > index.php
|
|
|
|
# Then concat all files while filtering php tag and license
|
|
|
|
cat lib/UpdateException.php lib/LogException.php lib/RecursiveDirectoryIteratorWithoutData.php lib/Updater.php index.web.php| grep -v "^namespace" | awk '/^<\?php$$/,/\*\//{next} 1' >> index.php
|
2016-10-27 12:27:52 +02:00
|
|
|
|
2016-10-28 11:55:35 +02:00
|
|
|
test/vendor:
|
2016-11-08 22:53:47 +01:00
|
|
|
cd tests && composer install
|
2016-10-28 11:55:35 +02:00
|
|
|
|
|
|
|
test: updater.phar test/vendor
|
2016-10-27 12:27:52 +02:00
|
|
|
cd tests && vendor/behat/behat/bin/behat
|
2016-10-27 18:25:54 +02:00
|
|
|
|
2016-11-25 15:51:38 +01:00
|
|
|
test-cli: updater.phar test/vendor
|
|
|
|
cd tests && vendor/behat/behat/bin/behat features/cli.feature
|
|
|
|
|
2023-06-08 16:56:42 +02:00
|
|
|
test-stable24: updater.phar test/vendor
|
|
|
|
cd tests && vendor/behat/behat/bin/behat features/stable24.feature
|
2018-11-01 23:37:49 +01:00
|
|
|
|
2023-06-08 16:56:42 +02:00
|
|
|
test-stable25: updater.phar test/vendor
|
|
|
|
cd tests && vendor/behat/behat/bin/behat features/stable25.feature
|
2019-04-10 13:29:35 +02:00
|
|
|
|
2023-06-08 16:56:42 +02:00
|
|
|
test-stable26: updater.phar test/vendor
|
|
|
|
cd tests && vendor/behat/behat/bin/behat features/stable26.feature
|
2019-07-22 10:38:03 +02:00
|
|
|
|
2016-11-25 15:51:38 +01:00
|
|
|
test-master: updater.phar test/vendor
|
|
|
|
cd tests && vendor/behat/behat/bin/behat features/master.feature
|
|
|
|
|
2016-10-27 18:25:54 +02:00
|
|
|
check-same-code-base:
|
|
|
|
cd tests && php checkSameCodeBase.php
|
2016-11-08 23:24:24 +01:00
|
|
|
|
|
|
|
build-and-local-test: updater.phar
|
|
|
|
cp updater.phar tests/data/server/nextcloud/updater/updater
|
|
|
|
cd tests/data/server/nextcloud/updater && ./updater
|