How get a worker with VS2013, VS2015 and VS2017 & Cygwin32/64 installed
Hi
I am testing a software against the 3 version of VisualStudio: VS2013, VS2015 and VS2017. From the documentation, I understand that only one image can be choosen. Thus how can one gets the 3 VS cersion on one worker?
(BTW, I need also Cygwin & Cygwin64 available on the worker image)
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
1 Posted by Ilya Finkelshte... on 17 Mar, 2017 06:18 PM
Don't you like idea of a build matrix? Image is actually first-class matrix dimension
There are a lot of benefits in having separate jobs per scenario instead of single build.
2 Posted by zosrothko on 18 Mar, 2017 11:26 AM
OK image as one matrix dimension is fine as soon as there is a environement variable that states which is the current image. And for now, it does not seems to be:
3 Posted by zosrothko on 19 Mar, 2017 10:05 AM
"There are a lot of benefits in having separate jobs per scenario instead of single build." That's right, but our single build script is made to work with any of this VS environment because it is up to the final user to build the software with the VS solution he wants. Thus, we do not provide 3 build scripts but only one that supports VS2005, VS2008, VS2012, VS2015 & VS2017. As one wants to keep this script a single file because it centralizes any change in on the build, one should have access to a environnement variable to select the proper parameter of the single script.
Support Staff 4 Posted by Feodor Fitsner on 19 Mar, 2017 08:36 PM
We've added
APPVEYOR_BUILD_WORKER_IMAGE
variable: https://github.com/appveyor/ci/issues/14175 Posted by zosrothko on 20 Mar, 2017 06:56 AM
I would have expected a variable named 'Image' similar to others dimensions like 'Platform' or 'Configuration'
6 Posted by Ilya Finkelshte... on 20 Mar, 2017 07:51 AM
image
is dimension for the matrix, and it is used by AppVeyor servers to provision VM for build.APPVEYOR_BUILD_WORKER_IMAGE
is for build code to be be able to answer the question "on what image am I currently running?"7 Posted by zosrothko on 20 Mar, 2017 08:12 AM
Yes, understood but there are others dimensions of the matrix that become also environement variables like Platform and Configuration. Thus I am expecting to see a variable named 'image' that correspondonds to the appveryor.yml, better than APPVEYOR_BUILD_WORKER_IMAGE.
I do not see what's problem it means to use 'image' as variable's name. It is consistent with others names while APPVEYOR_BUILD_WORKER_IMAGE is not.
Our script is using for example:
zosrothko closed this discussion on 17 May, 2018 09:07 AM.