2 solutions in single project.

galaxyblazer's Avatar

galaxyblazer

25 Feb, 2021 01:36 PM

I have 2 solutions in one git repo. The solution 1 require the references (dll) from Solution 2. Also both solution 1 and solution 2 have a Nunit tests to run.

 Is it possible to configure the build matrix that allow build solution 2 for any push and run it tests, And in specific time build Solution 2 -> run tests of Solution 2 -> then, when tests of Solution 2 was successful, build Solution 1 and run tests of solution 1 ??

  1. Support Staff 1 Posted by Feodor Fitsner on 25 Feb, 2021 08:47 PM

    Feodor Fitsner's Avatar

    I don't think you need a matrix for that. It could be something simple as:

    build_script:
    - msbuild solution2.sln
    - run tests for solution 2
    - if <not-specific-time> appveyor exit
    - msbuild solution1.sln
    - ...
    

    I'm using this to forcibly exit build.

  2. 2 Posted by galaxyblazer on 26 Feb, 2021 12:46 PM

    galaxyblazer's Avatar

    For first I tried build two solutions inside build_script: and got error MSBUILD : error MSB1008: Only one project can be specified.

    build_script:
       msbuild solution1.sln
       msbuild solution2.sln

    I tried set two build_script entries but then I got error during validation of script.
    Could you please let me know what I'm doing wrong ?

  3. 3 Posted by galaxyblazer on 26 Feb, 2021 01:31 PM

    galaxyblazer's Avatar

    Sorry , I found the reason, I wrote msbuild instead of - msbuild

  4. galaxyblazer closed this discussion on 04 Mar, 2021 02:28 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

18 Oct, 2021 12:38 PM
16 Oct, 2021 04:34 PM
15 Oct, 2021 08:29 PM
15 Oct, 2021 06:34 PM
13 Oct, 2021 03:47 PM

 

13 Oct, 2021 06:27 AM
13 Oct, 2021 05:54 AM
12 Oct, 2021 06:48 PM
12 Oct, 2021 06:47 PM
12 Oct, 2021 12:36 PM
11 Oct, 2021 10:05 AM