DynamoDS / RevitTestFramework

Unit Testing on Revit
119 stars 81 forks source link

Install Revit in Azure DevOps Pipeline #105

Open Dre-Tas opened 3 years ago

Dre-Tas commented 3 years ago

Hi everyone!

I'm getting started with CI with Azure DevOps (previously VSTS) and I'm using RTF for the testing of Revit-specific methods (which btw is really cool and I thank you a lot for it!) I'm following the instructions here

I now got my Pipeline up and running, connected to BitBucket and every time I push code to my repo the build starts and I run non-Revit tests automatically. All good until here.

But then I tried to implement the Revit testing bit and it gets confusing: I guess the gist is somewhat clear, but I'm not too sure on how to run the Console app of RTF as it needs a version of Revit installed and I have no idea on how to install it on Azure! I checked the CI instructions in the link above and it is very generic, mentioning the installation of Revit, but not much more.

Has anyone done this before? Or any advice on how to do this?

Cheers!

AmeerMansourBeca commented 2 years ago

hi did you manage to figure out a solution for this ?

dosymep commented 2 years ago

Hi, you can create own VM and setup Revit, and setup self hosted BuildAgent on it.

AmeerMansourBeca commented 2 years ago

Hi, you can create own VM and setup Revit, and setup self hosted BuildAgent on it.

yes but how to make Revit run and gets the report back to Azure report or bitbucket ?

Dre-Tas commented 2 years ago

@AmeerMansourBeca I'm about to start writing a paper + presentation for Autodesk University which is going to be at the end of September. I'll post it here when I have it ;) (If I forget by the end of the year, please remind me)

AmeerMansourBeca commented 2 years ago

i think i am the one who will forget about it by that time hhhhh 😄 can you give me a clue? i have VM and I was going to use azure self-agents i was thinking of creating a batch file on the host that opens revit and sets RevitTestFramework to auto and then uploading the log file somewhere but I feel it is too much and I think there is an easier alternative.

dosymep commented 2 years ago

@AmeerMansourBeca, I think console application writes log in console, but build agent read console stream output

AmeerMansourBeca commented 2 years ago

@dosymep so you mean if i wrote the log in the console in VM, it will be shown in the Azure pipeline as output?

dosymep commented 2 years ago

@AmeerMansourBeca, I think so

AmeerMansourBeca commented 2 years ago

@dosymep i will try that and i will let you know 😄 thanks

dosymep commented 2 years ago

@AmeerMansourBeca, maybe you should use this method