Sublime Forum

Build Systems

#1

Hi All,

New to sublime 3 and wanted to ask - can i have multiple commands in a build config, for example i do a lot of PHP dev and instead of using a big build system like TeamCity I wanted to see if i could just use sublimes built in one.

So I would like to lint, unit test and standards check etc my code on save/build and get it to fail if there were any errors.

End game I wanted something like:
Run Lint

  • error? yes then fail
    Run Standards Check
  • error? yes then fail
    Run Unit Test
  • error? yes then fail
    Passed all build commands?
  • git commit
  • git push

Is this kind of workflow supported with sublime?

0 Likes

#2

It sounds like you need a simple bash script and a git hook (post-commit) more than a build system.

Then, if you really want to run everything with ctrl+b, you can create a build system that run “git add . && git commit -am” :smile:

sublime-text-unofficial-document … stems.html

0 Likes

#3

Thanks for the reply :smile:

I think that will be the easiest solution.

0 Likes