Re: [Pharo-dev] Travis CI integration added to OSSubprocess and FFICHeaderExtractor

2016-02-03 Thread Esteban Lorenzano
Hi,

> On 03 Feb 2016, at 15:21, Holger Freyther  wrote:
> 
> 
>> On 03 Feb 2016, at 13:36, Esteban Lorenzano  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
> 
> 
> 
> 




Re: [Pharo-dev] Travis CI integration added to OSSubprocess and FFICHeaderExtractor

2016-02-03 Thread Holger Freyther

> On 03 Feb 2016, at 13:36, Esteban Lorenzano  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






Re: [Pharo-dev] Travis CI integration added to OSSubprocess and FFICHeaderExtractor

2016-02-03 Thread Esteban Lorenzano

> On 03 Feb 2016, at 12:54, Mariano Martinez Peck  wrote:
> 
> 
> 
> On Fri, Jan 29, 2016 at 5:00 PM,  > wrote:
> 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 ;-)
> 
> 
> 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.

And it is still not working correctly (even if my pull request was integrated 
and Fabio continued working on it).

> 
> Whenever it works in Pharo, I would indeed like to give it a try. 
> 
>  
> Sent from my iPhone
> 
> On 29 janv. 2016, at 18:28, Mariano Martinez Peck  > wrote:
> 
>> 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 > > wrote:
>> Nice !
>> 
>> > On 29 Jan 2016, at 01:03, Mariano Martinez Peck > > > 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 
>> 
>> 
>> 
>> 
>> 
>> -- 
>> Mariano
>> http://marianopeck.wordpress.com 
> 
> 
> 
> -- 
> Mariano
> http://marianopeck.wordpress.com 



Re: [Pharo-dev] Travis CI integration added to OSSubprocess and FFICHeaderExtractor

2016-02-03 Thread Esteban Lorenzano
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  wrote:
> 
> 
>> On 29 Jan 2016, at 21:00, serge.stinckw...@gmail.com 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
> 
> 




Re: [Pharo-dev] Travis CI integration added to OSSubprocess and FFICHeaderExtractor

2016-02-03 Thread Mariano Martinez Peck
On Fri, Jan 29, 2016 at 5:00 PM,  wrote:

> 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 ;-)
>
>
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.



> Sent from my iPhone
>
> On 29 janv. 2016, at 18:28, Mariano Martinez Peck 
> wrote:
>
> 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 
> wrote:
>
>> Nice !
>>
>> > On 29 Jan 2016, at 01:03, Mariano Martinez Peck 
>> 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
>>
>>
>>
>
>
> --
> Mariano
> http://marianopeck.wordpress.com
>
>


-- 
Mariano
http://marianopeck.wordpress.com


Re: [Pharo-dev] Travis CI integration added to OSSubprocess and FFICHeaderExtractor

2016-02-03 Thread Frank Shearar
On 3 February 2016 at 10:37, Holger Freyther  wrote:
>
>> On 29 Jan 2016, at 21:00, serge.stinckw...@gmail.com 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



Re: [Pharo-dev] Travis CI integration added to OSSubprocess and FFICHeaderExtractor

2016-02-03 Thread Serge Stinckwich
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  wrote:
>
>> On 29 Jan 2016, at 21:00, serge.stinckw...@gmail.com 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/



Re: [Pharo-dev] Travis CI integration added to OSSubprocess and FFICHeaderExtractor

2016-02-03 Thread Holger Freyther

> On 29 Jan 2016, at 21:00, serge.stinckw...@gmail.com 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




Re: [Pharo-dev] Travis CI integration added to OSSubprocess and FFICHeaderExtractor

2016-01-29 Thread serge . stinckwich
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 janv. 2016, at 18:28, Mariano Martinez Peck  
> wrote:
> 
> 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  wrote:
>> Nice !
>> 
>> > On 29 Jan 2016, at 01:03, Mariano Martinez Peck  
>> > 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
> 
> 
> 
> -- 
> Mariano
> http://marianopeck.wordpress.com


Re: [Pharo-dev] Travis CI integration added to OSSubprocess and FFICHeaderExtractor

2016-01-29 Thread Esteban Lorenzano
Cobrale! Cobrale! ;)

> On 29 Jan 2016, at 18:28, Mariano Martinez Peck  wrote:
> 
> 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  wrote:
>> Nice !
>> 
>> > On 29 Jan 2016, at 01:03, Mariano Martinez Peck  
>> > 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
> 
> 
> 
> -- 
> Mariano
> http://marianopeck.wordpress.com


Re: [Pharo-dev] Travis CI integration added to OSSubprocess and FFICHeaderExtractor

2016-01-29 Thread Mariano Martinez Peck
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  wrote:

> Nice !
>
> > On 29 Jan 2016, at 01:03, Mariano Martinez Peck 
> 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
>
>
>


-- 
Mariano
http://marianopeck.wordpress.com


Re: [Pharo-dev] Travis CI integration added to OSSubprocess and FFICHeaderExtractor

2016-01-28 Thread Sven Van Caekenberghe
Nice !

> On 29 Jan 2016, at 01:03, Mariano Martinez Peck  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




[Pharo-dev] Travis CI integration added to OSSubprocess and FFICHeaderExtractor

2016-01-28 Thread Mariano Martinez Peck
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