Created
September 5, 2018 15:50
-
-
Save DimitryRd/27a82afa6d259619a31f0f60ab8fad34 to your computer and use it in GitHub Desktop.
Set-up for selenoid and containers for tests
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
stages: | |
- setup | |
- tests | |
- manual | |
docker: | |
stage: setup | |
script: | |
- /usr/bin/cm selenoid start --vnc | |
- /usr/bin/cm selenoid-ui start | |
- docker build -t automation-node . | |
- docker build -t automation-src -f ./Docker/Dockerfile-src . | |
- docker run --name automation-src -d --shm-size 2g --net=host automation-src | |
tags: | |
- docker-compose | |
.execute_test_template: &execute_test-by-suite | |
when: manual | |
script: | |
- docker exec automation-src node --max_old_space_size=4096 node_modules/protractor/built/cli.js conf.js --suite=$SUITE | |
dependencies: [] | |
environment: | |
name: env77 | |
url: $TEST_ENV | |
artifacts: | |
expire_in: 48h | |
paths: | |
- test_results | |
when: always | |
tags: | |
- docker-compose |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment