[do not merge] Compile an sh build script #57

Closed
wants to merge 65 commits into
from

Conversation

Projects
None yet
3 participants
@svenfuchs
Member

svenfuchs commented Dec 27, 2012

This is an experiment and not meant to be merged, yet. Still sending a pull request to notify everybody :)

This changes travis-build to compile a shell script from the directives given in the various language builders. The eventual goal is to get rid of the need of a persistent ssh session. Instead we'd just pass a single build script and tail a build log.

Since we're doing a fair amount of logic in travis-build (such as checking for exit codes, timeouts etc) all this has to happen within the shell script now.

To make this work i've added a rather simplistic dsl to describe shell scripts the way we need.

The code on this branch currently does not take care of anything but compiling the scripts.

@svenfuchs

This comment has been minimized.

Show comment Hide comment
@svenfuchs

svenfuchs Dec 27, 2012

Member

Interesting that the shell scripts run on mac os x, but don't pass on travis.

Member

svenfuchs commented Dec 27, 2012

Interesting that the shell scripts run on mac os x, but don't pass on travis.

@roidrage

This comment has been minimized.

Show comment Hide comment
@roidrage

roidrage Dec 27, 2012

Member

👍 for this change. down with the plague that is the persistent ssh connection requirement!

Member

roidrage commented Dec 27, 2012

👍 for this change. down with the plague that is the persistent ssh connection requirement!

@svenfuchs

This comment has been minimized.

Show comment Hide comment
@svenfuchs

svenfuchs Dec 27, 2012

Member

green!

Member

svenfuchs commented Dec 27, 2012

green!

svenfuchs and others added some commits Dec 29, 2012

we need to run this ugly line so that the ssh session using bash --lo…
…gin sets up rvm correctly within our build script
two changes, if a ruby version is specified as /-1[89]mode$/ then cha…
…nge it to /-d1[89]/, and if the ruby is not installed then install it, by only if it is a binary
Merge branch 'sf-compile-sh' of github.com:travis-ci/travis-build int…
…o sf-compile-sh

Conflicts:
	lib/travis/build/data.rb
	lib/travis/build/script/ruby.rb

svenfuchs and others added some commits Jan 10, 2013

Merge branch 'sf-compile-sh' of https://github.com/travis-ci/travis-b…
…uild into sf-compile-sh

Conflicts:
	lib/travis/build/script/ruby.rb
@svenfuchs

This comment has been minimized.

Show comment Hide comment
@svenfuchs

svenfuchs Jan 15, 2013

Member

closing this so i can add a new pull request for people to review the example build.sh scripts

Member

svenfuchs commented Jan 15, 2013

closing this so i can add a new pull request for people to review the example build.sh scripts

@svenfuchs svenfuchs closed this Jan 15, 2013

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