I\'m using the Gitlab-ci-multi-runner, using an OSX machine (bash shell) and a Windows 7 machine (batch commands). Whenever I push I want it to build and test on both runners. B
You can use the tag system for runner.
I suppose that you have two runner. The Windows one with windows
as tag and the OS X one with osx
as tag.
So, now you can select runner by reclaim tag before running.
The used .gitlab-ci.yml should be like this:
MyWindowsJob:
tags:
- windows
script:
- echo Say hello from windows
MyOSXJob:
tags:
- osx
script:
- uname -a
- echo Say hello from osx
If you will build on more than one version of os you should better add version number in tag. For example:
osx
and osx_v10.9
osx
and osx_v10.10
osx
and osx_v10.11