+ set -e + set -o pipefail ++ dirname /tmp/rultor-Zd2g/run.sh + cd /tmp/rultor-Zd2g + echo 12595 + echo '1.34 27f3907' 1.34 27f3907 + date --iso-8601=seconds --utc 2014-09-30T13:02:15+0000 + uptime 15:02:15 up 18:14, 0 users, load average: 23.97, 20.75, 21.92 + head=git@github.com:yegor256/rultor-remote.git + head_branch=master + tag=0.2.0 + vars=('--env=head=git@github.com:yegor256/rultor-remote.git' '--env=head_branch=master' '--env=tag=0.2.0') + image=yegor256/rultor + scripts=('sudo bundle install' ';' 'rake' ';' 'rm -rf *.gem' ';' 'sed -i "s/1\.0\.snapshot/${tag}/g" lib/rultor/version.rb' ';' 'gem build rultor.gemspec' ';' 'chmod 0600 ../rubygems.yml' ';' 'gem push *.gem --config-file ../rubygems.yml' ';' 'sudo gem install pdd' ';' 'pdd --source=$(pwd) --verbose --file=rultor-remote.xml' ';' 's3cmd --no-progress put rultor-remote.xml --config=../s3cfg s3://pdd.teamed.io/rltor-remote.xml' ';') + '[' -z '' ']' + docker=docker + git clone --branch=master --depth=10 git@github.com:yegor256/rultor-remote.git repo Initialized empty Git repository in /tmp/rultor-Zd2g/repo/.git/ + cd repo + git config user.email me@rultor.com + git config user.name rultor + '[' -z 'sudo bundle install' ']' + cd .. + cat + chmod a+x entry.sh + cat + echo 'sudo bundle install' ';' rake ';' 'rm -rf *.gem' ';' 'sed -i "s/1\.0\.snapshot/${tag}/g" lib/rultor/version.rb' ';' 'gem build rultor.gemspec' ';' 'chmod 0600 ../rubygems.yml' ';' 'gem push *.gem --config-file ../rubygems.yml' ';' 'sudo gem install pdd' ';' 'pdd --source=$(pwd) --verbose --file=rultor-remote.xml' ';' 's3cmd --no-progress put rultor-remote.xml --config=../s3cfg s3://pdd.teamed.io/rltor-remote.xml' ';' + rm -rf .gpg + '[' -z 0.2.0 ']' + cd repo ++ git tag -l 0.2.0 + '[' ']' + export BRANCH_NAME=__rultor + BRANCH_NAME=__rultor ++ wc -l ++ git show-branch __rultor + '[' 0 -gt 0 ']' + git checkout -b __rultor Switched to a new branch '__rultor' + docker_when_possible + true ++ uptime ++ awk '{print $12}' ++ cut -d , -f 1 + load= + '[' '' -gt 8 ']' /tmp/rultor-Zd2g/run.sh: line 77: [: : integer expression expected + echo 'load average is , low enough to run a new Docker container' load average is , low enough to run a new Docker container + break + cd .. + docker pull yegor256/rultor Pulling repository yegor256/rultor ++ pwd ++ pwd + docker run --rm -v /tmp/rultor-Zd2g:/main --env=head=git@github.com:yegor256/rultor-remote.git --env=head_branch=master --env=tag=0.2.0 --memory=4g --cidfile=/tmp/rultor-Zd2g/cid -w=/main yegor256/rultor /main/entry.sh + set -e + set -o pipefail + shopt -s dotglob + adduser --disabled-password --gecos '' r Adding user `r' ... Adding new group `r' (1000) ... Adding new user `r' (1000) with group `r' ... Creating home directory `/home/r' ... Copying files from `/etc/skel' ... + adduser r sudo Adding user `r' to group `sudo' ... Adding user r to group sudo Done. + echo '%sudo ALL=(ALL) NOPASSWD:ALL' + cp -R /root/.bashrc /root/.java /root/.m2 /root/.profile /home/r + cp -R ./cid ./entry.sh ./pid ./repo ./rubygems.yml ./run.sh ./s3cfg ./script.sh ./stdout /home/r + rm -rf repo + chown -R r:r /home/r + chmod a+x /home/r/script.sh + su -m r -c /home/r/script.sh + set -e + set -o pipefail + export HOME=/home/r + HOME=/home/r + cd /home/r/repo + sudo bundle install Don't run Bundler as root. Bundler can ask for sudo if it is needed, and installing your bundle as root will break this application for all non-root users on this machine. Fetching gem metadata from https://rubygems.org/......... Resolving dependencies... Using rake 10.3.2 Installing i18n 0.6.11 Using json 1.8.1 Installing minitest 5.4.2 Installing thread_safe 0.3.4 Installing tzinfo 1.2.2 Installing activesupport 4.1.6 Installing builder 3.2.2 Installing erubis 2.7.0 Installing actionview 4.1.6 Installing rack 1.5.2 Installing rack-test 0.6.2 Installing actionpack 4.1.6 Installing activemodel 4.1.6 Installing ast 2.0.0 Using slop 3.6.0 Installing parser 2.2.0.pre.4 Installing astrolabe 1.3.0 Installing multi_json 1.10.1 Using mime-types 2.3 Installing netrc 0.7.7 Installing rest-client 1.7.2 Installing docile 1.1.5 Installing simplecov-html 0.8.0 Installing simplecov 0.9.1 Installing tins 1.3.3 Installing term-ansicolor 1.3.0 Installing thor 0.19.1 Installing coveralls 0.7.1 Installing diff-lcs 1.2.5 Installing gherkin 2.12.2 Installing multi_test 0.1.1 Installing cucumber 1.3.11 Installing powerpack 0.0.9 Installing railties 4.1.6 Installing rainbow 2.0.0 Installing rdoc 3.12.2 Installing rspec-expectations 2.99.2 Installing rspec-collection_matchers 1.0.0 Installing rspec-core 2.99.2 Installing rspec-mocks 2.99.2 Installing rspec-rails 2.99.0 Installing ruby-progressbar 1.6.0 Installing rubocop 0.26.1 Installing rubocop-rspec 1.2.0 Using rultor 1.0.snapshot from source at . Using bundler 1.6.3 Your bundle is complete! Use `bundle show [gemname]` to see where a bundled gem is installed. Post-install message from rdoc: Depending on your version of ruby, you may need to install ruby rdoc/ri data: <= 1.8.6 : unsupported = 1.8.7 : gem install rdoc-data; rdoc-data --install = 1.9.1 : gem install rdoc-data; rdoc-data --install >= 1.9.2 : nothing to do! Yay! + rake /home/r/repo/Rakefile:36: warning: already initialized constant CLEAN Warning: you should require 'minitest/autorun' instead. Warning: or add 'gem "minitest"' before 'require "minitest/autorun"' From: /usr/lib/ruby/1.9.1/minitest/autorun.rb:14:in `<top (required)>' /home/r/repo/test/test_encrypt.rb:31:in `<top (required)>' /var/lib/gems/1.9.1/gems/rake-10.3.2/lib/rake/rake_test_loader.rb:10:in `block (2 levels) in <main>' /var/lib/gems/1.9.1/gems/rake-10.3.2/lib/rake/rake_test_loader.rb:9:in `each' /var/lib/gems/1.9.1/gems/rake-10.3.2/lib/rake/rake_test_loader.rb:9:in `block in <main>' /var/lib/gems/1.9.1/gems/rake-10.3.2/lib/rake/rake_test_loader.rb:4:in `select' /var/lib/gems/1.9.1/gems/rake-10.3.2/lib/rake/rake_test_loader.rb:4:in `<main>' MiniTest::Unit.autorun is now Minitest.autorun. From /usr/lib/ruby/1.9.1/minitest/autorun.rb:18:in `<top (required)>' Run options: --seed 27635 # Running: "log works" .+ set -e + file=secret.txt + enc=secret.txt.enc + [ -e secret.txt.enc ] + asc=secret.txt.asc + [ -e secret.txt.asc ] + cd /tmp/test20140930-2129-wqnfij + echo rultor-key:test + echo rultor-key:test + cat secret.txt.asc + bcrypt -r -o secret.txt sh: 17: bcrypt: not found E Finished in 0.015784s, 126.7112 runs/s, 0.0000 assertions/s. 1) Error: TestEncrypt#test_basic_encryption: RuntimeError: Failed to PGP encrypt /home/r/repo/lib/rultor/encrypt.rb:77:in `run' /home/r/repo/test/test_encrypt.rb:45:in `block in test_basic_encryption' /usr/lib/ruby/1.9.1/tmpdir.rb:83:in `mktmpdir' /home/r/repo/test/test_encrypt.rb:42:in `test_basic_encryption' 2 runs, 0 assertions, 0 failures, 1 errors, 0 skips rake aborted! Command failed with status (1): [ruby -I"lib:lib:test" -I"/var/lib/gems/1.9.1/gems/rake-10.3.2/lib" "/var/lib/gems/1.9.1/gems/rake-10.3.2/lib/rake/rake_test_loader.rb" "test/**/test_*.rb" ] Tasks: TOP => default => test (See full trace by running task with --trace)