Free CI with GitHub, C# and Travis


travis-logoRecently, we recieved a lot of pull requests in out Artemis Entity System repo. Most of them solved lots of  our bugs but some also introduced new ones … every merge (or the week after one) was a big pain !!!

To solve this problem we started to search for a CI (continuous integration) system that:

  • Was Natively Integrated with GitHub (not only git)
  • Worked with .Net C#
  • FREE !!!

Travis was (almost) the perfect solution !

The problem was the fact that travis does not support C# .Net out of the box, so we had to make some “magics”.

The ste-by-step is:

  1. Go to https://travis-ci.org/, sign with your github account
  2. Link one of your repos with Travis (click in account and go to the repo config — it is very intuitive and well documented)
  3. Now the magic …  go to your project in git hub and create a file called .travis.yml in the root of the repo (like this)

The .travis file contents should be: (adapt to your needs)

## Travis CI Integration

language: c

install:
  - sudo apt-get install mono-devel mono-gmcs nunit-console
script:
  - xbuild Artemis_Mono/Artemis_Mono.sln
  - nunit-console Artemis_Mono/bin/Debug/ArtemisMonoUnitTests.dll

Magics Explained:

  • First we tell we will use the C language (remember, C# is not supported)
  • We use apt-get (debian based host =P) to download MONO and NUNIT (to run our unit tests)
  • Then we compiler our project using xbuild (clone of msbuild for mono — just point to the .sln file of your project)
  • Finaly we run NUNIT in one of the generated DLLs

Thats all !!!

The gain:

  • Every time someone send a pull or a commit to our repo, all the unit tests run (and a report is generated — you will recieve an email if something goes wrong … )
  • The code in our repo is (almost never) broken
  • We only accept pulls that dont break our code
  • In few weeks we sow a HUGE difference !!!

The cool part is that you will be able to use the following image that shows if your build process ran without errors.

You can also access the travis website to see the build in process (like a real time remote ssh terminal =P).

,

  1. #1 by Jogja Post on 27 de abril de 2017 - 3:14 pm

    Hello there. I found your web site via Google while searching for a related subject, your web site got here up. It seems to be good. I’ve bookmarked it in my google bookmarks to visit then.

  2. #2 by Buy Revolution Flea Control for Cats on 27 de abril de 2017 - 3:14 pm

    Thank you for the auspicious writeup. It in fact was a amusement account it. Look advanced to more added agreeable from you! However, how could we communicate?

  3. #3 by Buy Revolution Flea Control for Cats on 27 de abril de 2017 - 4:43 pm

    I do like the way you have presented this particular situation plus it really does supply us some fodder for thought. Nevertheless, because of what I have experienced, I just trust as other comments pack on that people today keep on issue and not get started on a soap box of some other news du jour. Yet, thank you for this superb piece and although I do not go along with the idea in totality, I regard the viewpoint.

  4. #4 by Buy Revolution for Dogs on 27 de abril de 2017 - 4:57 pm

    Would love to incessantly get updated great site! .

  5. #5 by Jasa adsense on 27 de abril de 2017 - 4:58 pm

    Hiya, I’m really glad I have found this information. Today bloggers publish only about gossip and net stuff and this is actually annoying. A good site with interesting content, that’s what I need. Thank you for making this web site, and I’ll be visiting again. Do you do newsletters by email?

  6. #6 by JHome Design on 27 de abril de 2017 - 5:03 pm

    Hey there. I discovered your blog by means of Google whilst searching for a comparable subject, your website got here up. It appears to be good. I have bookmarked it in my google bookmarks to visit then.

  7. #7 by cheapest kamas dofus touch for sale dofustouch-kamas on 27 de abril de 2017 - 5:09 pm

    Thank you for your helping hand.

  8. #8 by Buy Revolution for Dogs Flea Control on 27 de abril de 2017 - 5:14 pm

    I’m very happy to read this. This is the type of manual that needs to be given and not the random misinformation that is at the other blogs. Appreciate your sharing this best doc.

  9. #9 by viagra for sale on 27 de abril de 2017 - 5:22 pm

    I tried to do this with my oldest and I think I got 3 or 4 months done. He's 3 and a half and I'm 6 months in to his first year book. What does that tell you?I've been much better about monthly pictures for my youngest. But he's only 4 months so how far I get with him is yet to be determined.That lion blanket is super cute and looks very cuddly! As does that little boy!

  10. #10 by buy viagra cheap on 27 de abril de 2017 - 5:45 pm

    Cinco-"If you didn't vote for him fine. If. You despise him fine. But to make him out to be a colossal fuck up is just. Inaccurate. Period."Thank you, Cinco!

  11. #11 by Jasa pembuatan akun adsense on 27 de abril de 2017 - 5:52 pm

    Hey there. I discovered your blog by the use of Google at the same time as looking for a related topic, your site got here up. It seems to be great. I have bookmarked it in my google bookmarks to come back then.

  12. #12 by Trik Android on 27 de abril de 2017 - 6:09 pm

    Awesome post. I am a regular visitor of your site and appreciate you taking the time to maintain the excellent site. I’ll be a frequent visitor for a long time.

  13. #13 by Jasa Penulis Artiel Murah Jogja on 27 de abril de 2017 - 6:15 pm

    Hello there. I found your web site by way of Google even as looking for a comparable matter, your website got here up. It seems to be good. I’ve bookmarked it in my google bookmarks to come back then.

  14. #14 by Berita Jogja Hari Ini on 27 de abril de 2017 - 6:41 pm

    Hey there. I discovered your website by means of Google even as looking for a similar topic, your website got here up. It appears to be good. I have bookmarked it in my google bookmarks to come back then.

  15. #15 by Assignment expert on 27 de abril de 2017 - 6:45 pm

    I’а†ve recently started a blog, the info you offer on this web site has helped me tremendously. Thank you for all of your time & work.

  16. #16 by ihren kommentar hier on 27 de abril de 2017 - 6:49 pm

    Gar nicht lange dauerte es, da erhob schon wieder ein Vorübergehender seine Stimme: eine Unverschämtheit.

  17. #17 by JHome Design on 27 de abril de 2017 - 6:52 pm

    Hiya, I’m really glad I have found this info. Nowadays bloggers publish just about gossip and net stuff and this is actually frustrating. A good website with exciting content, this is what I need. Thank you for making this website, and I will be visiting again. Do you do newsletters by email?

  18. #18 by prediksi bola on 27 de abril de 2017 - 7:03 pm

    Hiya, I am really glad I’ve found this information. Nowadays bloggers publish only about gossip and web stuff and this is really frustrating. A good site with interesting content, that is what I need. Thank you for making this web-site, and I will be visiting again. Do you do newsletters by email?

  19. #19 by cole haan boots sale women's on 27 de abril de 2017 - 7:09 pm

    Bookmarked your site. Thank you very much for sharing. Definitely worth the time away from the books.
    cole haan boots sale women’s http://www.colehaanoutlet.store

  20. #20 by amazon gift card redeem on 27 de abril de 2017 - 7:27 pm

    Im thankful for the blog.Much thanks again. Want more.

  21. #21 by buy viagra online on 27 de abril de 2017 - 7:30 pm

    Hei. For en koselig blogg du har. Kom akkurat over den nÃ¥ mens jeg søkte etter oppskrifter til foccacia… Den stÃ¥r i ovnen nÃ¥, blir spennende :) Men jeg bare lurte pÃ¥ en ting. Hva heter den litt mørke brunaktige fargen du har pÃ¥ veggen i stuen?

  22. #22 by http://custombuiltloghomes.net/cp/public/337.html on 27 de abril de 2017 - 8:29 pm

    This particular headset ended up being since beautiful just as in picture. That came promptly. I’d advise getting a towel through each and every coating as you click things away w / the steam iron. It doesn’t vapor over and merely a steamer. The actual iron was necessary. It can be fragile, when you cannot trust your self with the towel furthermore vapor iron, and then just take information technology to a certified. Perfect sound.

  23. #23 by http://whiteorkid.se/html/page/324.html on 27 de abril de 2017 - 8:29 pm

    Our headset is since beautiful because into the photo. Things came immediately. I would suggest utilizing a towel more than each coating while you push that it away w / the steam iron. It does not steam outside and only a steamer. That iron is required. It is very delicate, so if you don’t trust your self aided by the towel furthermore steam iron, then consume things to a pro. Striking noise.

  24. #24 by klicken um zu lesen on 27 de abril de 2017 - 8:42 pm

    Avatar und Benutzername werden Gästen nicht angezeigt!

  25. #25 by منظار عنق الرحم ابوظبي on 27 de abril de 2017 - 8:48 pm

    Tremendous issues here. I am very glad to see your article. Thank you so much and I am looking forward to contact you. Will you please drop me a mail?

  26. #26 by eye floaters blocking vision on 27 de abril de 2017 - 11:31 pm

    I appreciate you sharing this article post.Much thanks again. Fantastic.

  27. #28 by Computer & Technology on 27 de abril de 2017 - 11:55 pm

    Simply desire to say your article is as amazing. The clarity in your post is simply great and i can assume you are an expert on this subject. Well with your permission allow me to grab your RSS feed to keep updated with forthcoming post. Thanks a million and please continue the enjoyable work.

  28. #29 by viagra for sale on 28 de abril de 2017 - 12:32 am

    Tosi mielenkiintoinen aihe. Isäni kertoi joskus järkyttäviä tarinoita siitä, kuinka he yrittivät piilotella inkeriläisiä ystäviä kun heitä haluttiin palauttaa sodan jälkeen Viroon. Olen aina vähän ihmetellyt, etten ole kuullut näistä kohtaloista mistään muualta.

  29. #30 by Car & Automotive on 28 de abril de 2017 - 12:35 am

    Wow! This can be one particular of the most helpful blogs We have ever arrive across on this subject. Basically Fantastic. I’m also a specialist in this topic so I can understand your hard work.

  30. #31 by Business & Finance on 28 de abril de 2017 - 2:53 am

    I have been checking out many of your articles and i must say clever stuff. I will definitely bookmark your blog.

  31. #32 by best way to learn affiliate marketing on 28 de abril de 2017 - 2:58 am

    Thanks again for the blog post.Really looking forward to read more.

  32. #33 by gta 5 cheats and codes on 28 de abril de 2017 - 3:44 am

    I cannot thank you enough for the article.Really thank you! Much obliged.

  33. #34 by Science & Education on 28 de abril de 2017 - 3:50 am

    Good blog! I truly love how it is simple on my eyes and the data are well written. I’m wondering how I could be notified whenever a new post has been made. I have subscribed to your RSS which must do the trick! Have a great day!

  34. #35 by Will on 28 de abril de 2017 - 4:05 am

    I love what yyou gus aree upp too. Thiss kind off cleer work annd coverage!
    Keeep uup the fawntastic wrks guys I’ve inclluded yyou guyss to myy blogroll.

    I’ve been suring online more tan 4 hoyrs today, yeet I neveer fohnd
    anny injteresting artichle like yours. It’s pretgy wkrth enough foor me.
    In myy view, iif aall ssite owaners aand blooggers madee
    good content aas you did, tthe internnet wll bee much more useful than ever before.
    Hi, I ddo beelieve thiss iss a greqt blog. I stumbledcupon it
    😉 I amm goping too return oncce again since I book-marked it.
    Moneyy andd freeedom is thhe best wway too change, mayy yoou
    bee rich aand cobtinue too guijde ofher people.
    http://foxnews.co.uk

  35. #36 by Car & Automotive on 28 de abril de 2017 - 4:12 am

    Excellent read, I just passed this onto a colleague who was doing some research on that. And he actually bought me lunch because I found it for him smile So let me rephrase that: Thanks for lunch!

  36. #37 by cheap viagra on 28 de abril de 2017 - 4:33 am

    I am really impressed with your writing skills as well as with the layout on your weblog. Is this a paid theme or did you modify it yourself? Anyway keep up the nice quality writing, it’s rare to see a great blog like this one nowadays..

  37. #38 by Home Improvement on 28 de abril de 2017 - 4:47 am

    Thank you, I have recently been searching for information about this subject for ages and yours is the greatest I have found out till now. However, what concerning the bottom line? Are you positive in regards to the source?

  38. #39 by Car & Automotive on 28 de abril de 2017 - 5:02 am

    I am so happy to read this. This is the kind of manual that needs to be given and not the random misinformation that is at the other blogs. Appreciate your sharing this best doc.

  39. #40 by day tours from marrakech on 28 de abril de 2017 - 5:04 am

    I really liked your article post.Thanks Again. Awesome.

  40. #41 by w88.com on 28 de abril de 2017 - 5:28 am

    I cling on to listening to the rumor talk about receiving free online grant applications so I have been looking around for the finest site to get one. Could you tell me please, where could i find some?

  41. #42 by generic viagra on 28 de abril de 2017 - 5:34 am

    301 Moved Permanently I was recommended this blog by my cousin. I am not sure whether this post is written by him as nobody else know such detailed about my difficulty. You¡¯re amazing! Thanks! your article about 301 Moved Permanently Best Regards Cindy Cassetta

  42. #43 by http://ryanthomas645.co.uk on 28 de abril de 2017 - 5:40 am

    Hi, i think that i saw you visited my weblog thus i came to return the desire?.I’m attempting to in finding issues to enhance my website!I suppose its
    ok to use some of your ideas!!

  43. #44 by gta 5 money cheat on 28 de abril de 2017 - 5:45 am

    Thank you ever so for you blog post.Much thanks again. Awesome.

  44. #45 by w88 link on 28 de abril de 2017 - 5:57 am

    This site can be a stroll-by means of for all the data you needed about this and didn’t know who to ask. Glimpse here, and you’ll positively uncover it.

1 727 728 729
(não será publicado)