Travis CI enabled on Devel branch

34 views
Skip to first unread message

Matt Wilkie

unread,
Oct 4, 2018, 7:39:49 AM10/4/18
to leo-editor
Hi Devs,

I've enabled Travis Continual Integration on the devel branch with PR#972 (plus the few commits immediately following). Github will now show a status indicator after every commit in the branch. A green check mark means pass, red x the build failed, no indicator means travis didn't do anything (e.g couldn't parse the config file); example attached.

Today, a green check mark today means these were successful:
  • git clone Leo and checkout the latest commit
  • use pip to build a Leo wheel package
  • pip install the Leo wheel into the travis VM
  • run Leo in console mode and return a version number (`leo-console --version`)
Someday real soon, it will also:
  • upload a release to PyPi.org if commit is a tag and branch is master
Someday maybe, it will also:
  • Run all Leo's unit tests.
...but that's for someone more skilled than myself to figure out how to add!

A doc stub for using/administering it has been added LeoDist->Notes.

Full details on what travis is actually doing can be seen at https://travis-ci.org/leo-editor/leo-editor (In real time no less, it's very cool!)


Matt
Screenshot from 2018-10-04 04-06-11.png

Edward K. Ream

unread,
Oct 9, 2018, 5:04:12 AM10/9/18
to leo-editor
On Thu, Oct 4, 2018 at 6:39 AM Matt Wilkie <map...@gmail.com> wrote:

> Someday maybe, it will also run all Leo's unit tests.

It should be straightforward using the Leo bridge. See #989. It's scheduled for 5.8.1. I should be able to get to it in a few days.

Edward

Edward K. Ream

unread,
Oct 9, 2018, 11:56:27 AM10/9/18
to leo-editor


On Tuesday, October 9, 2018 at 4:04:12 AM UTC-5, Edward K. Ream wrote:
On Thu, Oct 4, 2018 at 6:39 AM Matt Wilkie <map...@gmail.com> wrote:

> Someday maybe, it will also run all Leo's unit tests.

It should be straightforward using the Leo bridge. See #989.

Rev 3a233a52a completes most of the work.  There are some nits concerning Leo's bridge, so some of the unit tests are disable if g.in_bridge is True, but that's a nit.

To run the tests, do 'python run_travis_unit_tests.py' from the leo-editor folder.  This script runs all the unit tests and does sys.exit(0) if all went well and sys.exit(1) otherwise.  I'm guessing that this will be enough for TravisCI.  Let me know if not.  The script is straightforward, as you will see.

Edward
Reply all
Reply to author
Forward
0 new messages