Created
May 31, 2017 05:33
-
-
Save rufinus/9ee8f04fc1f9248eeb0c73ad5360a006 to your computer and use it in GitHub Desktop.
gitlab ci selenium.yml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'E2E tests': | |
before_script: | |
- yarn install --force >/dev/null | |
- /bin/bash -c '/usr/bin/killall -q lite-server; exit 0' | |
- export DOCKERHOST=$(ifconfig | grep -E "([0-9]{1,3}\\.){3}[0-9]{1,3}" | grep -v 127.0.0.1 | awk '{ print $2 }' | cut -f2 -d ':' | head -n1) | |
- export E2E_BASE_URL="http://$DOCKERHOST:8000/#." | |
- lite-server -c bs-config.js >/dev/null & | |
script: | |
- node_modules/.bin/protractor ./protractor.conf.js --seleniumAddress="http://localhost:4444/wd/hub" --baseUrl="http://$DOCKERHOST:8000" --browser chrome | |
- killall lite-server >/dev/null | |
after_script: | |
- /bin/bash -c '/usr/bin/killall -q lite-server; exit 0' | |
stage: test | |
dependencies: | |
- Build | |
tags: | |
- selenium |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment