I have written a script which builds out the various IIS sites that a team of developers will use, ideally when a new Dev comes online, to build their IIS they would checkout our get repo then run the script. In the longer term this script would also do various other tasks in an Environment setup. What I now need to do is ensure the script is continuously integrated, as such how do I set up a testing environment to ensure the script still work after each git commit. I.e the steps would be something as follows - New commit is made - spin up fresh VM - Execute script on VM - Assert the script executed properly
How to Continuously Integrate a Powershell script
336 Views Asked by JustSomeDev At
3
There are 3 best solutions below
0
Yasirmx
On
I would advise using jenkins https://jenkins.io/ as continuous integration. You can trigger a build after a commit is detected.
1
OCram85
On
I recommend using a CI environment containing:
- source control and review system
- do code reviews in the repo with systems like phabricator, github or gitlab
- track your changes with a build server like jenkins
- use the build server to trigger your psake and pester tests.
- and finally publish your build to the final destinations.
Related Questions in POWERSHELL
- PowerShell Linphone Configuration
- How avoid \t being converted to Tab in Powershell
- How do I get my terminal to work in VS Code? Exit Code:2, doesn't allow me to type anything
- Npm command not working in powershell but works in cmd
- Issue with path not being treated as encapsulated when calling cmd /C
- Native command throws error only when I redirect to a variable
- Logic Apps and long running Azure Function (Powershell)
- April fools - PsExec (PsTools)
- How to use nested ForEach-Object
- Batch Script-Powershell MessageBox | How do I set TopMost within PS command line of Batch?
- Execution Stuck at Get-PnPPage if function executed on Button Click
- How can I expand a column from group output?
- How to use expression in regex -replace with capturing group in powershell
- powershell where-object -cnotmatch filter unwanted lines
- How to make Visual Studio 2022 project launch Windows Terminal instead of PowerShell?
Related Questions in TESTING
- Using ES Modules with TS, and Jest testing(cannot use import statement outside module)
- Mocking AmazonS3 listObjects function in scala
- How to refer to the filepath of test data in test sourcecode?
- No tests found for given includes: [com.bright.TwitterAnalog.AuthenticationControllerSpec.Register user with valid request](--tests filter)
- Error WebMock::NetConnectNotAllowedError in testing with stub using minitest in rails (using Faraday)
- How to use Mockito for WebClient get call?
- Jest + JavaScript ES Modules
- How to configure api http request with load testing
- How can I make asserts on outbound HTTP requests?
- higher coefficient of determination values in the testing phase compared to the training phase
- Writing test methods with shared expensive set-up
- Slow performance when testing non-local IP services with Playwright
- uiState not updating in Tests
- Incorrect implementation of calloc() introduces division by zero and how to detect it via testing?
- How to test Creating and Cancelling Subscription in ThriveCart in Test Mode
Related Questions in SCRIPTING
- How do I react to external program launch inside an Automator workflow?
- can anyone help me for NSIS Script I have a case where I need to check cases can be 3.3 3.42 23.5 23.56w 3.467 999.999 999.99a but not 1.b or 8..a
- How do I restart a batch file in PowerShell?
- Trouble updating a Field in Salesforce via a Python Script
- What are JCL Alternitives for Embeded Applications?
- grep expression behaving weird (unix/mac) while reading a conf file
- Why is my bash script showing [2: command not found?
- How can I modify my code to negate this error?
- Find Specified Software - Powershell
- how to change Value to something specific and not add to it?
- How can I run this Powershell function from a batch file on windows?
- How to make toggle key to switch between two seperate functions lua script(logitech)
- My quiz automatically submits when i plug in a chrome extension that involves doing an api call
- How to "make" a variable that contains another variable value?
- function not recognizable inside scriptblock in PowerShell script
Related Questions in CONTINUOUS-INTEGRATION
- Cannot connect to Postgres Database when running Quarkus Tests with Gitlab ci
- Android SafeArgs gives error with GitHub actions
- Display coverage report on browser
- How to set variables across several Earthfiles with earthly for continuous integration
- Getting " Unauthorized Access" error in Git Actions(CI) when trying to run Fastlane(CD)
- Cost saving recommendations and best practices for Azure
- NodeJS application deployment on Digital Ocean using Github Actions
- Getting CI/CD error on biulding step in React Azure Pipeline
- gitlab ci: 'compose' is not a docker command
- I'm in Playwright, how do I run specific test cases by tag in (CI) execution
- Incorrect java version on Jenkins agent
- Azure YAML Pipeline schedule to run on the last Sunday of the month at 4 AM
- how to provide custom variables in gitlab api?
- How to build an artifact from a given branch in azure pipelines?
- CI testing with platformio with one build
Related Questions in PSAKE
- Include other PSake files from dynamic location
- Prevent warning from application execution from outputting an error to VSO
- A way to specify msbuild from which version of .net framework on Mac?
- Simple Psake build fails with "shared task" exception
- Stop nolio deployment on command line script fail
- webpack command in psake script is failing the task
- Cannot import module from Powershell script using Jenkins
- Calling specific version of MSBuild within psake script
- Verbose preference does not work
- Template parameters for powershell script in Visual Studio project template?
- Forbid TeamCity reporting build step order
- How to run postaction if failure occurs in psake?
- How to Continuously Integrate a Powershell script
- Copy-Item is not working
- How to ignore Robocopy access denied errors in psake?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
You could start with the following: