You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Change the Travis to run differently the acceptance test #713
Because there was some unexpected problems with Travis and the accessing the encrypted information (the Sauce Labs credentials) [1] we need to change how we run acceptance tests from the original plan.
For each PR, run with Firefox (provided by Travis), selenium 2/3 and Python 2/3.
Create nightly/weekly build to run from master and run by using Sauce Labs by using different browsers.
And then run test runner we could do something like this:
from __future__ import print_function
import os
import sys
from selenium import webdriver
print('start')
browser = sys.argv[1]
selenium = os.environ.get('SELENIUM')
print(browser)
print(selenium)
travis_event_type = os.environ.get('TRAVIS_EVENT_TYPE')
if travis_event_type == 'cron':
print(os.environ.get('SAUCE_ACCESS_KEY'))
print(os.environ.get('SAUCE_USERNAME'))
# and other sstuff run with Sauce labs
elif travis_event_type != 'cron' and browser != 'chorme':
# exit fast if trying to use other browser than chrome
print(
'No cron, exting test with selenium-{} and {} from Sauce'.format(
selenium,
browser
)
)
sys.exit(0)
else:
print('Running test for PR with {} using selenium'.format(browser, selenium))
driver = webdriver.Chrome()
driver.get("http://www.python.org")
driver.close()
print ('end')
sys.exit(0)
Activity
aaltat commentedon Dec 14, 2016
We could define the
.travis.yamllike this:And then run test runner we could do something like this:
aaltat commentedon Dec 18, 2016
#716 provides a PR to solve the problem with encrypted data. Changed quite lot of things in the PR
To do:
env.pyfile