From 0080b771c99b840547b3c4d78c4d1d87ab98f88d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaime=20Pe=CC=81rez=20Crespo?= <jaime.perez@uninett.no> Date: Thu, 7 Mar 2019 15:21:05 +0100 Subject: [PATCH] Add an extra build step to specify the current version (the one we are building) in the composer.json file. --- bin/build-release.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bin/build-release.sh b/bin/build-release.sh index 344a6380e..6820c7a53 100755 --- a/bin/build-release.sh +++ b/bin/build-release.sh @@ -40,6 +40,9 @@ if [ ! -x "$TARGET/composer.phar" ]; then curl -sS https://getcomposer.org/installer | php -- --install-dir=$TARGET fi +# Set the version in composer.json +php "$TARGET/composer.phar" config version "$VERSION" -d "$TARGET" + # Install dependencies (without vcs history or dev tools) php "$TARGET/composer.phar" install --no-dev --prefer-dist -o -d "$TARGET" -- GitLab