From 982d8c292c68d7c142e57f1d0c840840ec77d279 Mon Sep 17 00:00:00 2001 From: Ruslan Kabalin Date: Thu, 2 Jul 2020 21:08:13 +0100 Subject: [PATCH] Use --shm-size=2g in selenium docker contaier run command. --- .travis.dist.yml | 2 +- .travis.yml | 3 +-- docs/TravisFileExplained.md | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.travis.dist.yml b/.travis.dist.yml index 9b4cc544..ac41af7b 100644 --- a/.travis.dist.yml +++ b/.travis.dist.yml @@ -32,7 +32,7 @@ before_install: - cd ../.. - composer create-project -n --no-dev --prefer-dist blackboard-open-source/moodle-plugin-ci ci ^2 - export PATH="$(cd ci/bin; pwd):$(cd ci/vendor/bin; pwd):$PATH" - - docker run -d -p 127.0.0.1:4444:4444 --net=host -v /dev/shm:/dev/shm -v $HOME/build/moodle:$HOME/build/moodle selenium/standalone-firefox:2.53.1 + - docker run -d -p 127.0.0.1:4444:4444 --net=host --shm-size=2g -v $HOME/build/moodle:$HOME/build/moodle selenium/standalone-firefox:2.53.1 install: - moodle-plugin-ci install diff --git a/.travis.yml b/.travis.yml index b5149fc3..0b943805 100644 --- a/.travis.yml +++ b/.travis.yml @@ -34,7 +34,7 @@ before_install: - export PATH="$(cd bin; pwd):$(cd vendor/bin; pwd):$PATH" - export TRAVIS_BUILD_DIR=$(cd ../moodle-local_travis; pwd) # Start Selenium Standalone with Chrome. - - docker run -d -p 127.0.0.1:4444:4444 --net=host -v /dev/shm:/dev/shm -v $HOME/build/moodle:$HOME/build/moodle selenium/standalone-chrome:3 + - docker run -d -p 127.0.0.1:4444:4444 --net=host --shm-size=2g -v $HOME/build/moodle:$HOME/build/moodle selenium/standalone-chrome:3 install: - moodle-plugin-ci install @@ -60,7 +60,6 @@ jobs: - stage: Tests addons: skip install: - - phpenv config-rm xdebug.ini - make init script: - make validate diff --git a/docs/TravisFileExplained.md b/docs/TravisFileExplained.md index 9f97e834..254edd43 100644 --- a/docs/TravisFileExplained.md +++ b/docs/TravisFileExplained.md @@ -70,7 +70,7 @@ before_install: # prefer to run Behat tests with Chrome profile (see Behat step details below), # use selenium/standalone-chrome:3 image instead. If you don't run Behat tests, # this step is not needed. - - docker run -d -p 127.0.0.1:4444:4444 --net=host -v /dev/shm:/dev/shm -v $HOME/build/moodle:$HOME/build/moodle selenium/standalone-firefox:2.53.1 + - docker run -d -p 127.0.0.1:4444:4444 --net=host --shm-size=2g -v $HOME/build/moodle:$HOME/build/moodle selenium/standalone-firefox:2.53.1 # This lists steps that are run for installation and setup. install: