Gitlab CI and Protractor -
i've been trying figure out time now, unable to.
i trying use gitlab ci test php , angularjs app. far able run of php unit tests, keep on failing angularjs protractor test.
# select image 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 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
where stuck now, it's unable run test because don't have chrome installed...
i haven't tested protractor when runners available missing dependency turn local setup considering i'm able run on dev machine. take consideration runners ones require these libraries , services build project not gitlab server itself. later on can build public runner team.
to use docs here https://gitlab.com/gitlab-org/gitlab-ci-multi-runner#installation. instructions guide through downloading code, changing permissions, registering runners , starting/stopping it. installation available different operating systems. remember when registering runner information requires on gitlab application under project/runners.
hope helps.
Comments
Post a Comment