forked from paylike/plugin-magento-2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
49 lines (40 loc) · 2.07 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
language: php
dist: trusty
php:
- 7.2
addons:
chrome: stable
env:
global:
- USE_STEWARD_MASTER=1 # During Steward 3.0 development always run against latest Steward master branch
- SELENIUM_SERVER_VERSION="3.8.1"
- CHROMEDRIVER_VERSION="2.36"
matrix:
- BROWSER=chrome
install:
- composer install --no-interaction # Install Steward and its dependencies
# Currently all build are against master; reenable this after Steward 3.0 is tagged
# - if [ -n "$USE_STEWARD_MASTER" ]; then composer require lmc/steward:dev-master --update-with-dependencies; fi
- SELENIUM_PATH=$(./vendor/bin/steward install $SELENIUM_SERVER_VERSION --no-interaction) # Download the Selenium standalone server jar file
- echo "Selenium server path:" $SELENIUM_PATH
- if [ "$BROWSER" = "chrome" ]; then mkdir chromedriver; wget -q -t 3 https://chromedriver.storage.googleapis.com/$CHROMEDRIVER_VERSION/chromedriver_linux64.zip; unzip chromedriver_linux64 -d chromedriver; fi
- if [ "$BROWSER" = "chrome" ]; then export CHROMEDRIVER_PATH=./chromedriver/chromedriver; fi
before_script:
- java -jar $SELENIUM_PATH -role hub -enablePassThrough false -log selenium-server.log &
- until $(echo | nc localhost 4444); do sleep 1; echo Waiting for selenium-server to start...; done;
# Start one Selenium node for headless Chrome
- if [ "$BROWSER" = "chrome" ]; then java -Dwebdriver.chrome.driver="$CHROMEDRIVER_PATH" -jar $SELENIUM_PATH -role node -port 8910 -log selenium-node-1.log -enablePassThrough false & fi
- sleep 3 # wait until browsers starts
script:
- ./vendor/bin/steward run staging $BROWSER --group="magento_quick_test" -vv # Run the tests in $BROWSER and specify `staging` as an environment name
after_success:
- ./vendor/bin/steward results -vvv
- ./vendor/bin/steward run staging $BROWSER --group="magento_full_test" -vv
- ./vendor/bin/steward results -vvv
- ./vendor/bin/steward run staging $BROWSER --group="magento_version_log" -vv
- ./vendor/bin/steward results -vvv
after_script:
- ./vendor/bin/steward results -vvv
cache:
directories:
- $HOME/.composer/cache