CircleCI无法启动Chrome Web驱动程序

时间:2018-11-20 10:33:56

标签: circleci chrome-web-driver

我试图在CircleCI上运行laravel黄昏测试,但无法启动chrome webdriver。

这是我的工作:

#  deploy-job
deploy-job:
  <<: *defaults
  steps:
    - attach_workspace:
        at: ~/laravel
    - run:
        name: Run tests
        command: ./vendor/bin/phpunit -d memory_limit=512M
    - run:
        name: Start Chrome Driver
        command: ./vendor/laravel/dusk/bin/chromedriver-linux
        background: true
    - run:
        name: Run Laravel Server
        command: php artisan serve
        background: true
    - run:
        name: Run Laravel Dusk Tests
        command: php artisan dusk

在步骤Start Chrome Driver上,出现以下错误:

#!/bin/bash -eo pipefail
./vendor/laravel/dusk/bin/chromedriver-linux
Starting ChromeDriver 2.35.528139 (47ead77cb35ad2a9a83248b292151462a66cd881) on port 9515
Only local connections are allowed.
Step was canceled

关于如何解决此问题的任何建议?

0 个答案:

没有答案