Revit API and CI/CD

Revit API and CI/CD

lee6800
Contributor Contributor
500 Views
4 Replies
Message 1 of 5

Revit API and CI/CD

lee6800
Contributor
Contributor

Hello,

 

I have searched the forum and used google to try and find some instructions / tutorials on how to implement CI/CD on GitHub or GitLab.

I have been looking at the wonderful templates created by Nice3Point and like to understand how they work. Even a flow chart of what happens once you commit a change which triggers an action on github to create a new release(increasing "Version" Value in 'Build.Build.Configuration.cs' in Nice3Point template)

 

Also what is the best pipeline to use for this purpose.

 

Thanks for your help in advance 

0 Likes
501 Views
4 Replies
Replies (4)
Message 2 of 5

BKSpurgeon
Collaborator
Collaborator

CI / CD is relatively simple - checkout github actions:

 

https://docs.github.com/en/actions

 

 

0 Likes
Message 3 of 5

lee6800
Contributor
Contributor

Than you very much for your reply

while reading various post here, been keep seeing "Azure" mentioned. where does this comes into the equation? Am I correct to assume it is used run to test the code?

Thanks again for your help

0 Likes
Message 4 of 5

BKSpurgeon
Collaborator
Collaborator

Azure would have their own CI / CD product. I have not used Azure for that service. But I imagine they all kinda do similar things. CircleCi is another service provider that is popular in this space.

 

But I have used Github for web apps and other library code bases. For example, with Github:

 

  1. you add tests to your code base.
  2. you can set up a workflow like this: every time someone makes a pull request to the master branch - make sure all the tests pass. and if they don't: highlight it, and (possibly):
  3. prevent them from being merged.

You could have a similar set up, such that all tests must pass before deploying.

 

You could even have a "staging" environment. 

 

I would say that an easy way to experiment with with github.

 

But if you want to run tests in a revit environment via a CI pipeline - then I cannot answer that question. 

 

 

 

 

 

 

 

 

 

Message 5 of 5

lee6800
Contributor
Contributor

Thank you very much for your help

0 Likes