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 home shopping network on 21 de julho de 2017 - 3:56 am

    I loved as much as you’ll receive carried out right here. The sketch is tasteful, your authored material stylish. nonetheless, you command get bought an edginess over that you wish be delivering the following. unwell unquestionably come further formerly again since exactly the same nearly very often inside case you shield this hike.

  2. #2 by click here on 21 de julho de 2017 - 4:36 am

    Heya! I just wanted to ask if you ever have any trouble with hackers? My last blog (wordpress) was hacked and I ended up losing several weeks of hard work due to no back up. Do you have any methods to prevent hackers?

  3. #3 by myblog on 21 de julho de 2017 - 4:36 am

    Hi, this weekend is good designed for me, for the reason that this time i am reading this wonderful educational piece of writing here at my residence.

  4. #4 by fifa 18 coins on 21 de julho de 2017 - 4:36 am

    Hi Dear, are you truly visiting this web page daily, if so afterward you will definitely obtain fastidious experience.

  5. #5 by click this on 21 de julho de 2017 - 5:05 am

    very couple of web sites that come about to be in depth beneath, from our point of view are undoubtedly nicely really worth checking out

  6. #6 by Loker cirebon terbaru on 21 de julho de 2017 - 5:11 am

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

  7. #7 by like it on 21 de julho de 2017 - 5:24 am

    the time to study or check out the subject material or web sites we have linked to beneath the

  8. #8 by Visit This Link on 21 de julho de 2017 - 6:03 am

    here are some hyperlinks to web-sites that we link to simply because we believe they’re really worth visiting

  9. #9 by kontraktor jogja on 21 de julho de 2017 - 6:39 am

    Awesome post. I’m a normal visitor of your site and appreciate you taking the time to maintain the nice site. I’ll be a frequent visitor for a long time.

  10. #10 by nicotinepatches on 21 de julho de 2017 - 6:59 am

    christian louboutin shoes for men louis vuitton travel bag tory burch outlet online

  11. #11 by Cetak kaos murah on 21 de julho de 2017 - 7:05 am

    Awesome write-up. I’m a normal visitor of your website and appreciate you taking the time to maintain the excellent site. I’ll be a frequent visitor for a really long time.

  12. #12 by try these out on 21 de julho de 2017 - 7:51 am

    usually posts some extremely interesting stuff like this. If youre new to this site

  13. #13 by sablon kaos murah on 21 de julho de 2017 - 8:41 am

    Hey there. I found your web site via Google while looking for a similar matter, your web site came up. It appears good. I’ve bookmarked it in my google bookmarks to come back then.

  14. #14 by tempxratureiisms on 21 de julho de 2017 - 8:47 am

    Wow, incredible blog layout! How long have you been blogging for? you make blogging look easy. The overall look of your website is magnificent, as well as the content!

  15. #15 by prescienta on 21 de julho de 2017 - 8:49 am

    could you repeat that? the idea love to have got a good archetype refraining from identity to declare additional extraordinarily without problems benefit knowledge of privileged move forward subject material. You definitely surpassed our very own

  16. #16 by Бонгакамс on 21 de julho de 2017 - 8:58 am

    Why users still use to read news papers when in this technological globe the whole thing is available on net?

  17. #17 by Domingo Pritz on 21 de julho de 2017 - 9:54 am

    What i do not realize is in fact how you are now not really a lot more well-favored than you may be right now.You’re so intelligent. You already know thus considerablywith regards to this matter, produced me individually imagine it froma lot of numerous angles. Its like men and women don’t seem to be interested until it’s one thing to do with Woman gaga!Your own stuffs outstanding. At all times maintain it up!

  18. #18 by бонгакамс on 21 de julho de 2017 - 12:59 pm

    Greate pieces. Keep writing such kind of information on your site.
    Im really impressed by your site.
    Hey there, You have performed a fantastic job.

    I will certainly digg it and individually recommend to my friends.
    I’m confident they’ll be benefited from this website.

  19. #19 by php web programming on 21 de julho de 2017 - 3:06 pm

    Wonderful story, reckoned we could combine several unrelated data, nevertheless really worth taking a appear, whoa did 1 understand about Mid East has got far more problerms also

  20. #20 by science and technology on 21 de julho de 2017 - 3:08 pm

    You made some nice points there. I looked on the internet for the topic and found most individuals will agree with your blog.

1 839 840 841
(não será publicado)