how to run composer.phar self-update in travis

 ̄綄美尐妖づ 提交于 2019-12-30 04:05:05

问题


I am facing warning statements in my travis builds.

Warning: This development build of composer is over 30 days old. It is recommended to update it by running "/home/travis/.phpenv/versions/5.3.26/bin/composer.phar self-update" to get the latest version.

How do I then run this?

See an e.g. here


回答1:


It is not such a good idea to hard-code the php path as paths might change when Travis gets update. I suggest simply calling

composer self-update



回答2:


inside your travis.yml

make sure you have this section

before_install:
  - php /home/travis/.phpenv/versions/5.3.26/bin/composer.phar self-update

in order to run the self-update properly



来源:https://stackoverflow.com/questions/19064731/how-to-run-composer-phar-self-update-in-travis

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!