Quantcast Guide: Automagically package and publish addons - Page 3 - WoWInterface
Thread Tools Display Modes
08-11-18, 01:34 PM   #41
p3lim
A Pyroguard Emberseer
 
p3lim's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2007
Posts: 1,669
Originally Posted by StormFX View Post
Right, but without third-party scripts, it doesn't actually validate anything.
That is correct. If you want an example with tests/evaluations, see how Rainrider did it in his addon "oUF_Dispellable":
https://github.com/Rainrider/oUF_Dis...er/.travis.yml

(Sorry for the late response, I seem to have missed your reply.)
  Reply With Quote
08-12-18, 02:27 PM   #42
Xruptor
A Flamescale Wyrmkin
 
Xruptor's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2005
Posts: 105
Originally Posted by p3lim View Post
The only option you should need to enable now is the "Build pushed branches" in each repo's settings.
Everything else is detected from the .travis.yml file.

Edit: I've updated the guide to reflect the changes from travis-ci.org to travis-ci.com.
(Although personally I've moved over to CircleCI instead, see packager#18 if you're interested)
Thanks for the update P3lim. Is there any major differences between TravisCI and CircleCI? Why the switch? I'll take a look at it since I see the packager update for it. Just curious
__________________
Click HERE for the ultimate idiot test.

if (sizeof(sadness) > sizeof(happiness)) { initDepression(); }
  Reply With Quote
08-12-18, 02:30 PM   #43
p3lim
A Pyroguard Emberseer
 
p3lim's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2007
Posts: 1,669
Originally Posted by Xruptor View Post
Thanks for the update P3lim. Is there any major differences between TravisCI and CircleCI? Why the switch? I'll take a look at it since I see the packager update for it. Just curious
There are some differences, but for the packaging needs it's indifferent. It's slightly faster because it runs Docker images which we can pre-pack (like I did with the packager PR) instead of installing dependencies every time (like we do with Travis, although that can be cached to improve speeds).

I switched over because after TravisCI merged org to com my GitHub organization (where all my addons are hosted) got screwed up, and TravisCI support couldn't help me with it and told me to just wait for the merge to go through by itself (which could take months), so it was more of a necessity for me.
We still use TravisCI for oUF, and there's no real need to change.

Last edited by p3lim : 08-12-18 at 02:32 PM.
  Reply With Quote
08-31-18, 11:30 AM   #44
Dajn
A Defias Bandit
AddOn Author - Click to view addons
Join Date: Jul 2018
Posts: 2
Regex string

Hey, thanks for the great tutorial!
The only thing I would love to get some help with is the regex string, as I cant get it to work. x)

The format I usually use for my versions is either a tag with 8.0.1.18 for a full release or 8.0.1.18-alpha/beta for beta/alpha releases.

Any help with this would be wonderful!

With regards,
Dajn
  Reply With Quote
08-31-18, 11:38 AM   #45
p3lim
A Pyroguard Emberseer
 
p3lim's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2007
Posts: 1,669
Originally Posted by Dajn View Post
Hey, thanks for the great tutorial!
The only thing I would love to get some help with is the regex string, as I cant get it to work. x)

The format I usually use for my versions is either a tag with 8.0.1.18 for a full release or 8.0.1.18-alpha/beta for beta/alpha releases.

Any help with this would be wonderful!

With regards,
Dajn
Code:
/^\d+\.\d+\.\d+\.\d+(-\w+)?$/
https://regexr.com/3upce look at the explaination at the bottom.

Last edited by p3lim : 08-31-18 at 11:42 AM.
  Reply With Quote
08-31-18, 12:39 PM   #46
Dajn
A Defias Bandit
AddOn Author - Click to view addons
Join Date: Jul 2018
Posts: 2
Originally Posted by p3lim View Post
Code:
/^\d+\.\d+\.\d+\.\d+(-\w+)?$/
https://regexr.com/3upce look at the explaination at the bottom.
Ty!

Been trying to get the hang of regex lately as I will start use it at work a lot, so this tutorial was a step in the right direction to start to learn it.

With regards,
Dajn
  Reply With Quote
10-01-18, 03:53 PM   #47
Xruptor
A Flamescale Wyrmkin
 
Xruptor's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2005
Posts: 105
Hey p3lim I'm having an issue where the packager isn't uploading properly to wowinterface.com

My tags are in the following format. v5.4, v.5.5, v5.6 etc..

so I changed the regex to the following

Code:
/^v?\d+\.\d+(\.\d+)?(-\S*)?$/
That seems to do the trick and picks up the 'v' in front of my tags. I didn't initially incorporate a .pkgmeta file as I don't need to do any changes to my addon and just want it upload exactly the way it is. Travis CI did pickup the tag and did the whole sing and dance it does. It completed with a green all clear. However when I went to wowinterface the file wasn't uploaded and the version didn't change either.

So I then added a .pkgmeta file but left it empty. That didn't seem to work. So I'm thinking that something needs to go into this file. I don't need externals or anything. Just simply upload the addon as is to wowinterface.

BTW: Yes I did make the modifications to the .toc file and added the addon IDs for both curse and wowinterface.com

Code:
## X-Curse-Project-ID: 28603
## X-WoWI-ID: 18787
Hope you can help. I may be missing something. Thanks for your help advance p3lim! You rock
__________________
Click HERE for the ultimate idiot test.

if (sizeof(sadness) > sizeof(happiness)) { initDepression(); }

Last edited by Xruptor : 10-01-18 at 03:57 PM.
  Reply With Quote
10-01-18, 04:09 PM   #48
Xruptor
A Flamescale Wyrmkin
 
Xruptor's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2005
Posts: 105
Lol!!!!

Originally Posted by p3lim View Post
YAML Code:
  1. sudo: false
  2. language: c
  3.  
  4. addons:
  5.   apt:
  6.     packages:
  7.     - pandoc
  8.  
  9. script: curl -s [url]https://raw.githubusercontent.com/BigWigsMods/packager/master/release.sh[/url] | bash
  10.  
  11. branches:
  12.   only:
  13.   - /^\d+\.\d+(\.\d+)?(-\S*)?$/
LOLOLOL I figured it out @p3lim!! Your instructions has the curl with URL tags. It should be like this.

Code:
script: curl -s https://raw.githubusercontent.com/BigWigsMods/packager/master/release.sh | bash
It worked perfectly when I did this. It's all working fine now Turns out no you don't need the .pkgmeta file if you want to just upload it the way it is without modifications.
__________________
Click HERE for the ultimate idiot test.

if (sizeof(sadness) > sizeof(happiness)) { initDepression(); }

Last edited by Xruptor : 10-01-18 at 04:45 PM.
  Reply With Quote
10-01-18, 10:16 PM   #49
p3lim
A Pyroguard Emberseer
 
p3lim's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2007
Posts: 1,669
Originally Posted by Xruptor View Post
LOLOLOL I figured it out @p3lim!! Your instructions has the curl with URL tags. It should be like this.

It worked perfectly when I did this. It's all working fine now Turns out no you don't need the .pkgmeta file if you want to just upload it the way it is without modifications.
Thank you for spotting that, fixed it up.
Happy it all works for you .
  Reply With Quote

WoWInterface » Developer Discussions » Tutorials & Other Helpful Info. » Guide: Automagically package and publish addons

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off