TravisCI integration

14 views
Skip to first unread message

Albert Vonpupp

unread,
Apr 20, 2013, 10:33:58 AM4/20/13
to meta...@googlegroups.com
Hello,

I would like to setup Travis CI with a github project (https://github.com/poo2013pos/FLOdactic) using Squeak, but I'm really confused on how to get started, specially the baseline stuff... Is there any way to achieve this without using baselines / Metacello. I would like to keep setup as simple as possible since is an academic project that will be evaluated and if the setup is very complicated it could turn against us.

Thanks a lot!

Alexandre Bergel

unread,
Apr 20, 2013, 12:07:03 PM4/20/13
to meta...@googlegroups.com
Hi Albert,

You can simply use Metacello to say which packages have to be loaded. This is no big deal, really


Cheers,
Alexandre
> --
> You received this message because you are subscribed to the Google Groups "Metacello" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to metacello+...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.



Dale Henrichs

unread,
Apr 23, 2013, 3:39:27 PM4/23/13
to meta...@googlegroups.com
Albert,

Technically, you don't have to create a baseline to use travisCI with a github Smalltalk project. If you don't use Metacello then you need to write an st file to do the following three things:

1. Install your project into the squeak image on travis
2. Arrange to run your SUnit tests
3. Collect test results and create the appropriate status files
so builderCI can report success or failure

All three of these things can be achieved. You can customize the tests/travisCI.st file by doing something like the following:

-------------
| gitPath diskRepo|
Transcript cr; show: 'travis---->travisCI.st'.
gitPath := (FileDirectory default directoryNamed: 'git_cache') fullName.


"Load code from github project"
diskRepo := MCFileTreeRepository new directory: gitPath, '/<path to .package dir>'
Gofer new
package: 'blah';
repository: diskRepo;
load.

"Run the tests"
"create test suite, run tests, collect results"

"Produce results files"

"Create 'TravisCISuccess.txt' file with contents you want to see when tests pass"
"Create 'TravisCIFailure.txt'file with contents you want to see when tests fail"

-------------

For inspiration, you can poke around in the MetacelloBuilderTravisCI.st file[1].

Dale

[1] https://github.com/dalehenrich/builderCI/blob/master/scripts/MetacelloBuilderTravisCI.st

Albert Vonpupp

unread,
Apr 25, 2013, 9:31:44 PM4/25/13
to meta...@googlegroups.com
Thanks a lot for your kind answer Dale,

If we use Metacello, do you think those three items would be easier to achieve? If so, could you please suggest me some sort of roadmap on how to do this? I'm totally lost on how to start.

Thanks again!

Dale Henrichs

unread,
Apr 27, 2013, 7:13:51 PM4/27/13
to meta...@googlegroups.com
Albert,

To learn more about Metacello, I think the first step would be to take run the tutorial. You can get to the tutorial From the World Menu > Help > ProfStef Tutorials....There are three Metacello tutorials.

There's a video on using Monticello and Metacello[2] and there is a chapter on Metacello[1] available from the Pharo By Example, which covers Metacello in bit more detail.

This should get you started.

Dale

[1] https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=2&cad=rja&ved=0CDwQFjAB&url=https%3A%2F%2Fgforge.inria.fr%2Ffrs%2Fdownload.php%2F28462%2FMetacello.pdf&ei=cFp8UYmPGYO0iQKR7YHoAw&usg=AFQjCNHZiVfzNIYhBH-iHh2bItLtdXjE5Q&sig2=H8Hhuy4mo7zSd7edlbh6Jg&bvm=bv.45645796,d.cGE
[2] http://www.pharocasts.com/2010/07/monticello-and-metacello-introduction.html
| > | email to metacello+...@googlegroups.com <javascript:>.

Albert Vonpupp

unread,
Apr 27, 2013, 8:41:11 PM4/27/13
to meta...@googlegroups.com
Thanks a lot Dale.

I will follow your advices!


You received this message because you are subscribed to a topic in the Google Groups "Metacello" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/metacello/wsxjjHBt2eU/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to metacello+...@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.


Reply all
Reply to author
Forward
0 new messages