Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Install program on Azure Pipelines

so I've got some CI set up with Azure Pipelines, everything is nice, except I'd like to add some checks for memory errors, as I have on Travis currently. In Travis, I can write:

addons:
  apt:
    packages:
- valgrind

and it will install valgrind for me. I've been unable to find the equivalent feature on Azure Pipelines, but there has to be a way to do this.

I've searched through their docs in vain already, any help would be appreciated.

like image 385
CoffeeTableEspresso Avatar asked Jun 20 '26 21:06

CoffeeTableEspresso


1 Answers

In a script task, you can just run the required commands yourself. Looks like you're using a Hosted Ubuntu agent.

- script: |
  sudo apt-get install -qq -y valgrind
  valgrind

(written without syntax validation, you may need to tweak this a little).

Similar to how I installed all required dependencies for Cypress on the Hosted Agent.

like image 51
jessehouwing Avatar answered Jun 23 '26 12:06

jessehouwing



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!