1
我一直试图弄清楚一段时间,但我无法。Gitlab CI和量角器
我正在尝试使用gitlab ci来测试php和angularjs应用程序。到目前为止,我能够运行所有的php单元测试,但继续使用angularjs量角器测试失败。
# Select image from https://hub.docker.com/_/php/
#image: node
image: ubuntu:14.04
#image: vdubyna/gitlab-ci-docker-runner
services:
# - java
# - blinkmobile/bower
# - caltha/protractor
# - selenium/base
- siomiz/chrome
# # Select what we should cache
cache:
paths:
- vendor/
- node_modules/
before_script:
## Install Java
- apt-get update
- apt-get install curl -y
- apt-get install git -y
- apt-get install default-jre -y
- curl -sL https://deb.nodesource.com/setup_4.x | bash -
- apt-get install -y nodejs
- npm -g install httpster
# - npm -g install bower
- npm install -g protractor
# - npm install # install npm packages
- webdriver-manager update
# - bower install --allow-root
job1:
script:
- java -version
- httpster > ~/program.log 2>&1 &
- protractor test/protractor.conf.js
在那里我现在卡住了,就在于它的无法运行测试,因为我没有安装Chrome ...
托管在哪里?它是来自GitLab还是您自己的共享运动员? –
@JoseTorres我在谷歌计算云上运行它(从docker运行它),我也试过共享的。 –