Skip to content

Commit

Permalink
modified: appveyor.yml Added testing script. Previous was just building.
Browse files Browse the repository at this point in the history
modified:   test/phantom.js       Increased time to close for phantomjs to 20 s. 10 s not sufficient on travis.
  • Loading branch information
hustf committed Nov 2, 2017
1 parent 206a0c7 commit effa62c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
6 changes: 5 additions & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,8 @@ build_script:
julia -e 'redirect_stderr(STDOUT);Pkg.init()'
julia --depwarn=no -e 'redirect_stderr(STDOUT);Pkg.add(\"HttpServer\");using HttpServer;'
julia -e 'redirect_stderr(STDOUT);Pkg.clone(pwd(), \"WebSockets\");Pkg.build(\"WebSockets\")'
Write-Host "This is PowerShell, build script finished."
Write-Host "This is PowerShell, build script finished."
test_script:
- ps: |
Write-Host "This is PS"
julia -e 'redirect_stderr(STDOUT);info(\"Local websockets directory:\", Pkg.dir(\"WebSockets\"));Pkg.test(\"WebSockets\")'
10 changes: 4 additions & 6 deletions test/phantom.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Note that the console log output does not appear in Julia REPL when
// this is called using spawn. For debugging, use "run". These functions
// are run in the layer outside the web page.
// this is called using spawn. For debugging, use "run". These functions
// are run in a shell outside the web page.
var page = require('webpage').create(),
system = require('system'),
t, address;
Expand All @@ -25,12 +25,10 @@ page.open(address, function(status) {
console.log('PhantomJS loading time ' + t + ' msec');
window.setTimeout( (function() {
page.render("phantomjs.png");
console.log("PhantomJS saved render, exits after 10s")
console.log("PhantomJS saved render, exits after 20s")
phantom.exit()
}),
10000)
20000)
}
clearTimeout(timer)
timer = setTimeout(closedown, 10000)
}
);

0 comments on commit effa62c

Please sign in to comment.