I have a build configuration for a .NET project. It has two triggers - one VCS Trigger that runs the build after each commit, and another Schedule Trigger which runs a nightly build. For this particular project, the integration tests (NUnit, if it matters) are painfully long-running (over an hour). It is very disruptive to have all of these tests run after each commit, because it uses up a build agent for a long time while devs are actively committing to different projects. So, I'd like to have those tests run only during the nightly build. What is the best approach to setting this up?
Obviously, I could duplicate the build configuration, separating the two triggers into the different configurations, and add an NUnit step to the nightly configuration. I'd like to avoid this for a couple reasons. All of our other projects have only one configuration, so this would add some clutter. And I don't want to have to duplicate the configuration as it will add to maintenance complexity.
Any advice is welcome. Thanks.