Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
John McEleney
/
casperjs
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
5e5724be
...
5e5724beda3e45ebb7676ced25ca3f3236d1aedf
authored
2013-11-16 12:35:26 +0100
by
Nicolas Perriault
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
updated python test runner to use ENGINE_EXECUTABLE
1 parent
d8e8f4e7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
9 deletions
.travis.yml
tests/clitests/runtests.py
.travis.yml
View file @
5e5724b
...
...
@@ -22,11 +22,11 @@ script:
env
:
matrix
:
-
ENGINE="phantomjs" ENGINE_
EXECUTABLE="engine/bin/phantomjs --local-to-remote-url-access=yes --ignore-ssl-errors=yes" ENGINE_VERSION="1.8.2
" ENGINE_ARCHIVE_URL="https://phantomjs.googlecode.com/files/phantomjs-1.8.2-linux-x86_64.tar.bz2"
-
ENGINE="phantomjs" ENGINE_
EXECUTABLE="engine/bin/phantomjs --local-to-remote-url-access=yes --ignore-ssl-errors=yes" ENGINE_VERSION="1.9.0
" ENGINE_ARCHIVE_URL="https://phantomjs.googlecode.com/files/phantomjs-1.9.0-linux-x86_64.tar.bz2"
-
ENGINE="phantomjs" ENGINE_
EXECUTABLE="engine/bin/phantomjs --local-to-remote-url-access=yes --ignore-ssl-errors=yes" ENGINE_VERSION="1.9.1
" ENGINE_ARCHIVE_URL="https://phantomjs.googlecode.com/files/phantomjs-1.9.1-linux-x86_64.tar.bz2"
-
ENGINE="phantomjs" ENGINE_
EXECUTABLE="engine/bin/phantomjs --local-to-remote-url-access=yes --ignore-ssl-errors=yes" ENGINE_VERSION="1.9.2
" ENGINE_ARCHIVE_URL="https://phantomjs.googlecode.com/files/phantomjs-1.9.2-linux-x86_64.tar.bz2"
-
ENGINE="slimerjs" ENGINE_
EXECUTABLE="engine/slimerjs --local-to-remote-url-access=yes --ignore-ssl-errors=yes" ENGINE_VERSION="0.8.4
" ENGINE_ARCHIVE_URL="http://download.slimerjs.org/v0.8/0.8.4/slimerjs-0.8.4-linux-x86_64.tar.bz2"
-
ENGINE="phantomjs" ENGINE_
VERSION="1.8.2" ENGINE_EXECUTABLE="engine/bin/phantomjs --local-to-remote-url-access=yes --ignore-ssl-errors=yes
" ENGINE_ARCHIVE_URL="https://phantomjs.googlecode.com/files/phantomjs-1.8.2-linux-x86_64.tar.bz2"
-
ENGINE="phantomjs" ENGINE_
VERSION="1.9.0" ENGINE_EXECUTABLE="engine/bin/phantomjs --local-to-remote-url-access=yes --ignore-ssl-errors=yes
" ENGINE_ARCHIVE_URL="https://phantomjs.googlecode.com/files/phantomjs-1.9.0-linux-x86_64.tar.bz2"
-
ENGINE="phantomjs" ENGINE_
VERSION="1.9.1" ENGINE_EXECUTABLE="engine/bin/phantomjs --local-to-remote-url-access=yes --ignore-ssl-errors=yes
" ENGINE_ARCHIVE_URL="https://phantomjs.googlecode.com/files/phantomjs-1.9.1-linux-x86_64.tar.bz2"
-
ENGINE="phantomjs" ENGINE_
VERSION="1.9.2" ENGINE_EXECUTABLE="engine/bin/phantomjs --local-to-remote-url-access=yes --ignore-ssl-errors=yes
" ENGINE_ARCHIVE_URL="https://phantomjs.googlecode.com/files/phantomjs-1.9.2-linux-x86_64.tar.bz2"
-
ENGINE="slimerjs" ENGINE_
VERSION="0.8.4" ENGINE_EXECUTABLE="engine/slimerjs --local-to-remote-url-access=yes --ignore-ssl-errors=yes
" ENGINE_ARCHIVE_URL="http://download.slimerjs.org/v0.8/0.8.4/slimerjs-0.8.4-linux-x86_64.tar.bz2"
notifications
:
irc
:
...
...
tests/clitests/runtests.py
View file @
5e5724b
...
...
@@ -9,12 +9,13 @@ import unittest
TEST_ROOT
=
os
.
path
.
abspath
(
os
.
path
.
dirname
(
__file__
))
CASPERJS_ROOT
=
os
.
path
.
abspath
(
os
.
path
.
join
(
TEST_ROOT
,
'..'
,
'..'
))
CASPER_EXEC
=
os
.
path
.
join
(
CASPERJS_ROOT
,
'bin'
,
'casperjs'
)
PHANTOMJS_EXEC
=
os
.
environ
[
'PHANTOMJS_EXECUTABLE'
]
ENGINE_EXEC
=
os
.
environ
.
get
(
'ENGINE_EXECUTABLE'
,
os
.
environ
.
get
(
'PHANTOMJS_EXECUTABLE'
,
"phantomjs"
))
# make it to an absolute path, because some test change the working directory
# and relative path to phantomjs would be invalid
if
not
os
.
path
.
isabs
(
PHANTOMJS_EXEC
):
os
.
environ
[
'PHANTOMJS_EXECUTABLE'
]
=
os
.
path
.
join
(
CASPERJS_ROOT
,
PHANTOMJS_EXEC
)
if
not
os
.
path
.
isabs
(
ENGINE_EXEC
):
os
.
environ
[
'ENGINE_EXECUTABLE'
]
=
os
.
path
.
join
(
CASPERJS_ROOT
,
ENGINE_EXEC
)
class
TimeoutException
(
Exception
):
pass
...
...
Please
register
or
sign in
to post a comment