how to run composer.phar self-update in travis

后端 未结 2 536
日久生厌
日久生厌 2021-01-01 23:12

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 \"/hom

相关标签:
2条回答
  • 2021-01-01 23:49

    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

    0 讨论(0)
  • 2021-01-01 23:51

    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
    
    0 讨论(0)
提交回复
热议问题