This repository was archived by the owner on Oct 23, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +4
-32
lines changed Expand file tree Collapse file tree 2 files changed +4
-32
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ services:
4
4
- docker
5
5
6
6
addons :
7
+ chrome : stable
7
8
apt :
8
9
packages :
9
10
- postfix
19
20
- PHP_VERSION=7
20
21
21
22
before_script :
23
+ - chmod a+w -R $TRAVIS_BUILD_DIR
22
24
- docker run --name mysql -e MYSQL_ROOT_PASSWORD=admin -d mysql:5.6
23
- - docker run -e DB_SERVER=mysql -e PS_INSTALL_AUTO=0 -e PS_FOLDER_ADMIN=admin-dev -e PS_FOLDER_INSTALL=install-dev -p 80:80 -tid --link mysql --name=prestashop -v $TRAVIS_BUILD_DIR:/var/www/html/themes/StarterTheme prestashop/prestashop-git:$PHP_VERSION
25
+ - docker run -e DB_SERVER=mysql -e PS_INSTALL_AUTO=0 -e PS_FOLDER_ADMIN=admin-dev -e PS_FOLDER_INSTALL=install-dev -p 80:80 -tid --link mysql --name=prestashop -v $TRAVIS_BUILD_DIR:/var/www/html/themes/StarterTheme prestashop/prestashop-git:$PHP_VERSION
24
26
- docker exec prestashop git config remote.origin.fetch "+refs/heads/*:refs/remotes/origin/*"
25
27
- docker exec prestashop git fetch origin
26
28
- docker exec prestashop git checkout .
@@ -33,14 +35,12 @@ before_script:
33
35
- docker exec prestashop php install-dev/index_cli.php --db_create=1 --db_server=mysql --db_password=admin --name=prestashop.unit.test --password=123456789
34
36
- docker exec prestashop chown -R www-data:www-data /var/www/html/
35
37
- docker cp prestashop:/var/www/html/tests/Selenium selenium
36
- - cp travis-scripts/settings.travis.js selenium/settings.js
37
- - export PATH=$PATH:/usr/lib/jvm/java-8-oracle/jre/bin
38
+ - cp selenium/settings.travis.js selenium/settings.js
38
39
- cd selenium && npm install --silent
39
40
- docker exec prestashop php tests/Selenium/prepare-shop.php
40
41
- /sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_10.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :10 -ac -screen 0 1600x1200x16
41
42
- DISPLAY=:10 node_modules/.bin/selenium-standalone start &> /tmp/selenium.log &
42
43
- sleep 5
43
- - export CHROME_BIN=/usr/bin/google-chrome
44
44
45
45
notifications :
46
46
email : false
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments