1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

Travis-CI Script

Discussion in 'General discussion' started by Magicode, Jan 10, 2017.

  1. Magicode

    Magicode Baby Zombie

    Messages:
    183
    GitHub:
    magicode1
    How would one go about testing their plugins with Travis-CI ? I saw what @robske_110 (Tim) did with BanWarn, but when I tried using that technique on my Plugin Repo, it didn't work. Is there some sort of script you can use in .travis.yml ?
     
  2. HimbeersaftLP

    HimbeersaftLP Fish

    Messages:
    2,402
    GitHub:
    HimbeersaftLP
    Just wondering: Why not use Poggit?
     
    applqpak and Amir Emad like this.
  3. Amir Emad

    Amir Emad Creeper

    Messages:
    5
    GitHub:
    amiroemad
    Travis is not related at all to pocketmine and to use it you need to script your own travis script to get pocketmine bin and run it and start your plugin with dev tools and then show the error or your plugin works then stop the server

    But poggit is designed for pocketmine plugins it builds your plugin and gives you the errors without the need to script your own poggit script you just need your pocketmine plugin and github link is here

    http://poggit.pmmp.io
     
    applqpak likes this.
  4. Thunder33345

    Thunder33345 Moderator Staff Member

    Messages:
    2,137
    GitHub:
    Thunder33345
    But that dosent solve the question of how to do it, even if you use poggit/whatever alternatives existed you still wont magically know how to use travis since this thread is focused on how not replacements, maybe we should go toward more of that one
     
    applqpak, Dog2puppy and SOFe like this.
  5. robske_110 (Tim)

    robske_110 (Tim) Wither Skeleton Poggit Reviewer

    Messages:
    1,342
    GitHub:
    robske110
    yea, my script should be pretty straightforward? Could you link me your repo, then I can create you a script that'll do the job
     
  6. Magicode

    Magicode Baby Zombie

    Messages:
    183
    GitHub:
    magicode1
    https://github.com/RevivalPMMP/PureEntitiesX

    I did try using your script. Strangely, it doesn't seem to work. Maybe you can figure it out. I have been slamming my head against the table. I get as far as executing /makeplugin, but then it gives me 'invalid plugin' name error

    Poggit doesn't show you how your plugin behaves in a server environment, only that it built the phar. It does check your plugin for errors, but not from a server standpoint. It just checks the code. I would much rather use @robske_110 (Tim) 's method and see how it works in the server, and use Poggit for Public access and builds.
     
  7. SOFe

    SOFe Administrator Staff Member PMMP Team Poggit Admin

    Messages:
    1,968
    GitHub:
    sof3
    Note that you can write a script to wait for Poggit builds and download the phar instead of running the plugin from source. This may be useful for people whose plugins are not built in standard structure, e.g. if there is dependency management, or if it is not in the default plugin.yml model.
     
    applqpak, Dog2puppy and Magicode like this.
  8. Magicode

    Magicode Baby Zombie

    Messages:
    183
    GitHub:
    magicode1
    Thanks, I will look into it!
     
  9. robske_110 (Tim)

    robske_110 (Tim) Wither Skeleton Poggit Reviewer

    Messages:
    1,342
    GitHub:
    robske110
    Oh, sorry for the late reply, but your script does not put the plugin in the /plugins/ folder
     
  10. Dog2puppy

    Dog2puppy Slime

    Messages:
    94
    GitHub:
    colesquared
    I've been looking for a Travis CI Script so I figured I would use yours, but I'm getting a error. https://github.com/MyMoney-PMMP/MyMoney
     
  11. Magicode

    Magicode Baby Zombie

    Messages:
    183
    GitHub:
    magicode1
    In your command:
    Code:
    cp -rf English/ PocketMine-MP/plugins/
    You should remove the space after English/
     
  12. robske_110 (Tim)

    robske_110 (Tim) Wither Skeleton Poggit Reviewer

    Messages:
    1,342
    GitHub:
    robske110
    NO!

    You should simply remove 'English'. (Not the backslash) English is just because my plugin has two versions.
     
  13. Dog2puppy

    Dog2puppy Slime

    Messages:
    94
    GitHub:
    colesquared
    Okay.
     
  14. Dog2puppy

    Dog2puppy Slime

    Messages:
    94
    GitHub:
    colesquared
    Didn't work.
     
  15. robske_110 (Tim)

    robske_110 (Tim) Wither Skeleton Poggit Reviewer

    Messages:
    1,342
    GitHub:
    robske110
    Code:
    Resolving jenkins.pmmp.io (jenkins.pmmp.io)... 104.27.180.131, 104.27.181.131, 2400:cb00:2048:1::681b:b583, ...
    Connecting to jenkins.pmmp.io (jenkins.pmmp.io)|104.27.180.131|:443... connected.
    HTTP request sent, awaiting response... 522 Origin Connection Time-out
    2017-01-19 21:43:24 ERROR 522: Origin Connection Time-out.
    
    Blame @humerusj
     
  16. HimbeersaftLP

    HimbeersaftLP Fish

    Messages:
    2,402
    GitHub:
    HimbeersaftLP
    Thunder33345 likes this.
  17. robske_110 (Tim)

    robske_110 (Tim) Wither Skeleton Poggit Reviewer

    Messages:
    1,342
    GitHub:
    robske110
    HimbeersaftLP likes this.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.