Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for ./pharo Pharo.image config ...? #21

Closed
fniephaus opened this issue Dec 31, 2015 · 3 comments
Closed

Add support for ./pharo Pharo.image config ...? #21

fniephaus opened this issue Dec 31, 2015 · 3 comments
Assignees

Comments

@fniephaus
Copy link
Member

@peteruhnak mentioned in #20 that Pharo users often use the same script (see below) for their Jenkins CI builds.

I believe it'd make sense to add support for the following:

./pharo $JOB_NAME.image config $REPO ConfigurationOfSton --install=$VERSION

Any objections/suggestions?

For the record, here's the full script again:

# jenkins puts all the params after a / in the job name as well :(
export JOB_NAME=`dirname $JOB_NAME`

wget --quiet -O - get.pharo.org/$PHARO+$VM | bash

./pharo Pharo.image save $JOB_NAME --delete-old
./pharo $JOB_NAME.image --version > version.txt

REPO=http://smalltalkhub.com/mc/HardCodedRepository/$JOB_NAME/main
./pharo $JOB_NAME.image config $REPO ConfigurationOfSton --install=$VERSION
./pharo $JOB_NAME.image test --junit-xml-output "$JOB_NAME.*"

zip -r $JOB_NAME.zip $JOB_NAME.image $JOB_NAME.changes

# clean up the workspace to not occupy too much stale space on the slaves
rm -rf *.image *.changes
@fniephaus fniephaus self-assigned this Dec 31, 2015
@peteruhnak
Copy link
Contributor

I should've explained the script.

The line ./pharo $JOB_NAME.image config $REPO ConfigurationOfSton --install=$VERSION

Loads the project itself (the name of the project is hardcoded here), however the line doesn't make much sense for us, no? Since we are working with baselines and git(hub) and not smalltalkhub/configurationof.

@fniephaus
Copy link
Member Author

Can't $REPO be a local path and then it's possible to load a project via its configuration?
And a configuration can be exported just like a baseline, right?
Or am I missing something here?
I thought if Pharo users are mostly using configurations, why not adding support for it here?

@fniephaus
Copy link
Member Author

Instead of using ./pharo Pharo.image config ..., I have decided to use this for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants