Conditionally enable services
Hi,
I have a build matrix with four build jobs based on certain
environment variables:
https://ci.appveyor.com/project/lexicalunit/nanodbc
Currently, I am using database services and this has worked well for me:
services:
- mssql2014 # start SQL Server 2014 Express
- mysql # start MySQL 5.x service
- postgresql # start PostgreSQL 9.x service
This starts all services for each of the jobs - so there is
always a bunch fo redundant services started.
I would like to add more, e.g. SQL Server versions, and I'd like to
save on boot time.
So, I'm looking for a way to conditionally enable services.
I have found this, but it discusses different scenario - I don't
want to maintain per branch configuration:
http://help.appveyor.com/discussions/suggestions/232-conditional-bu...
On Travis CI, I can enable services via addons per a matrix
job:
https://github.com/lexicalunit/nanodbc/blob/master/.travis.yml
Is it possible to achieve the same thing in appveyor.yml?
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 mloskot on 20 May, 2016 02:14 PM
I think I found a workaround:
Would it be considered a recommended way or is there a better way?
Support Staff 2 Posted by Feodor Fitsner on 20 May, 2016 02:16 PM
Exactly, I was about to suggest the same, as those "services" are just Windows services.
-Feodor
3 Posted by mloskot on 20 May, 2016 02:20 PM
Awesome, thanks!
mloskot closed this discussion on 20 May, 2016 02:20 PM.
mloskot re-opened this discussion on 20 May, 2016 03:53 PM
4 Posted by mloskot on 20 May, 2016 03:54 PM
Fedor,
Could you help me to figure out what is service name for MySQL and PostgreSQL?
These both are failing for me:
with
net : The service name is invalid.Thanks,
Mat
Support Staff 5 Posted by Feodor Fitsner on 20 May, 2016 04:15 PM
Should be:
6 Posted by mloskot on 20 May, 2016 06:14 PM
It helped. Thanks again.
Mat
mloskot closed this discussion on 20 May, 2016 06:14 PM.