golosio / xrmc

17 stars 10 forks source link

Add Travis-CI and AppVeyor support #34

Closed tschoonj closed 6 years ago

tschoonj commented 6 years ago

Hi @golosio,

I have added the necessary configuration files for building XRMC on Travis-CI (Linux and macOS) and AppVeyor (Windows) This will allow for testing code that is being added to pull requests.

On Linux it will test using gcc, both with and without using XMI-MSIM support. On macOS it will build once with clang and once with gcc. Building with clang actually allowed me to find a bug! On Windows it will build with gcc, both in 64-bit mode and 32-bit mode.

If you would look to see the latest build results:

https://travis-ci.org/tschoonj/xrmc/builds/305220875 https://ci.appveyor.com/project/tschoonj/xrmc

In order for this work for new pull requests, you will need to do some things on the Travis-CI and AppVeyor websites though (I cannot do this for you unfortunately). For Travis-CI: do steps 1. and 2. as explained at https://docs.travis-ci.com/user/getting-started/ For AppVeyor: do steps 1. and 2. as explained at https://www.appveyor.com/docs/

Make sure you always use Github authentication, there is no need to create new accounts.

Let me know if you need any help!

Best,

Tom

golosio commented 6 years ago

Excellent job, Tom!

2017-11-21 13:32 GMT+01:00 Tom Schoonjans notifications@github.com:

Hi @golosio https://github.com/golosio,

I have added the necessary configuration files for building XRMC on Travis-CI (Linux and macOS) and AppVeyor (Windows) This will allow for testing code that is being added to pull requests.

On Linux it will test using gcc, both with and without using XMI-MSIM support. On macOS it will build once with clang and once with gcc. Building with clang actually allowed me to find a bug! On Windows it will build with gcc, both in 64-bit mode and 32-bit mode.

If you would look to see the latest build results:

https://travis-ci.org/tschoonj/xrmc/builds/305220875 https://ci.appveyor.com/project/tschoonj/xrmc

In order for this work for new pull requests, you will need to do some things on the Travis-CI and AppVeyor websites though (I cannot do this for you unfortunately). For Travis-CI: do steps 1. and 2. as explained at https://docs.travis-ci.com/user/getting-started/ For AppVeyor: do steps 1. and 2. as explained at https://www.appveyor.com/docs/

Make sure you always use Github authentication, there is no need to create new accounts.

Let me know if you need any help!

Best,

Tom

You can view, comment on, or merge this pull request online at:

https://github.com/golosio/xrmc/pull/34 Commit Summary

  • Travis-CI: add Linux support
  • Travis-CI: add macOS support
  • Fix illegal instruction segfault with clang
  • Examples: set HeaderFlag always to 1
  • AppVeyor: add support
  • Travis-CI: add Linux build with XMI-MSIM support
  • Travis-CI: add macOS build with GCC7
  • CI: build master only

File Changes

Patch Links:

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/golosio/xrmc/pull/34, or mute the thread https://github.com/notifications/unsubscribe-auth/ADrHOZ6gxk7XHSNyUb4vCk4Z7LNptCIVks5s4sLGgaJpZM4Qlw-b .

-- Bruno Golosio, PhD Associate Professor of Applied Physics Department of Physics University of Cagliari (Italy)

tschoonj commented 6 years ago

Thanks!

Please let me know when you have activated the repository on the Travis-CI and AppVeyor websites: I will then merge this branch which should result in the first builds...

Best,

Tom

tschoonj commented 6 years ago

Bruno, could you please look into activating Travis-CI and AppVeyor? Shouldn't take more than five minutes of your time...

Thanks!

golosio commented 6 years ago

Hi Tom, I tried to activate them, let me know if it's ok or I still have to do something.

2017-11-23 15:47 GMT+01:00 Tom Schoonjans notifications@github.com:

Bruno, could you please look into activating Travis-CI and AppVeyor? Shouldn't take more than five minutes of your time...

Thanks!

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/golosio/xrmc/pull/34#issuecomment-346636792, or mute the thread https://github.com/notifications/unsubscribe-auth/ADrHOWdMTleE7KGPnHloRiYRm8dS1ZP8ks5s5YWTgaJpZM4Qlw-b .

-- Bruno Golosio, PhD Associate Professor of Applied Physics Department of Physics University of Cagliari (Italy)

tschoonj commented 6 years ago

Thanks Bruno!

Travis-CI looks good. AppVeyor I cannot tell as I don't know what the path to your account is there. Now that I merged it in, a build should have started there too though, which you should be able to confirm.