Ability to run tank validate for continuous integration purposes

Hi,

I currently manage a few toolkit configurations that are all based off of one core configuration that the others rebase off of to get updates.

I am looking to build a bit of a CI/CD system to basically run the equivalent of tank validate on them locally mostly to check that I am not missing any template keys or values.

I was just starting to dig into the tank command but I have not been able to find any examples of providing a toolkit config to the tank command explicitly.

Has anyone done anything like this before that might be able to point me in the direction?

Thanks
-Alex

3 Likes

Hi Alex –

Take a look at the code snippet here: Tank Command for Dev config – you could use the Bootstrap API to initialize a Toolkit engine with your config.

From there, you can follow the code snippet here to get the validate command and execute it.

Hope that helps! Let me know if you have any other questions.

3 Likes

Ah thanks Tannaz

I have a version right now that is hacky but working, I will swing back to this in a few days hopefully to make it in line with what you recommend!

Thanks

2 Likes