Sublime Forum

Using Travis CI for Sublime Plugins

#1

I’ve been thinking about using Travis CI for the Python plugins on github to check them for validity but I’m kinda struggling right now because … well.

When I didn’t have a “.travis.yml” file it just failed because it didn’t know it had to use Python (2.6). After adding the file and telling it to use the desired language and version I found the problem: I don’t really have a build process to begin with. So, instead of “building” the *.py files I decided to just run pep8 on the source which, I’d say, works but does not check for code validity whatsoever.

So, coming to the question: Does anyone have experiences with Travis CI and knows how I could create a suitable setup for a sublime plugin? (considering that “sublime” and “sublime_plugin” are predefined modules and it does not have an actual “build” process)

0 Likes

#2

I have came up this plugin https://github.com/randy3k/UnitTesting, which is able to run tests against ST on travis-ci.
A getting start example can be found here https://github.com/randy3k/UnitTesting-example.

0 Likes

#3

That looks interesting, thanks.

0 Likes