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 http://news.louboutinbooties.xyz/louboutinbootiesxyz/140.asp on 27 de maio de 2017 - 7:04 pm

    Yet not while fancy at real life whether mothers wrist is actually not 2small dont choose they reason it be tight .. it is adorable then again anything yur 5year old make . No that the reduced its one ok gift and provide yet not one wow gifts…cant go wrong if don’t have much to spend on a gifts after that see this

  2. #2 by 勇士闖魔城3/勇者義彥與被引導的七人DVD on 27 de maio de 2017 - 7:50 pm

    usually posts some extremely exciting stuff like this. If you are new to this site

  3. #3 by cheap louboutin shoes replica on 27 de maio de 2017 - 9:20 pm

    I had gotten this particular gift for the my mother of Christmas time because she was letter jewelry freak. Your something she does not don a great deal to is actually, bracelets. I bought this girl this one allure bracelet and also when she launched they yesterday she absolutley liked this! This time the problem are, the lady obtaining that it at plus off of by just herself. Haha… on the whole great device, information technology transported as well as appeared incredibly very early to the mother was enjoying this. Thank one.

  4. #4 by About Us on 27 de maio de 2017 - 9:45 pm

    the time to read or stop by the content or internet sites we have linked to below the

  5. #5 by gsa ser download on 27 de maio de 2017 - 11:30 pm

    My brother suggested I might like this web site.
    He was entirely right. This post actually made my day.
    You cann’t imagine just how much time I had spent for this info!
    Thanks!

  6. #6 by bicara wanita on 28 de maio de 2017 - 4:26 am

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

  7. #7 by bathroom design on 28 de maio de 2017 - 6:31 am

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

  8. #8 by pusat plakat on 28 de maio de 2017 - 7:20 am

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

  9. #9 by pusat plakat on 28 de maio de 2017 - 7:28 am

    Hiya, I’m really glad I have found this information. Today bloggers publish just about gossip and net stuff and this is really irritating. A good blog with interesting content, this is what I need. Thanks for making this web-site, and I will be visiting again. Do you do newsletters by email?

  10. #10 by Flower in Vase on 28 de maio de 2017 - 7:31 am

    Hey there. I found your website by way of Google at the same time as searching for a related subject, your web site got here up. It seems great. I have bookmarked it in my google bookmarks to come back then.

  11. #11 by http://www.nira.no/userfiles/view/502.html on 28 de maio de 2017 - 9:17 am

    I have your headphonestowards my mother for moms evening, to she absolutely loved that! It really is completely pretty headphonesas well as the saying in the card your comes within the container is really emotional!! As well as the grade of the beads is very good!

  12. #12 by http://www.destinypredictions.com/temp/69.html on 28 de maio de 2017 - 9:17 am

    I have it headphonesconcerning my mom concerning mothers time, as well as she absolutely liked it! It really is actually attractive headphonesas well as the saying on the card that comes in the box is really sentimental!! And premium of beads are ideal!

  13. #13 by http://stefanbakosab.se/web/html/402.html on 28 de maio de 2017 - 11:18 am

    Yet not just as fancy at real world if mothers wrist is maybe not 2small don’t go for that it cause it stay tight .. the adorable although something yur 5year aged makes . No their not so their an ok gift and present but not the wow present…cant get wrong should do not need a great deal to blow for a present subsequently find that

  14. #14 by http://pcboa.se/temp/412.html on 28 de maio de 2017 - 11:19 am

    Bought this one as a gifts towards my mama to she liked things. wonderful excellence cool price tag additionally my personal mom enjoyed things. In addition delivered very fast. When you need a gift fast and you such as this then this is the a person you ought to go for!

1 774 775 776
(não será publicado)