【发布时间】:2023-01-13 00:27:00
【问题描述】:
我有舞台,在那里我为我们的应用程序进行测试
test-dev:
stage: test
image: selenium/standalone-chrome
image: node:14.15.0-stretch
script:
- npm i
- npm run prod
- /opt/bin/start-selenium-standalone.sh
- npx mocha tests/js/screenshots-* --timeout 50000
- npx playwright test tests/js/pw_*
- php artisan test
artifacts:
when: always
name: $CI_COMMIT_SHA
untracked: true
paths:
- tests/js/screenshots/
- tests/js/screens/
- tests/js/report/
cache:
untracked: true
when: always
paths:
- tests/js/screenshots/
- tests/js/screens/
- tests/js/report/
- storage/
- vendor/ #composer packages
- node_modules
- public
但是系统找不到start-selenium-standalone.sh,在原来的docker镜像中是在/opt/bin
我怎样才能启动它?
【问题讨论】:
-
您只能为一个作业指定一个
image。在这种情况下,它会拾取不包含硒的node:14.15.0-stretch。
标签: docker image gitlab-ci gitlab-ci-runner