Thread overview | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
December 15, 2013 Travis-CI Skeleton Project for DMD 2.064.2 and LDC 0.12.1 | ||||
---|---|---|---|---|
| ||||
Hello, I was hoping for Travis-CI to provide a set of D compilers for building projects written in D, but alas, they do not. So, here's a small skeleton project that I'm using for testing my D projects with DMD 2.064.2 and LDC 0.12.1. It should be straightforward to bring in the relevant parts of the .travis.yml and Makefile into another project; just copy over the .travis_scripts folder, the install and env portions of the config in .travis.yml and it should be good to go. |
December 15, 2013 Re: Travis-CI Skeleton Project for DMD 2.064.2 and LDC 0.12.1 | ||||
---|---|---|---|---|
| ||||
Posted in reply to Dylan Knutson | On Sunday, 15 December 2013 at 23:31:48 UTC, Dylan Knutson wrote: > Hello, > > I was hoping for Travis-CI to provide a set of D compilers for building projects written in D, but alas, they do not. > > So, here's a small skeleton project that I'm using for testing my D projects with DMD 2.064.2 and LDC 0.12.1. > > It should be straightforward to bring in the relevant parts of the .travis.yml and Makefile into another project; just copy over the .travis_scripts folder, the install and env portions of the config in .travis.yml and it should be good to go. Oops, forgot to paste the link: https://github.com/dymk/travis-d-tests And the Travis-CI page for this project: https://travis-ci.org/dymk/travis-d-tests |
December 16, 2013 Re: Travis-CI Skeleton Project for DMD 2.064.2 and LDC 0.12.1 | ||||
---|---|---|---|---|
| ||||
Posted in reply to Dylan Knutson | On 2013-12-16 00:31, Dylan Knutson wrote: > Hello, > > I was hoping for Travis-CI to provide a set of D compilers for building > projects written in D, but alas, they do not. > > So, here's a small skeleton project that I'm using for testing my D > projects with DMD 2.064.2 and LDC 0.12.1. > > It should be straightforward to bring in the relevant parts of the > .travis.yml and Makefile into another project; just copy over the > .travis_scripts folder, the install and env portions of the config in > .travis.yml and it should be good to go. We really need to get officially support for D in Travis. I've been thinking about this for a while but haven't done anything about it so far. -- /Jacob Carlborg |
December 16, 2013 Re: Travis-CI Skeleton Project for DMD 2.064.2 and LDC 0.12.1 | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jacob Carlborg | Jacob Carlborg, el 16 de December a las 08:34 me escribiste: > On 2013-12-16 00:31, Dylan Knutson wrote: > >Hello, > > > >I was hoping for Travis-CI to provide a set of D compilers for building projects written in D, but alas, they do not. > > > >So, here's a small skeleton project that I'm using for testing my D projects with DMD 2.064.2 and LDC 0.12.1. > > > >It should be straightforward to bring in the relevant parts of the .travis.yml and Makefile into another project; just copy over the .travis_scripts folder, the install and env portions of the config in .travis.yml and it should be good to go. > > We really need to get officially support for D in Travis. I've been thinking about this for a while but haven't done anything about it so far. Yeah, and this approach of compiling the compilers, even when it might be useful, seems overkill and a bit abusive for Travis. I would contact those guys, maybe they are willing to add D support, I guess it shouldn't be that hard. -- Leandro Lucarella (AKA luca) http://llucax.com.ar/ |
December 16, 2013 Re: Travis-CI Skeleton Project for DMD 2.064.2 and LDC 0.12.1 | ||||
---|---|---|---|---|
| ||||
Posted in reply to Leandro Lucarella | On 2013-12-16 12:24, Leandro Lucarella wrote: > Yeah, and this approach of compiling the compilers, even when it might > be useful, seems overkill and a bit abusive for Travis. I would contact > those guys, maybe they are willing to add D support, I guess it > shouldn't be that hard. Now when I think about it, I've already filed an enhancement request: https://github.com/travis-ci/travis-ci/issues/730 Now we could install dub as one of the default tools. -- /Jacob Carlborg |
December 16, 2013 Re: Travis-CI Skeleton Project for DMD 2.064.2 and LDC 0.12.1 | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jacob Carlborg | On Monday, 16 December 2013 at 07:34:07 UTC, Jacob Carlborg wrote:
> We really need to get officially support for D in Travis. I've been thinking about this for a while but haven't done anything about it so far.
Agreed; this was just a stopgap for at least being able to use Travis with my projects. Having to install a compiler as part of the testing process just adds another point of failure to the builds, slows down testing, and unnecessarily consumes resources.
|
December 16, 2013 Re: Travis-CI Skeleton Project for DMD 2.064.2 and LDC 0.12.1 | ||||
---|---|---|---|---|
| ||||
Posted in reply to Leandro Lucarella | On Monday, 16 December 2013 at 12:09:13 UTC, Leandro Lucarella wrote:
> Yeah, and this approach of compiling the compilers, even when it might
> be useful, seems overkill and a bit abusive for Travis. I would contact
> those guys, maybe they are willing to add D support, I guess it
> shouldn't be that hard.
It's not quite that bad. The compilers are already built, I'm just pulling DMD down in the form of a .deb package, and extracting a pre-built LDC depending on the DC environment variable set.
|
December 18, 2013 Re: Travis-CI Skeleton Project for DMD 2.064.2 and LDC 0.12.1 | ||||
---|---|---|---|---|
| ||||
Posted in reply to Dylan Knutson | Dylan Knutson, el 16 de December a las 23:03 me escribiste: > On Monday, 16 December 2013 at 12:09:13 UTC, Leandro Lucarella wrote: > >Yeah, and this approach of compiling the compilers, even when it > >might > >be useful, seems overkill and a bit abusive for Travis. I would > >contact > >those guys, maybe they are willing to add D support, I guess it > >shouldn't be that hard. > > It's not quite that bad. The compilers are already built, I'm just pulling DMD down in the form of a .deb package, and extracting a pre-built LDC depending on the DC environment variable set. Oh, OK, since the language was set to C++ I just assumed you were compiling the compilers, then it seems pretty reasonable :) -- Leandro Lucarella (AKA luca) http://llucax.com.ar/ ---------------------------------------------------------------------- GPG Key: 5F5A8D05 (F8CD F9A7 BF00 5431 4145 104C 949E BFB6 5F5A 8D05) ---------------------------------------------------------------------- A veces quisiera ser un barco, para flotar como floto siendo humano, y no hundirme como me hundo |
December 18, 2013 Re: Travis-CI Skeleton Project for DMD 2.064.2 and LDC 0.12.1 | ||||
---|---|---|---|---|
| ||||
Posted in reply to Dylan Knutson | On 2013-12-16 00:31, Dylan Knutson wrote: > Hello, > > I was hoping for Travis-CI to provide a set of D compilers for building > projects written in D, but alas, they do not. > > So, here's a small skeleton project that I'm using for testing my D > projects with DMD 2.064.2 and LDC 0.12.1. > > It should be straightforward to bring in the relevant parts of the > .travis.yml and Makefile into another project; just copy over the > .travis_scripts folder, the install and env portions of the config in > .travis.yml and it should be good to go. They have added some functionality now: https://github.com/travis-ci/travis-cookbooks/commit/01e725208a755508529eec28f074f6bbef6c319f -- /Jacob Carlborg |
Copyright © 1999-2021 by the D Language Foundation