-
-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added very very basic test #26
Conversation
Good stuff. Do you know if Electron will run on Travis? |
Hmm, I don't think it will. I just tried in a docker image (as I think that shell, only VM is pretty close to travis) and it didn't work. Oh well... Do you have any other ideas for how to get around that? |
Hi @spencerlyon2 What was the error? It didn't like to popup a window? I wonder if setting an option show: false i.e. julia> w = Window(Blink.@d(:show => false)) would work? See http://electron.atom.io/docs/v0.35.0/api/browser-window/ |
Hi @spencerlyon2 and @one-more-minute I notice in your test you have a "sleep(5.0)". If my PR #39 is merged, you will no longer need this :) |
@EricForgy I'm not sure what doesn't work here. I'll give the |
Didn't work:
This might be some strange thing running in a docker vm though, not sure. If I find some time I'll try to debug |
The error message is actually encouraging :) I've never done anything with Travis. How difficult would it be to just try it instead of debugging Docker? :) |
I've updated the PR, but I need @one-more-minute to flip travis on for this repo |
I can also give a try here I guess: https://travis-ci.org/EricForgy/Blink.jl ? PS: It's running :D https://travis-ci.org/EricForgy/Blink.jl/builds PPS: Test failed. Was worth a try :) |
@spencerlyon2 , ohhh. This is my first foray into Travis. I see the linux tests failed, but OSX passed. That is a good sign :) I am trying something new now. |
Hi @spencerlyon2 , It is interesting that the OSX tests are passing and not Linux. I just checked and the OSX tests still pass even without "show = false:, so that is not the problem. I'm installing VirtualBox so I can have Julia on Linux, but I am no expert so do not have high expectations :) |
My goal with the tests was to make sure that blink loaded and an electron window could be opened on all platforms. I think that because we don't have any other tests (yet), we shouldn't merge until we figure out how to run tests on Windows and Linux. Any other thoughts? |
That makes sense, but I think Blink may not even work on Linux at the moment. Has anyone been able to get Blink to work on Linux? I'm on Windows, so I know it works on Windows and OSX (from Travis), but the very basic test fails on Linux and @tbreloff could not open a Window in #22 and he was on Linux. It'd be great to start building some tests, even if just for OSX and Windows until someone comes along and gets things working on Linux. |
I do have people using Blink on Ubuntu without problems. Not sure about other distros. My vote would be to merge this under one of two conditions:
|
Try with |
what do you mean? Try running what with that command? |
@tkelman could this potentially help: http://rhysd.hatenablog.com/entry/2015/08/07/181418 Maybe it is what you had in mind. I can try to give it a shot later |
It worked! My tests are passing for linux! :) But realized I was using the old yml. Will try again with Spencer's updated one... |
I'm not sure if |
Yeah. My tests broke :) May give that a try, but learning Travis is not high on my priority list at the moment. I may need to wait for you guys, but thank's for the suggestion 👍 :) |
Something like matrix:
include:
- os: linux
env: TESTCMD="xvfb-run julia"
- os: osx
env: TESTCMD="julia"
script:
- if [[ -a .git/shallow ]]; then git fetch --unshallow; fi
- $TESTCMD -e 'Pkg.clone(pwd()); Pkg.build("Blink"); Pkg.test("Blink"; coverage=true)' |
Cool. Will try 💪 |
Before your suggestion, I tried: # Documentation: http://docs.travis-ci.com/user/languages/julia/
language: julia
os:
- linux
- osx
julia:
- release
- nightly
notifications:
email: false
# uncomment the following lines to override the default test script
env:
- TESTCMD: "xvfb-run julia"
- TESTCMD: "julia"
script:
- if [[ -a .git/shallow ]]; then git fetch --unshallow; fi
- $TESTCMD -e 'Pkg.clone(pwd()); Pkg.build("Plotly"); Pkg.test("Plotly"; coverage=true)' Will see how that goes and try the matrix idea Edit: Oops. Wrong package name when I uncommented. Trying again :) |
Here's my latest yml: # Documentation: http://docs.travis-ci.com/user/languages/julia/
language: julia
julia:
- release
- nightly
notifications:
email: false
# uncomment the following lines to override the default test script
matrix:
include:
- os: linux
env: TESTCMD="xvfb-run julia"
- os: osx
env: TESTCMD="julia"
script:
- if [[ -a .git/shallow ]]; then git fetch --unshallow; fi
- $TESTCMD -e 'Pkg.clone(pwd()); Pkg.build("Blink"); Pkg.test("Blink"; coverage=true)' Still not passing. |
Ahk, the travis matrix stuff is finicky - you either need to put everything in the matrix, or nothing. I'll open a PR against this branch. |
https://github.com/JuliaLang/Example.jl/blob/master/appveyor.yml |
Ok. I added the example to my fork and changed "Example" -> "Blink" and signed up at Appveyor. Finger's crossed :) |
Something wrong when building GnuTLS https://ci.appveyor.com/project/EricForgy/blink-jl/build/1.0.4/job/h7d80lip6p4f1x4q |
Blink doesn't support 0.3 any more so you can remove the two JULIAVERSION lines for 0.3. The 0.4 versions of JuliaWeb packages should all be on MbedTLS rather than GnuTLS. |
👍 Trying again. Thanks |
use xvfb-run on Linux Travis
@one-more-minute, can you flip on Travis and appveyor for this repo? I think someone with admin privileges has to do it. Then I think we are good to go here, is that right @EricForgy? |
CI enabled – Nice work everybody! |
AppVeyor failed? Would be good to add status badges. |
Agreed that we should have badges. I don't know where to find the AppVeyor results, do you have a link? |
http://www.appveyor.com/docs/status-badges |
Oh sorry, I meant I can't even find this repo on appveyor. I looked here: https://ci.appveyor.com/project/JunoLab/blink-jl but didn't find anything |
They don't really have org accounts last I checked, it'll be under whatever name @one-more-minute registered under. The badge can reference the github path though. |
Related to #25