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
4c4fb34b
...
4c4fb34b149e8e72906c9bb44dc023699b2301ab
authored
2013-07-13 16:12:22 +0200
by
Nicolas Perriault
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
added checks for PhantomJS version; updated travis build config
1 parent
de19c838
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
9 deletions
.travis.yml
bin/bootstrap.js
.travis.yml
View file @
4c4fb34
...
...
@@ -10,17 +10,10 @@ before_install:
-
sudo mv phantomjs-1.8.2-linux-x86_64/bin/phantomjs bin/phantomjs182
-
ls -la bin/phantomjs182
-
bin/phantomjs182 --version
-
echo "installing PhantomJS 1.9.0"
-
wget http://phantomjs.googlecode.com/files/phantomjs-1.9.0-linux-x86_64.tar.bz2
-
tar -xvf phantomjs-1.9.0-linux-x86_64.tar.bz2
-
sudo mv phantomjs-1.9.0-linux-x86_64/bin/phantomjs bin/phantomjs190
-
bin/phantomjs190 --version
-
ls -la bin/phantomjs190
before_script
:
-
"
npm
install
-g
jshint@2.0.1"
-
bin/phantomjs182 --version
-
bin/phantomjs190 --version
script
:
-
make test
...
...
@@ -28,7 +21,6 @@ script:
env
:
matrix
:
-
PHANTOMJS_EXECUTABLE="bin/phantomjs182 --local-to-remote-url-access=yes --ignore-ssl-errors=yes"
-
PHANTOMJS_EXECUTABLE="bin/phantomjs190 --local-to-remote-url-access=yes --ignore-ssl-errors=yes"
notifications
:
irc
:
...
...
bin/bootstrap.js
View file @
4c4fb34
...
...
@@ -37,9 +37,12 @@ if ('process' in this && process.title === "node") {
process
.
exit
(
1
);
}
// phantom check
// phantom check
s
if
(
!
(
'phantom'
in
this
))
{
console
.
error
(
'CasperJS needs to be executed in a PhantomJS environment http://phantomjs.org/'
);
}
else
if
(
phantom
.
version
.
major
>=
1
&&
phantom
.
version
.
minor
>=
9
)
{
console
.
error
(
'CasperJS 1.0.x does not support PhantomJS version >= 1.9'
);
phantom
.
exit
();
}
// Common polyfills
...
...
Please
register
or
sign in
to post a comment