简体   繁体   English

在构建过程中自动更新composer.lock

[英]Automatically updating composer.lock in build process

I have a Neos project, consisting of a Site providing the main composer container. 我有一个Neos项目,由一个提供主要作曲家容器的站点组成。 composer.json requires a huge number of packages (whole neos/flow environment), including some packages we develop. composer.json需要大量的软件包(整个neos / flow环境),包括我们开发的一些软件包。

Our deployment setup consists of Jenkins, building the css/javascript for both the site and plugin packages (only within their specific gits) and finally triggering TYPO3 Surf, which actually calls composer install and then rsync's to the server. 我们的部署设置包括Jenkins,为站点和插件程序包构建css / javascript(仅在其特定gits内),最后触发TYPO3 Surf,它实际上调用了composer install ,然后将rsync同步到服务器。

Right now, each time we want some changes in our dev branch to be deployed to the testing environment, we have to manually cd to the main composer directory, do a 现在,每次我们希望将dev分支中的某些更改部署到测试环境时,我们都必须手动将CD刻录到主composer目录,然后执行

composer update vendor/package && git add composer.lock && git commit -m "update composer.lock"`.

Is there anyway to always use the newest version of our plugin package with composer? 无论如何,是否始终将最新版本的插件包与composer一起使用? Perhaps excluding the requirement from composer.lock , or just changing it without installing the actual packages. 也许从composer.lock排除了需求,或者只是在不安装实际软件包的情况下对其进行了更改。

对于连续部署到测试服务器,你可以只让詹金斯做一个composer update ,并设置为你的软件包dev/mastercomposer.json

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM