浏览代码

Build system: Allow pre-release dependencies when creating pre-releases

Daniel Rudolf 6 年之前
父节点
当前提交
6dd6da655f
共有 1 个文件被更改,包括 7 次插入0 次删除
  1. 7 0
      .build/create-release.sh

+ 7 - 0
.build/create-release.sh

@@ -31,6 +31,13 @@ composer require --no-update \
     "picocms/pico-deprecated $VERSION_FULL@$VERSION_STABILITY"
 echo
 
+# set minimum stability
+if [ "$VERSION_STABILITY" != "stable" ]; then
+    echo "Setting minimum stability to '$VERSION_STABILITY'..."
+    composer config "minimum-stability" "$VERSION_STABILITY"
+    composer config "prefer-stable" "true"
+fi
+
 # install dependencies
 echo "Running \`composer install\`..."
 composer install --no-suggest --prefer-dist --no-dev --optimize-autoloader