Skip to content
Browse files

Intitial attempt at setting up Travis-CI.

  • Loading branch information...
1 parent 54152c7 commit 8ac432ae2540dad94456c4abd5f97de7c6effb9e @davehunt committed Jun 20, 2012
Showing with 28 additions and 0 deletions.
  1. +22 −0 .travis.yml
  2. +3 −0 tests/rc/check_sign_in.py
  3. +3 −0 tests/webdriver/check_sign_in.py
View
22 .travis.yml
@@ -0,0 +1,22 @@
+before_script:
+ - curl -k -L -o /tmp/selenium.jar http://selenium.googlecode.com/files/selenium-server-standalone-2.24.1.jar
+ - java -jar /tmp/selenium.jar > selenium.out &
+ - sh -e /etc/init.d/xvfb start
+ - sleep 10
+
+language: python
+python:
+ - 2.6
+ - 2.7
+
+script: py.test --baseurl=http://dev.123done.org --browser=*firefox --driver=firefox -m travis tests/
+
+env:
+ - DISPLAY=':99.0'
+
+notifications:
+ email:
+ - dave.hunt@gmail.com
+ irc:
+ - "irc.mozilla.org#automation"
+ - "irc.mozilla.org#identity"
View
3 tests/rc/check_sign_in.py
@@ -37,6 +37,7 @@ def test_sign_in(self, mozwebqa):
mozwebqa.wait_for_element_visible(mozwebqa, logout_locator)
assert mozwebqa.selenium.is_visible(logout_locator)
+ @pytest.mark.travis
def test_sign_in_new_user_helper(self, mozwebqa):
restmail_username = 'bidpom_%s' % uuid.uuid1()
email = '%s@restmail.net' % restmail_username
@@ -48,6 +49,7 @@ def test_sign_in_new_user_helper(self, mozwebqa):
mail = restmail.get_mail(restmail_username)
assert 'Thanks for verifying' in mail[0]['text']
+ @pytest.mark.travis
def test_sign_in_new_user(self, mozwebqa):
restmail_username = 'bidpom_%s' % uuid.uuid1()
email = '%s@restmail.net' % restmail_username
@@ -66,6 +68,7 @@ def test_sign_in_new_user(self, mozwebqa):
mail = restmail.get_mail(restmail_username)
assert 'Thanks for verifying' in mail[0]['text']
+ @pytest.mark.travis
def test_sign_in_returning_user(self, mozwebqa):
self.create_verified_user(mozwebqa.selenium, mozwebqa.timeout)
mozwebqa.selenium.open('%s/' % mozwebqa.base_url)
View
3 tests/webdriver/check_sign_in.py
@@ -35,6 +35,7 @@ def test_sign_in(self, mozwebqa):
WebDriverWait(mozwebqa.selenium, mozwebqa.timeout).until(
lambda s: s.find_element_by_id('loggedin').is_displayed())
+ @pytest.mark.travis
def test_sign_in_new_user_helper(self, mozwebqa):
restmail_username = 'bidpom_%s' % uuid.uuid1()
email = '%s@restmail.net' % restmail_username
@@ -46,6 +47,7 @@ def test_sign_in_new_user_helper(self, mozwebqa):
mail = restmail.get_mail(restmail_username)
assert 'Thanks for verifying' in mail[0]['text']
+ @pytest.mark.travis
def test_sign_in_new_user(self, mozwebqa):
restmail_username = 'bidpom_%s' % uuid.uuid1()
email = '%s@restmail.net' % restmail_username
@@ -64,6 +66,7 @@ def test_sign_in_new_user(self, mozwebqa):
mail = restmail.get_mail(restmail_username)
assert 'Thanks for verifying' in mail[0]['text']
+ @pytest.mark.travis
def test_sign_in_returning_user(self, mozwebqa):
self.create_verified_user(mozwebqa.selenium, mozwebqa.timeout)
mozwebqa.selenium.get('%s/' % mozwebqa.base_url)

0 comments on commit 8ac432a

Please sign in to comment.
Something went wrong with that request. Please try again.