Build for

Juanita Stiedemann's Avatar

Juanita Stiedemann

08 Mar, 2018 02:58 AM

Now that support for linux has been announced I was wonder if the following scenario is possible.

I'm currently using cake to build a netstandard library and would like to build and test my project on both windows and linux.

So the workflow I'm hoping for is:

On windows run build.ps1 (which runs build and test)
On linx run build.sh (which runs build and test)

If both are successful then trigger deploy.ps1 (which handles deploying packages and various other tasks)

Is this possible?

  1. 1 Posted by Ilya Finkelshte... on 08 Mar, 2018 07:50 AM

    Ilya Finkelshteyn's Avatar

    Hi, there are a lot of ways to do that. Please read Running Windows and Linux builds side-by-side

    For example you can do the following:

    image:
    - Visual Studio 2017
    - Ubuntu
    
    build_script:
    - sh: sudo bash ./build.sh
    - cmd: powershell ./build.ps1
    
    deploy_script:
    - ps: ./deploy.ps
    

    Update: you can go without sudo if you update permissions for build.sh as described here

  2. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 02:27 AM.

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

09 Jul, 2026 04:35 PM
07 Jul, 2026 07:22 PM
30 Jun, 2026 08:51 PM
26 Jun, 2026 03:33 PM
25 Jun, 2026 12:31 AM

 

05 Jun, 2026 07:28 PM
29 May, 2026 02:17 PM
28 May, 2026 06:46 PM
21 May, 2026 04:32 AM
12 May, 2026 05:50 PM
12 May, 2026 04:16 PM