Created
February 2, 2017 20:20
-
-
Save Voles/fe4c412d079100d70ecbe34cf1af6815 to your computer and use it in GitHub Desktop.
GitLab configuration for Protractor
This file contains 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
image: kkarczmarczyk/node-yarn:6.9 | |
cache: | |
paths: | |
- webapp/node_modules/ | |
- vendor/apt | |
e2e_tests: | |
before_script: | |
# install chrome | |
- wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - | |
- echo "deb http://dl.google.com/linux/chrome/deb/ stable main" > /etc/apt/sources.list.d/google.list | |
- apt-get update | |
- apt-get install -y google-chrome-stable xvfb | |
- rm -rf /var/lib/apt/lists/* | |
# xvfb | |
- export DISPLAY=:99.0 | |
- Xvfb -ac $DISPLAY & | |
# start application | |
- cd webapp | |
- yarn --pure-lockfile | |
- yarn start & | |
# give webserver some time to start | |
- sleep 3 | |
script: | |
- yarn run test:e2e |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment