-
-
Notifications
You must be signed in to change notification settings - Fork 398
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
Automate testing of examples #1712
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1712 +/- ##
=======================================
Coverage 68.69% 68.69%
=======================================
Files 30 30
Lines 3891 3891
=======================================
Hits 2673 2673
Misses 1218 1218 Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #1712 +/- ##
==========================================
+ Coverage 68.69% 68.72% +0.02%
==========================================
Files 30 30
Lines 3891 3904 +13
==========================================
+ Hits 2673 2683 +10
- Misses 1218 1221 +3
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is great. I like how we can see if JuMP is passing its tests (without solvers) separately from whether the examples pass.
A lot of the CI time is spent in Ipopt compilation. Hopefully we can switch to BinaryBuilder on linux soon...
examples/mindistortion.jl
Outdated
|
||
It is known that the 4-point metric space defined by the star graph: | ||
x | ||
\\ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Extra "\"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because it is in the docstring it needed to escape the \
.
Perhaps for a separate PR: can I suggest a renaming of some examples to further improve consistency (eg underscores) and understandability. I think we can be verbose with names here. Eg steelT3 - no idea what the T3 means, off the bat |
I want to say that for newcomers examples are more helpful than anything else. |
Totally agree. I'm almost verging on these examples should be included in the documentation and structured as tutorial/notebooky type things. But let's get them tidied up and passing tests first. |
Okay, all the examples have been updated to the latest JuMP master and are tested in a separate build stage on travis. While I have tidied up many of the examples for style and more JuMPish conventions (see Once this PR is in, I might move a few of the examples into the docs with doctests. Maybe one MIP, one NLP, and one conic. |
With |
@@ -4,7 +4,7 @@ | |||
# file, You can obtain one at http://mozilla.org/MPL/2.0/. | |||
############################################################################# | |||
# JuMP | |||
# An algebraic modeling langauge for Julia | |||
# An algebraic modeling language for Julia |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can't believe this typo was still here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See #1720
This PR adds a build stage to Linux/Julia 1.0 on Travis that runs the examples in
/examples
. This requires the installation of some solvers. So far, I have added GLPK (for LP/MIP), Ipopt (for NLP), and SCS (for SDP).List of examples and whether they have been updated:
Closes #699
Closes #1175
Manifest.toml
because latest GLPK tag isn't in METADATA. Once it is, we can removeManifest.tom
.