Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
converse.js
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
converse.js
Commits
6f6bd8fa
Commit
6f6bd8fa
authored
May 19, 2015
by
Weblate
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
8e2e5f64
1b9fc682
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
6 deletions
+5
-6
.travis.yml
.travis.yml
+2
-0
ci/run-selenium
ci/run-selenium
+1
-1
ci/setup-env
ci/setup-env
+0
-3
weblate/trans/tests/test_selenium.py
weblate/trans/tests/test_selenium.py
+2
-2
No files found.
.travis.yml
View file @
6f6bd8fa
...
...
@@ -49,3 +49,5 @@ sudo: false
notifications
:
webhooks
:
-
https://buildtimetrend.herokuapp.com/travis
addons
:
sauce_connect
:
true
ci/run-selenium
View file @
6f6bd8fa
...
...
@@ -3,7 +3,7 @@
.
ci/lib
export
CI
_SELENIUM
=
1
export
DO
_SELENIUM
=
1
# We retry Selenium tests to workaroud occasional failures
# in connection to SauceLabs
...
...
ci/setup-env
View file @
6f6bd8fa
...
...
@@ -6,6 +6,3 @@ mysql -e 'DROP DATABASE IF EXISTS weblate;' -uroot
mysql
-e
'CREATE DATABASE weblate CHARACTER SET utf8 COLLATE utf8_general_ci;'
-uroot
psql
-c
'DROP DATABASE IF EXISTS weblate;'
-U
postgres
psql
-c
'CREATE DATABASE weblate;'
-U
postgres
if
[
"
$CI_MODE
"
=
selenium
-a
-n
"
$SAUCE_USERNAME
"
-a
-n
"
$SAUCE_ACCESS_KEY
"
]
;
then
curl
-L
https://gist.githubusercontent.com/santiycr/5139565/raw/sauce_connect_setup.sh | bash
fi
weblate/trans/tests/test_selenium.py
View file @
6f6bd8fa
...
...
@@ -18,7 +18,7 @@ from weblate.trans.tests import OverrideSettings
# Check whether we should run Selenium tests
DO_SELENIUM
=
(
(
'DO_SELENIUM'
in
os
.
environ
or
'CI_SELENIUM'
in
os
.
environ
)
and
'DO_SELENIUM'
in
os
.
environ
and
'SAUCE_USERNAME'
in
os
.
environ
and
'SAUCE_ACCESS_KEY'
in
os
.
environ
)
...
...
@@ -79,7 +79,7 @@ class SeleniumTests(LiveServerTestCase, RegistrationTestMixin):
cls
.
sauce_auth
=
base64
.
encodestring
(
'{}:{}'
.
format
(
cls
.
username
,
cls
.
key
)
)[:
-
1
]
hub_url
=
"{}:{}@
localhost:4445
"
.
format
(
cls
.
username
,
cls
.
key
)
hub_url
=
"{}:{}@
ondemand.saucelabs.com
"
.
format
(
cls
.
username
,
cls
.
key
)
cls
.
driver
=
webdriver
.
Remote
(
desired_capabilities
=
cls
.
caps
,
command_executor
=
"http://{}/wd/hub"
.
format
(
hub_url
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment