-
Notifications
You must be signed in to change notification settings - Fork 114
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
Run nbconvert in travis and check for errors #53
Comments
This is a first attempt at Travis executing Jupyter notebooks, when the jupyter tool is present in the environment. If any notebooks have cell execution errors, the build should fail. This will be useful e.g. for imagej/tutorials#53.
It now tests both the Java projects and the Jupyter notebooks. This is a first cut at addressing #53.
Dang it @kmader, I spent all day hacking on this. 😜 And it still doesn't work... 😞 The good news is: everything is in place for the SciJava The bad news is twofold: 1) The |
Sorry I didn't mean to make so much work for you, but the travis-build script is quite well done. The non-zero exit code issue is unfortunately quite common but we got around it by grepping for traceback (https://github.com/kmader/Quantitative-Big-Imaging-2018/blob/master/circleci/execute.sh#L20) maybe that would work here as well (at least with the python kernels) |
Great idea. I'll do that in Any idea why |
With scijava/scijava-scripts@6cd677c, I finally updated
It seems like Travis must not use bash; this is not the first time I've seen it barf on bash-specific syntax. Unfortunately, the double bracket syntax is part of the openjdk package's activation script. Maybe we can find a way to run the rest of the travis-build script with bash specifically, instead of whatever Travis is using (probably dash?). |
This issue is blocked by the openjdk activation script not working on Travis. I made a fix that was supposed to address it (conda-forge/openjdk-feedstock#53) but after it was merged, it was pointed out that the fix is likely to be insufficient. I still have not had time to actually test it. One way forward might be to have Travis run the conda stuff in a subshell with bash? Then we wouldn't have to make any more changes to the openjdk recipe upstream. |
@ctrueden wrote:
Is this still an issue? Maybe it can be fixed by replacing this in - script: ".travis/build.sh"
+ script: bash ".travis/build.sh" |
Running
jupyter nbconvert
on all the notebooks and re-executing every line is a good way to check they are all valid and changes haven't broken them.The text was updated successfully, but these errors were encountered: