DanielG / travis-run

Run travis-ci builds locally using Docker [abandoned]
GNU Affero General Public License v3.0
36 stars 6 forks source link

The command "source ~/virtualenv/python2.7/bin/activate" failed and exited with 1 during . #11

Open oyiptong opened 9 years ago

oyiptong commented 9 years ago

Pasting some irc logs:

09:05:31 < oyiptong> i've been trying to use travis-run
09:05:45 < oyiptong> installed docker on an ubuntu 14.04 LTS machine
09:05:53 < oyiptong> and the dependencies needed
09:06:18 < oyiptong> i've been able to run travis-run create
09:06:37 < oyiptong> but when i run travis-run in a directory with my .travis file, i encounter an error
09:07:43 < oyiptong> https://gist.github.com/oyiptong/e3148e8aaa558b46086f
09:07:47 < oyiptong> have any idea what's going on?
versae commented 9 years ago

Hey! Did you find why it failed?

SeanHayes commented 8 years ago

Same here. When it fails I'm dropped into the shell. I noticed it doesn't have virtualenv or even pip installed.

SeanHayes commented 8 years ago

travis@71af2ebc2f5b:~$ sudo apt-get install pip Reading package lists... Done Building dependency tree
Reading state information... Done E: Unable to locate package pip

DanielG commented 8 years ago

Notice the "[deprecated for now, pending rewrite]" in the description ;)

Actually I'm going to abandon this project completely, going to build my own CI system travis is just too much pain to work with, cheers :)

SeanHayes commented 8 years ago

During travis-run create, I this:

FATA[0009] Tag python_v0.2.3 not found in repository dxld/travis-run 

Later there's this:

Step 5 : RUN /root/language-install.sh python travis

Running sudo /root/language-install.sh python travis in the docker shell doesn't seem to do anything:

travis@7f7a5c0300f6:~$ sudo /root/language-install.sh python travis
Warning: Untested language: python
/var/lib/gems/1.8/gems/ohai-7.0.4/lib/ohai/loader.rb:188: warning: character class has `[' without escape
/var/lib/gems/1.8/gems/ohai-7.0.4/lib/ohai/loader.rb:188: warning: regexp has `]' without escape
Starting Chef Client, version 11.12.8
Compiling Cookbooks...
Converging 0 resources

Running handlers:
Running handlers complete

Chef Client finished, 0/0 resources updated in 1.338981 seconds
SeanHayes commented 8 years ago

OK.

This might be of interested to anyone who comes across this project: https://github.com/travis-ci/travis-ci/issues/2114

DanielG commented 8 years ago

The ideas in the source are still applicable it's just that the travis guys have moved around a bunch of stuff and I don't have time nor motivation to get this to work again. Since they are using docker themselves now it should be fairly easy to pull this off without too many of the ugly hacks I had to employ here. You just have to figure out how they build their docker images. This is mostly based on the chef cookbooks in https://github.com/travis-ci/travis-cookbooks and the default configurations from https://github.com/travis-ci/packer-templates (I think, that's one of the things they moved around). The build scripts are actually the easiest part using https://github.com/travis-ci/travis-build. This thing is what used to interface with that maybe it still works: https://github.com/DanielG/travis-run/blob/master/script/travis-run-script