@@ -11,6 +11,8 @@ appstore_package_name=$(appstore_build_directory)/$(app_real_name)
1111npm =$(shell which npm 2> /dev/null)
1212composer =$(shell which composer 2> /dev/null)
1313
14+ include nextcloud.env
15+
1416all : build
1517
1618# Fetches dependencies and builds it
3032.PHONY : oc
3133oc :
3234ifeq (,$(wildcard nextcloud-server) )
33- ./scripts/get-nc-server.sh
35+ ./scripts/get-nc-server.sh "$(NEXTCLOUD_VERSION)"
3436endif
3537
3638# Installs and updates the composer dependencies. If composer is not installed
@@ -80,20 +82,20 @@ unittests:
8082# Run integration tests
8183.PHONY : integrationtests
8284integrationtests :
83- ./scripts/run-app.sh " 33.0.0 " 1
85+ ./scripts/run-app.sh " $( NEXTCLOUD_VERSION ) " 1
8486 composer install
8587 ./vendor/bin/phpunit -c tests/integration/phpunit.xml tests/integration/ --testdox
8688
8789# Run bats tests
8890.PHONY : bats
8991bats :
90- ./scripts/run-app.sh " 33.0.0 " 1
92+ ./scripts/run-app.sh " $( NEXTCLOUD_VERSION ) " 1
9193 bats --verbose-run --timing --trace ./tests/bats
9294
9395# Complete production like but static Nextcloud and app setup
9496.PHONY : prod
9597prod : oc
96- ./scripts/run-app.sh " 33.0.0 " 1
98+ ./scripts/run-app.sh " $( NEXTCLOUD_VERSION ) " 1
9799
98100# Same as clean but also removes dependencies and build related folders
99101.PHONY : distclean
@@ -111,7 +113,7 @@ local: build
111113 docker compose kill || true
112114 docker stop nextcloud-container || true
113115 docker container rm nextcloud-container || true
114- docker run --rm -d -p 8080:80 --name nextcloud-container -e SERVER_BRANCH=" v33.0.0 " -v .:/var/www/html/apps-extra/gdatavaas ghcr.io/juliusknorr/nextcloud-dev-php84:latest
116+ docker run --rm -d -p 8080:80 --name nextcloud-container -e SERVER_BRANCH=" v $( NEXTCLOUD_VERSION ) " -v .:/var/www/html/apps-extra/gdatavaas ghcr.io/juliusknorr/nextcloud-dev-php84:latest
115117 composer install
116118
117119# Builds the app for production and prepares it for the appstore under ./build/artifacts
0 commit comments