diff --git a/.travis.yml b/.travis.yml index 292da94fe..d668abc3f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,11 +1,20 @@ language: python python: 2.7 +addons: + sauce_connect: + - username: $SAUCE_USERNAME + - access_key: $SAUCE_ACCESS_KEY env: global: - ARTIFACTS_AWS_REGION=sa-east-1 - ARTIFACTS_S3_BUCKET=collective-cover - secure: "Ll2tTrfw0vpGlk+tfdcOD8HOylIWlyFDtNL+ShfQtAZ9wHZEOFJJyVsaSpDbdgWD1Y+muSz8I9xcvNY7ag17jm8udSEWecGaMIodeHB5hIklEi/OovKoAUgPqaVtbNE/FtyURZf7KE+Nb7zCege6XjCD635U4W2P1/072aEY3CU=" - secure: "bPiRnG3qFbWjD1zgVcTJAcOy8uuUwLKDIaVe15L6M5xLz49SfHFe6Zwc8jQ0g4J9xIDRqX4gcLnJffr0xJmBytXZGohFCjQRPUFruoy/stWWOrdgYT+9Jm9/TbVwoh+Cudo5iTNdIsaVnzcA6IyuTae/i9CJ9QQ7MBKyrjRV+T4=" + - secure: "KDlrJnR1JklDhv/TaPGd9jNo179KTQWmT+fCy9WsxCuFxphmEhvruOnYqQ2blcarXQ9fYq+2kKD5Tgv80kD/tIZEeb0xbB7kEmSwFKfG7t7W9vXNCzfBzj3+yth0NNxJDaOvOCNU4fGM8SXFKeo3Y+mVCGBv0rFIq0CnhAfU0EY=" + - secure: "OYIoYlN76+q4AwOK31SNGR/8u0MDqTc0JI51/Fr+INKjw5h0CI7n18lOwTYDBTPoWMZmUxydAEC5XRJIonsMfii8Mn//avxoQcgahq0nqSESeEh3Tl++OHVkDuXGgaa3nAJcsS3GaAh2Y+bXxda5GdN+E914k60zl+ceD6k/e6Y=" + - ROBOT_BUILD_NUMBER=travis-$TRAVIS_BUILD_NUMBER + - ROBOT_REMOTE_URL=http://$SAUCE_USERNAME:$SAUCE_ACCESS_KEY@ondemand.saucelabs.com:80/wd/hub + - ROBOT_DESIRED_CAPABILITIES=tunnel-identifier:$TRAVIS_JOB_NUMBER matrix: - PLONE_VERSION=4.2 - PLONE_VERSION=4.3 QA=true @@ -29,7 +38,8 @@ after_failure: - travis-artifacts upload --path parts/test notifications: irc: - channels: irc.freenode.org#simplesconsultoria + channels: + - irc.freenode.org#simplesconsultoria template: - "%{repository}#%{build_number} (%{branch} - %{commit} : %{author}): %{message}" - "Change view : %{compare_url}" diff --git a/src/collective/cover/tests/cover.robot b/src/collective/cover/tests/cover.robot index 6cd7357e9..5b35cd13a 100644 --- a/src/collective/cover/tests/cover.robot +++ b/src/collective/cover/tests/cover.robot @@ -1,6 +1,7 @@ *** Settings *** Resource plone/app/robotframework/keywords.robot +Resource plone/app/robotframework/saucelabs.robot Variables plone/app/testing/interfaces.py *** Variables *** diff --git a/src/collective/cover/tests/test_banner_tile.robot b/src/collective/cover/tests/test_banner_tile.robot index 16e97fca3..a7934c9a7 100644 --- a/src/collective/cover/tests/test_banner_tile.robot +++ b/src/collective/cover/tests/test_banner_tile.robot @@ -3,8 +3,8 @@ Resource cover.robot Library Remote ${PLONE_URL}/RobotRemote -Suite Setup Open Test Browser -Suite Teardown Close all browsers +Test Setup Open SauceLabs test browser +Test Teardown Run keywords Report test status Close all browsers *** Variables *** diff --git a/src/collective/cover/tests/test_basic_tile.robot b/src/collective/cover/tests/test_basic_tile.robot index e16a3eed5..d3796e7d8 100644 --- a/src/collective/cover/tests/test_basic_tile.robot +++ b/src/collective/cover/tests/test_basic_tile.robot @@ -3,8 +3,8 @@ Resource cover.robot Library Remote ${PLONE_URL}/RobotRemote -Suite Setup Open Test Browser -Suite Teardown Close all browsers +Test Setup Open SauceLabs test browser +Test Teardown Run keywords Report test status Close all browsers *** Variables *** diff --git a/src/collective/cover/tests/test_carousel_tile.robot b/src/collective/cover/tests/test_carousel_tile.robot index 05576b1b2..769beb232 100644 --- a/src/collective/cover/tests/test_carousel_tile.robot +++ b/src/collective/cover/tests/test_carousel_tile.robot @@ -3,8 +3,8 @@ Resource cover.robot Library Remote ${PLONE_URL}/RobotRemote -Suite Setup Open Test Browser -Suite Teardown Close all browsers +Test Setup Open SauceLabs test browser +Test Teardown Run keywords Report test status Close all browsers *** Variables *** diff --git a/src/collective/cover/tests/test_collection_tile.robot b/src/collective/cover/tests/test_collection_tile.robot index 2472fe516..725a13bfa 100644 --- a/src/collective/cover/tests/test_collection_tile.robot +++ b/src/collective/cover/tests/test_collection_tile.robot @@ -3,8 +3,8 @@ Resource cover.robot Library Remote ${PLONE_URL}/RobotRemote -Suite Setup Open Test Browser -Suite Teardown Close all browsers +Test Setup Open SauceLabs test browser +Test Teardown Run keywords Report test status Close all browsers *** Variables *** diff --git a/src/collective/cover/tests/test_contentchooser.robot b/src/collective/cover/tests/test_contentchooser.robot index c94a2aad5..01933ce74 100644 --- a/src/collective/cover/tests/test_contentchooser.robot +++ b/src/collective/cover/tests/test_contentchooser.robot @@ -3,8 +3,8 @@ Resource cover.robot Library Remote ${PLONE_URL}/RobotRemote -Suite Setup Open Test Browser -Suite Teardown Close all browsers +Test Setup Open SauceLabs test browser +Test Teardown Run keywords Report test status Close all browsers *** Variables *** diff --git a/src/collective/cover/tests/test_cover.robot b/src/collective/cover/tests/test_cover.robot index 19b006e6d..027f8ec3d 100644 --- a/src/collective/cover/tests/test_cover.robot +++ b/src/collective/cover/tests/test_cover.robot @@ -3,8 +3,8 @@ Resource cover.robot Library Remote ${PLONE_URL}/RobotRemote -Test Setup Open Test Browser -Test Teardown Close all browsers +Test Setup Open SauceLabs test browser +Test Teardown Run keywords Report test status Close all browsers *** Test cases *** diff --git a/src/collective/cover/tests/test_css_class.robot b/src/collective/cover/tests/test_css_class.robot index 6c8560c39..e31c0b577 100644 --- a/src/collective/cover/tests/test_css_class.robot +++ b/src/collective/cover/tests/test_css_class.robot @@ -3,8 +3,8 @@ Resource cover.robot Library Remote ${PLONE_URL}/RobotRemote -Suite Setup Open Test Browser -Suite Teardown Close all browsers +Test Setup Open SauceLabs test browser +Test Teardown Run keywords Report test status Close all browsers *** Variables *** diff --git a/src/collective/cover/tests/test_embed_tile.robot b/src/collective/cover/tests/test_embed_tile.robot index a0d684f87..ee1cc5145 100644 --- a/src/collective/cover/tests/test_embed_tile.robot +++ b/src/collective/cover/tests/test_embed_tile.robot @@ -3,8 +3,8 @@ Resource cover.robot Library Remote ${PLONE_URL}/RobotRemote -Suite Setup Open Test Browser -Suite Teardown Close all browsers +Test Setup Open SauceLabs test browser +Test Teardown Run keywords Report test status Close all browsers *** Variables *** diff --git a/src/collective/cover/tests/test_file_tile.robot b/src/collective/cover/tests/test_file_tile.robot index 76d5f100c..6df1ec6e3 100644 --- a/src/collective/cover/tests/test_file_tile.robot +++ b/src/collective/cover/tests/test_file_tile.robot @@ -3,8 +3,8 @@ Resource cover.robot Library Remote ${PLONE_URL}/RobotRemote -Suite Setup Open Test Browser -Suite Teardown Close all browsers +Test Setup Open SauceLabs test browser +Test Teardown Run keywords Report test status Close all browsers *** Variables *** diff --git a/src/collective/cover/tests/test_layout.robot b/src/collective/cover/tests/test_layout.robot index d64f334cb..9289359c3 100644 --- a/src/collective/cover/tests/test_layout.robot +++ b/src/collective/cover/tests/test_layout.robot @@ -3,8 +3,8 @@ Resource cover.robot Library Remote ${PLONE_URL}/RobotRemote -Suite Setup Open Test Browser -Suite Teardown Close all browsers +Test Setup Open SauceLabs test browser +Test Teardown Run keywords Report test status Close all browsers *** Variables *** diff --git a/src/collective/cover/tests/test_list_tile.robot b/src/collective/cover/tests/test_list_tile.robot index d3037caca..36cfd7a62 100644 --- a/src/collective/cover/tests/test_list_tile.robot +++ b/src/collective/cover/tests/test_list_tile.robot @@ -3,8 +3,8 @@ Resource cover.robot Library Remote ${PLONE_URL}/RobotRemote -Suite Setup Open Test Browser -Suite Teardown Close all browsers +Test Setup Open SauceLabs test browser +Test Teardown Run keywords Report test status Close all browsers *** Variables *** diff --git a/src/collective/cover/tests/test_locked_cover.robot b/src/collective/cover/tests/test_locked_cover.robot index 25c173c18..2586a868c 100644 --- a/src/collective/cover/tests/test_locked_cover.robot +++ b/src/collective/cover/tests/test_locked_cover.robot @@ -1,11 +1,12 @@ *** Settings *** Documentation Testing locked and unlocked + Resource cover.robot Library Remote ${PLONE_URL}/RobotRemote -Suite Setup Open Test Browser -Suite Teardown Close all browsers +Test Setup Open SauceLabs test browser +Test Teardown Run keywords Report test status Close all browsers *** Variables *** diff --git a/src/collective/cover/tests/test_reverse_proxy.robot b/src/collective/cover/tests/test_reverse_proxy.robot index 4d251a9d7..20c450fbe 100644 --- a/src/collective/cover/tests/test_reverse_proxy.robot +++ b/src/collective/cover/tests/test_reverse_proxy.robot @@ -5,8 +5,8 @@ Documentation https://github.com/collective/collective.cover/issues/59 Resource cover.robot Library Remote ${PLONE_URL}/RobotRemote -Suite Setup Open Test Browser -Suite Teardown Close all browsers +Test Setup Open SauceLabs test browser +Test Teardown Run keywords Report test status Close all browsers *** Variables *** diff --git a/src/collective/cover/tests/test_richtext_tile.robot b/src/collective/cover/tests/test_richtext_tile.robot index 0b8f3ced2..6d13bf8f1 100644 --- a/src/collective/cover/tests/test_richtext_tile.robot +++ b/src/collective/cover/tests/test_richtext_tile.robot @@ -3,8 +3,8 @@ Resource cover.robot Library Remote ${PLONE_URL}/RobotRemote -Suite Setup Open Test Browser -Suite Teardown Close all browsers +Test Setup Open SauceLabs test browser +Test Teardown Run keywords Report test status Close all browsers *** Variables ***