Hi guys,
This is just to let you know that with the help of Esteban and between some work together [1] [2] I was able to have Travis CI integrated with OSSubprocess and FFICHeaderExtractor [3] [4] . Both projects are built and tested under Linux and OSX. Note also that one of the projects does a lot of FFI calls to system libs like libc and the other even generates C programs, compiles them and run it. Even the OS dependencies (like installing the compiler) are resolved correctly :) If someone wants to know how it's done, simply check the .travis.yml and the scripts/run-test.sh of each project [5] [6]. Cheers, |
Nice !
> On 29 Jan 2016, at 01:03, Mariano Martinez Peck <[hidden email]> wrote: > > Hi guys, > > This is just to let you know that with the help of Esteban and between some work together [1] [2] I was able to have Travis CI integrated with OSSubprocess and FFICHeaderExtractor [3] [4] . Both projects are built and tested under Linux and OSX. Note also that one of the projects does a lot of FFI calls to system libs like libc and the other even generates C programs, compiles them and run it. Even the OS dependencies (like installing the compiler) are resolved correctly :) > > If someone wants to know how it's done, simply check the .travis.yml and the scripts/run-test.sh of each project [5] [6]. > > [1] https://pharo.fogbugz.com/f/cases/17488 > [2] https://pharo.fogbugz.com/f/cases/17490 > [3] https://travis-ci.org/marianopeck/OSSubprocess > [4] https://travis-ci.org/marianopeck/FFICHeaderExtractor > [5] https://github.com/marianopeck/OSSubprocess > [6] https://github.com/marianopeck/FFICHeaderExtractor > > > Cheers, > > > -- > Mariano > http://marianopeck.wordpress.com |
BTW, Esteban Maringolo asked me if the Travis scripts were "sharable". Well, Esteban Lorenzano shared them with me and I improved them a bit for my needs, so of course they are shareable! And all my projects listed as MIT, they are all MIT all the way down. Cheers, On Fri, Jan 29, 2016 at 3:36 AM, Sven Van Caekenberghe <[hidden email]> wrote: Nice ! |
Cobrale! Cobrale! ;)
|
In reply to this post by Mariano Martinez Peck
For building Pharo, Squeak or GemStone projects on travis there is also the SmalltalkCI project: https://github.com/hpi-swa/smalltalkCI/blob/master/README.md Smalltalk language is supported by travis ;-) Sent from my iPhone
|
> On 29 Jan 2016, at 21:00, [hidden email] wrote: Dear Serge, > > For building Pharo, Squeak or GemStone projects on travis there is also the SmalltalkCI project: > https://github.com/hpi-swa/smalltalkCI/blob/master/README.md > > Smalltalk language is supported by travis ;-) I tried to use it but I am struggling a bit. I have created a ConfigurationOfMyProject using Versionner and now I try to load it using the smalltalkCI/run.sh script. The issue is that I don't have a Baseline (as Versionner) doesn't create it and the tool tries to load #stable of my project that is contained in git. I looked at SCIMetacelloLoadSpec and it doesn't seem to have a 'version' instance variable. Do you know what I am missing? Do I have to create a BaselineOf by hand? kind regards holger |
Dear Holger,
you have to talk with, Fabio Niephaus, the lead dev of SmalltalkCI. Regards On Wed, Feb 3, 2016 at 11:37 AM, Holger Freyther <[hidden email]> wrote: > >> On 29 Jan 2016, at 21:00, [hidden email] wrote: > > Dear Serge, > >> >> For building Pharo, Squeak or GemStone projects on travis there is also the SmalltalkCI project: >> https://github.com/hpi-swa/smalltalkCI/blob/master/README.md >> >> Smalltalk language is supported by travis ;-) > > I tried to use it but I am struggling a bit. I have created a ConfigurationOfMyProject using Versionner and now I try to load it using the smalltalkCI/run.sh script. The issue is that I don't have a Baseline (as Versionner) doesn't create it and the tool tries to load #stable of my project that is contained in git. > > I looked at SCIMetacelloLoadSpec and it doesn't seem to have a 'version' instance variable. Do you know what I am missing? Do I have to create a BaselineOf by hand? > > kind regards > holger > > -- Serge Stinckwich UCBN & UMI UMMISCO 209 (IRD/UPMC) Every DSL ends up being Smalltalk http://www.doesnotunderstand.org/ |
In reply to this post by Holger Freyther
On 3 February 2016 at 10:37, Holger Freyther <[hidden email]> wrote:
> >> On 29 Jan 2016, at 21:00, [hidden email] wrote: > > Dear Serge, > >> >> For building Pharo, Squeak or GemStone projects on travis there is also the SmalltalkCI project: >> https://github.com/hpi-swa/smalltalkCI/blob/master/README.md >> >> Smalltalk language is supported by travis ;-) > > I tried to use it but I am struggling a bit. I have created a ConfigurationOfMyProject using Versionner and now I try to load it using the smalltalkCI/run.sh script. The issue is that I don't have a Baseline (as Versionner) doesn't create it and the tool tries to load #stable of my project that is contained in git. > > I looked at SCIMetacelloLoadSpec and it doesn't seem to have a 'version' instance variable. Do you know what I am missing? Do I have to create a BaselineOf by hand? This bug report might help?: https://github.com/hpi-swa/smalltalkCI/issues/24 frank > kind regards > holger |
In reply to this post by SergeStinckwich
On Fri, Jan 29, 2016 at 5:00 PM, <[hidden email]> wrote:
Hi Serge, Thanks for the link. Yes, I knew that before starting. But at that time I talked with Esteban and he told me it was not yet working correctly with Pharo. In fact, there were some pull request from Esteban pending for integration. So I went with the old, simple, working approach. Whenever it works in Pharo, I would indeed like to give it a try.
|
In reply to this post by Holger Freyther
Hi Holger,
As I pointed before, smalltalk-ci it is still not working. Mariano is using an alternative I explained here: http://log.smallworks.eu/web/post/84 In general, smalltalk-ci is an attempt to have a "level playing field” between different smalltalks (for now pharo and squeak, in close future gemstone) and maybe it has sense to use it if you are going to develop compatible packages… in “plain pharo” my approach (who largely borrows from others) could do a perfectly fine job. > On 03 Feb 2016, at 11:37, Holger Freyther <[hidden email]> wrote: > > >> On 29 Jan 2016, at 21:00, [hidden email] wrote: > > Dear Serge, > >> >> For building Pharo, Squeak or GemStone projects on travis there is also the SmalltalkCI project: >> https://github.com/hpi-swa/smalltalkCI/blob/master/README.md >> >> Smalltalk language is supported by travis ;-) > > I tried to use it but I am struggling a bit. I have created a ConfigurationOfMyProject using Versionner and now I try to load it using the smalltalkCI/run.sh script. The issue is that I don't have a Baseline (as Versionner) doesn't create it and the tool tries to load #stable of my project that is contained in git. > > I looked at SCIMetacelloLoadSpec and it doesn't seem to have a 'version' instance variable. Do you know what I am missing? Do I have to create a BaselineOf by hand? > > kind regards > holger > > |
In reply to this post by Mariano Martinez Peck
And it is still not working correctly (even if my pull request was integrated and Fabio continued working on it).
|
> On 03 Feb 2016, at 13:36, Esteban Lorenzano <[hidden email]> wrote: > Hi, > And it is still not working correctly (even if my pull request was integrated and Fabio continued working on it). yes it is still not working, i created a 'wrong' #stable in my configuration but now it doesn't want to take the main package from the local repository (and no I don't want to write github://... as the repo might be cloned). The added benefit of smalltalkCI is that I can test a Pharo4.0, Pharo5.0 build at the same time without having to write a shell script to make the differentiation for me. holger |
Hi,
> On 03 Feb 2016, at 15:21, Holger Freyther <[hidden email]> wrote: > > >> On 03 Feb 2016, at 13:36, Esteban Lorenzano <[hidden email]> wrote: >> > > > Hi, > > > >> And it is still not working correctly (even if my pull request was integrated and Fabio continued working on it). > > yes it is still not working, i created a 'wrong' #stable in my configuration but now it doesn't want to take the main package from the local repository (and no I don't want to write github://... as the repo might be cloned). The added benefit of smalltalkCI is that I can test a Pharo4.0, Pharo5.0 build at the same time without having to write a shell script to make the differentiation for me. you can have your matrix using env variables: .travis.yml: language: c os: - linux - osx addons: apt: packages: - lib32asound2 - lib32z1 - lib32bz2-1.0 - libssl1.0.0:i386 - libfreetype6:i386 script: - scripts/run-tests.sh env: - PHARO_VERSION=50 - PHARO_VERSION=40 then the script: scripts/run-tests.sh: #!/bin/bash set -ex baseline=Ice packages_dir=mc test="$baseline.*" # add a default version if [ -z $PHARO_VERSION ]; then PHARO_VERSION=50 fi # download pharo wget --quiet -O - get.pharo.org/$PHARO_VERSION+vm | bash # install project ./pharo Pharo.image eval --save " Metacello new baseline: '$baseline'; repository: 'filetree://$packages_dir'; load. " # execute tests ./pharo Pharo.image test --no-xterm --fail-on-failure "$test" 2>&1 if you see this project: https://github.com/estebanlm/ice it is running a quadruple matrix: linux, osx, pharo40, pharo50 (others can be added). cheers, Esteban > holger > > > > |
Free forum by Nabble | Edit this page |