Semantic versioning
Hi,
I'd like to know if I can version my assemblies differently based on whether I'm building a tagged commit or not.
* Tag: patch assembly_informational_version as version "1.0.0" to indicate a release
* Not a tag: patch assembly_informational_version as "2.0.0-CI{build}" to indicate pre-release
Where version "1.0.0" and "2.0.0" are just example numbers.
I'm very confused about what my options are for setting the version number dynamically.
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 steven.liekens on 07 Jun, 2015 02:57 PM
Also, PLEASE tell me there is a better way to test my appveyor.yml changes.
My current workflow:
1. make a change to appveyor.yml
2. push the change
3. sit and wait for 10 minutes while my build is waiting in a queue
4. crash with a syntax error on line 66
5. bang my head against the wall
6. return to step 1
Support Staff 2 Posted by Feodor Fitsner on 07 Jun, 2015 03:32 PM
Hi Steven,
You can use script to update build version to whatever you like: http://www.appveyor.com/docs/build-worker-api#update-build-details
Regarding build queue - we are going to migrate OSS builds from Azure in the coming weeks, so builds will be starting instantly. I can enable Pro trial for your account for now.
3 Posted by steven.liekens on 07 Jun, 2015 03:35 PM
That would be brilliant :)
Support Staff 4 Posted by Feodor Fitsner on 07 Jun, 2015 03:48 PM
Enabled. Should be better now.
5 Posted by steven.liekens on 07 Jun, 2015 04:13 PM
Wow... this is a LOT faster! :D
I discovered that I can set environment variables in the
init
scriptNow my configuration looks like this
I'm not sure if this is a good way to do things, but at least I have something that works now.
Support Staff 6 Posted by Feodor Fitsner on 07 Jun, 2015 04:21 PM
Yeah, I think it's pretty good solution.
7 Posted by steven.liekens on 07 Jun, 2015 07:39 PM
Thanks again for the help!
For future reference, I ended up putting this in my environment section:
Then I still had to use a bit of powershell in the
init
section to get the versioning stuff right.Here's an example of the results
https://ci.appveyor.com/project/StevenLiekens/textfx/build/34
Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 01:56 AM.