laravel travis ci部署报错

.yaml文件

language: php

php:
  - 5.5
  - 7.0
  - hhvm

install:
  - composer install --prefer-dist --no-dev --optimize-autoloader --quiet
notifications:
  email:
    recipients:
      - xxx@gmail.com
    on_success: always
    on_failure: always

script: phpunit -c phpunit.xml --coverage-text

报的错误
The command "composer install --prefer-dist --no-dev --optimize-autoloader --quiet" failed and exited with 255 during .

阅读 3.2k
1 个回答

把composer install命令放到一个shell脚本中,然后这里改为执行shell脚本试试

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题