+ set -e + set -o pipefail ++ dirname /tmp/rultor-rld7/run.sh + cd /tmp/rultor-rld7 + echo 2677 + echo '2.0-SNAPSHOT BUILD' 2.0-SNAPSHOT BUILD + date Fri May 1 01:18:00 UTC 2015 + uptime 01:18:00 up 2 days, 1:48, 0 users, load average: 0.61, 4.76, 6.88 + head=git@github.com:teamed/hoc.git + head_branch=master + tag=0.5 + vars=('--env=head=git@github.com:teamed/hoc.git' '--env=head_branch=master' '--env=tag=0.5') + image=yegor256/rultor + squash=false + directory= + scripts=('sudo gem install --no-ri --no-rdoc pdd' ';' 'sudo apt-get install -y subversion diffstat' ';' 'sudo apt-get install -y software-properties-common' ';' 'sudo add-apt-repository -y ppa:git-core/ppa' ';' 'sudo apt-get update' ';' 'sudo apt-get remove -y git' ';' 'sudo apt-get install -y git' ';' 'sudo bundle install' ';' 'rake' ';' 'rm -rf *.gem' ';' 'sed -i "s/1\.0\.snapshot/${tag}/g" lib/hoc/version.rb' ';' 'git commit -m "${tag}" lib/hoc/version.rb' ';' 'gem build hoc.gemspec' ';' 'chmod 0600 ../rubygems.yml' ';' 'gem push *.gem --config-file ../rubygems.yml' ';' 'pdd --source=$(pwd) --verbose --file=hoc.xml' ';' 's3cmd --no-progress put hoc.xml --config=../s3cfg s3://pdd.teamed.io/hoc.xml' ';') + container=teamed_hoc_10 + as_root=false + echo -e 'Host github.com\n\tStrictHostKeyChecking no\n' + chmod 600 /home/rultor/.ssh/config + git clone --branch=master --depth=10 git@github.com:teamed/hoc.git repo Cloning into 'repo'... + cd repo + git config user.email me@rultor.com + git config user.name rultor + '[' -z 'sudo gem install --no-ri --no-rdoc pdd' ']' + cd .. + cat + '[' false = true ']' + cat + chmod a+x entry.sh + cat + echo 'sudo gem install --no-ri --no-rdoc pdd' ';' 'sudo apt-get install -y subversion diffstat' ';' 'sudo apt-get install -y software-properties-common' ';' 'sudo add-apt-repository -y ppa:git-core/ppa' ';' 'sudo apt-get update' ';' 'sudo apt-get remove -y git' ';' 'sudo apt-get install -y git' ';' 'sudo bundle install' ';' rake ';' 'rm -rf *.gem' ';' 'sed -i "s/1\.0\.snapshot/${tag}/g" lib/hoc/version.rb' ';' 'git commit -m "${tag}" lib/hoc/version.rb' ';' 'gem build hoc.gemspec' ';' 'chmod 0600 ../rubygems.yml' ';' 'gem push *.gem --config-file ../rubygems.yml' ';' 'pdd --source=$(pwd) --verbose --file=hoc.xml' ';' 's3cmd --no-progress put hoc.xml --config=../s3cfg s3://pdd.teamed.io/hoc.xml' ';' + rm -rf .gpg + '[' -z 0.5 ']' + cd repo ++ git tag -l 0.5 + '[' ']' + export BRANCH_NAME=__rultor + BRANCH_NAME=__rultor ++ git show-branch __rultor ++ wc -l + '[' 0 -gt 0 ']' + git checkout -b __rultor Switched to a new branch '__rultor' + docker_when_possible + true ++ uptime ++ sed 's/ /\n/g' ++ tail -n 1 + load=6.88 ++ echo 6.88 '>' 30 ++ bc + '[' 0 -eq 1 ']' + echo 'load average is 6.88, low enough to run a new Docker container' load average is 6.88, low enough to run a new Docker container + break + cd .. + '[' -n '' ']' + use_image=yegor256/rultor + docker pull yegor256/rultor Trying to pull repository docker.io/yegor256/rultor ... df0608d44329: Pulling image (latest) from docker.io/yegor256/rultor df0608d44329: Pulling image (latest) from docker.io/yegor256/rultor, endpoint: https://registry-1.docker.io/v1/ df0608d44329: Pulling dependent layers 511136ea3c5a: Download complete d7ac5e4f1812: Download complete 2f4b4d6a4a06: Download complete 83ff768040a0: Download complete 6c37f792ddac: Download complete e54ca5efa2e9: Download complete 18e5e08ce16d: Download complete cfd3123899d7: Download complete 7fdbbba76594: Download complete 452bfe735d07: Download complete 2d8dc22e2c1a: Download complete 5dba824e2096: Download complete 996aaaaa3be6: Download complete e2730cdac0e5: Download complete 3d8c369c7792: Download complete 2ed8d6c88527: Download complete 39a477af720b: Download complete b97894feaf2c: Download complete 5a2f0c609499: Download complete 9ad8daa2cd1d: Download complete fbb3c7ffb85b: Download complete 63892fa9dc21: Download complete 244638a429a4: Download complete c0b899df8169: Download complete 689ff7a95ae2: Download complete da4c3c51f876: Download complete af8fbf8cd4dc: Download complete 7d0fc5b517c8: Download complete a7280d0d7ae9: Download complete 2ad7249bf03c: Download complete 1ccd85a022a2: Download complete ef7a01b3f761: Download complete 99499274d0d3: Download complete df0608d44329: Download complete df0608d44329: Download complete Status: Image is up to date for docker.io/yegor256/rultor:latest + grep --quiet '\steamed_hoc_10\s*$' + docker ps --filter=status=exited ++ pwd ++ pwd + docker run --rm -v /tmp/rultor-rld7:/main --env=head=git@github.com:teamed/hoc.git --env=head_branch=master --env=tag=0.5 --privileged=true --memory=4g --cidfile=/tmp/rultor-rld7/cid -w=/main --name=teamed_hoc_10 yegor256/rultor /main/entry.sh + set -e + set -o pipefail + shopt -s dotglob + useradd -m -G sudo r + echo '%sudo ALL=(ALL) NOPASSWD:ALL' + cp -R /root/.bashrc /root/.ivy2 /root/.java /root/.m2 /root/.profile /root/.sbt /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 gem install --no-ri --no-rdoc pdd Building native extensions. This could take a while... Building native extensions. This could take a while... ruby-filemagic-0.6.1 [2014-08-19]: * Account for options passed to FileMagic.fm (issue #7 reported by Adam Wróbel). Successfully installed nokogiri-1.6.5 Successfully installed ruby-filemagic-0.6.1 Successfully installed rake-10.4.2 Successfully installed pdd-0.14 4 gems installed + sudo apt-get install -y subversion diffstat Reading package lists... Building dependency tree... Reading state information... subversion is already the newest version. The following package was automatically installed and is no longer required: libnss3-1d Use 'apt-get autoremove' to remove it. The following NEW packages will be installed: diffstat 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 21.8 kB of archives. After this operation, 81.9 kB of additional disk space will be used. Get:1 http://archive.ubuntu.com/ubuntu/ trusty/main diffstat amd64 1.58-1 [21.8 kB] debconf: unable to initialize frontend: Dialog debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.) debconf: falling back to frontend: Readline debconf: unable to initialize frontend: Readline debconf: (This frontend requires a controlling tty.) debconf: falling back to frontend: Teletype dpkg-preconfigure: unable to re-open stdin: Fetched 21.8 kB in 0s (487 kB/s) Selecting previously unselected package diffstat. (Reading database ... 58045 files and directories currently installed.) Preparing to unpack .../diffstat_1.58-1_amd64.deb ... Unpacking diffstat (1.58-1) ... Processing triggers for man-db (2.6.7.1-1ubuntu1) ... Setting up diffstat (1.58-1) ... + sudo apt-get install -y software-properties-common Reading package lists... Building dependency tree... Reading state information... software-properties-common is already the newest version. The following package was automatically installed and is no longer required: libnss3-1d Use 'apt-get autoremove' to remove it. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. + sudo add-apt-repository -y ppa:git-core/ppa gpg: keyring `/tmp/tmpq6d11fxa/secring.gpg' created gpg: keyring `/tmp/tmpq6d11fxa/pubring.gpg' created gpg: requesting key E1DF1F24 from hkp server keyserver.ubuntu.com gpg: /tmp/tmpq6d11fxa/trustdb.gpg: trustdb created gpg: key E1DF1F24: public key "Launchpad PPA for Ubuntu Git Maintainers" imported gpg: Total number processed: 1 gpg: imported: 1 (RSA: 1) OK + sudo apt-get update Ign http://archive.ubuntu.com trusty InRelease Ign http://archive.ubuntu.com trusty-updates InRelease Ign http://archive.ubuntu.com trusty-security InRelease Hit http://archive.ubuntu.com trusty Release.gpg Get:1 http://archive.ubuntu.com trusty-updates Release.gpg [933 B] Get:2 http://archive.ubuntu.com trusty-security Release.gpg [933 B] Hit http://archive.ubuntu.com trusty Release Get:3 http://archive.ubuntu.com trusty-updates Release [63.5 kB] Ign http://ppa.launchpad.net trusty InRelease Hit http://apt.typesafe.com unicorn InRelease Get:4 http://archive.ubuntu.com trusty-security Release [63.5 kB] Hit http://archive.ubuntu.com trusty/main Sources Hit http://archive.ubuntu.com trusty/restricted Sources Hit http://archive.ubuntu.com trusty/universe Sources Hit http://archive.ubuntu.com trusty/main amd64 Packages Hit http://archive.ubuntu.com trusty/restricted amd64 Packages Hit http://archive.ubuntu.com trusty/universe amd64 Packages Get:5 http://archive.ubuntu.com trusty-updates/main Sources [195 kB] Get:6 http://archive.ubuntu.com trusty-updates/restricted Sources [2564 B] Get:7 http://archive.ubuntu.com trusty-updates/universe Sources [114 kB] Get:8 http://archive.ubuntu.com trusty-updates/main amd64 Packages [507 kB] Get:9 http://ppa.launchpad.net trusty Release.gpg [316 B] Get:10 http://archive.ubuntu.com trusty-updates/restricted amd64 Packages [9238 B] Get:11 http://archive.ubuntu.com trusty-updates/universe amd64 Packages [274 kB] Get:12 http://ppa.launchpad.net trusty Release [15.1 kB] Hit http://apt.typesafe.com unicorn/main amd64 Packages Get:13 http://archive.ubuntu.com trusty-security/main Sources [79.6 kB] Get:14 http://archive.ubuntu.com trusty-security/restricted Sources [2061 B] Get:15 http://archive.ubuntu.com trusty-security/universe Sources [21.9 kB] Get:16 http://archive.ubuntu.com trusty-security/main amd64 Packages [264 kB] Get:17 http://archive.ubuntu.com trusty-security/restricted amd64 Packages [8875 B] Get:18 http://archive.ubuntu.com trusty-security/universe amd64 Packages [101 kB] Get:19 http://ppa.launchpad.net trusty/main amd64 Packages [3325 B] Fetched 1727 kB in 2s (593 kB/s) Reading package lists... + sudo apt-get remove -y git Reading package lists... Building dependency tree... Reading state information... The following package was automatically installed and is no longer required: libnss3-1d Use 'apt-get autoremove' to remove it. The following packages will be REMOVED: git 0 upgraded, 0 newly installed, 1 to remove and 61 not upgraded. After this operation, 22.2 MB disk space will be freed. (Reading database ... 58051 files and directories currently installed.) Removing git (1:2.3.4-0ppa2~ubuntu14.04.1) ... + sudo apt-get install -y git Reading package lists... Building dependency tree... Reading state information... The following package was automatically installed and is no longer required: libnss3-1d Use 'apt-get autoremove' to remove it. The following extra packages will be installed: git-man Suggested packages: git-daemon-run git-daemon-sysvinit git-doc git-el git-email git-gui gitk gitweb git-arch git-cvs git-mediawiki git-svn The following NEW packages will be installed: git The following packages will be upgraded: git-man 1 upgraded, 1 newly installed, 0 to remove and 60 not upgraded. Need to get 5049 kB of archives. After this operation, 22.7 MB of additional disk space will be used. Get:1 http://ppa.launchpad.net/git-core/ppa/ubuntu/ trusty/main git-man all 1:2.4.0-0ppa1~ubuntu14.04.1 [1317 kB] Get:2 http://ppa.launchpad.net/git-core/ppa/ubuntu/ trusty/main git amd64 1:2.4.0-0ppa1~ubuntu14.04.1 [3733 kB] debconf: unable to initialize frontend: Dialog debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.) debconf: falling back to frontend: Readline debconf: unable to initialize frontend: Readline debconf: (This frontend requires a controlling tty.) debconf: falling back to frontend: Teletype dpkg-preconfigure: unable to re-open stdin: Fetched 5049 kB in 3s (1662 kB/s) (Reading database ... 57443 files and directories currently installed.) Preparing to unpack .../git-man_1%3a2.4.0-0ppa1~ubuntu14.04.1_all.deb ... Unpacking git-man (1:2.4.0-0ppa1~ubuntu14.04.1) over (1:2.3.4-0ppa2~ubuntu14.04.1) ... Selecting previously unselected package git. Preparing to unpack .../git_1%3a2.4.0-0ppa1~ubuntu14.04.1_amd64.deb ... Unpacking git (1:2.4.0-0ppa1~ubuntu14.04.1) ... Processing triggers for man-db (2.6.7.1-1ubuntu1) ... Setting up git-man (1:2.4.0-0ppa1~ubuntu14.04.1) ... Setting up git (1:2.4.0-0ppa1~ubuntu14.04.1) ... + 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.7.0 Installing json 1.8.2 Installing minitest 5.4.0 Installing thread_safe 0.3.5 Installing tzinfo 1.2.2 Installing activesupport 4.2.1 Installing builder 3.2.2 Installing erubis 2.7.0 Installing mini_portile 0.6.2 Installing nokogiri 1.6.6.2 Installing rails-deprecated_sanitizer 1.0.3 Installing rails-dom-testing 1.0.6 Installing loofah 2.0.1 Installing rails-html-sanitizer 1.0.2 Installing actionview 4.2.1 Installing rack 1.6.0 Installing rack-test 0.6.3 Installing actionpack 4.2.1 Installing ast 2.0.0 Installing multi_json 1.11.0 Installing unf_ext 0.0.7.1 Installing unf 0.1.4 Installing domain_name 0.5.24 Installing http-cookie 1.0.2 Installing mime-types 2.5 Installing netrc 0.10.3 Installing rest-client 1.8.0 Installing docile 1.1.5 Installing simplecov-html 0.10.0 Installing simplecov 0.10.0 Installing tins 1.5.1 Installing term-ansicolor 1.3.0 Installing thor 0.19.1 Installing coveralls 0.7.0 Installing diff-lcs 1.2.5 Installing gherkin 2.12.2 Installing multi_test 0.1.2 Installing cucumber 1.3.11 Using slop 3.6.0 Using hoc 1.0.snapshot from source at . Installing parser 2.2.2.2 Installing powerpack 0.0.9 Installing railties 4.2.1 Installing rainbow 2.0.0 Installing rdoc 3.11 Installing rspec-core 2.13.1 Installing rspec-expectations 2.13.0 Installing rspec-mocks 2.13.1 Installing rspec-rails 2.13.0 Installing ruby-progressbar 1.7.5 Installing rubocop 0.24.1 Installing rubocop-rspec 1.1.0 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 rm -rf coverage /usr/bin/ruby1.9.1 -I"lib:lib:test" -I"/var/lib/gems/1.9.1/gems/rake-10.4.2/lib" "/var/lib/gems/1.9.1/gems/rake-10.4.2/lib/rake/rake_test_loader.rb" "test/**/test_*.rb" 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_git.rb:24:in `<top (required)>' /var/lib/gems/1.9.1/gems/rake-10.4.2/lib/rake/rake_test_loader.rb:10:in `block (2 levels) in <main>' /var/lib/gems/1.9.1/gems/rake-10.4.2/lib/rake/rake_test_loader.rb:9:in `each' /var/lib/gems/1.9.1/gems/rake-10.4.2/lib/rake/rake_test_loader.rb:9:in `block in <main>' /var/lib/gems/1.9.1/gems/rake-10.4.2/lib/rake/rake_test_loader.rb:4:in `select' /var/lib/gems/1.9.1/gems/rake-10.4.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 59052 # Running: Checked out revision 0. A test.txt Adding test.txt Transmitting file data . Committed revision 1. Sending test.txt Transmitting file data . Committed revision 2. D test.txt Deleting test.txt Committed revision 3. Updating '.': At revision 3. .SInitialized empty Git repository in /tmp/test20150501-10882-sg3l2w/.git/ fatal: bad default revision 'HEAD' .Initialized empty Git repository in /tmp/test20150501-10882-1w0xydx/.git/ [master (root-commit) 6fdab3a] add line 1 file changed, 1 insertion(+) create mode 100644 test.txt [master 3f9d530] modify line 1 file changed, 1 insertion(+), 1 deletion(-) [master 882a789] delete line 1 file changed, 1 deletion(-) delete mode 100644 test.txt .Initialized empty Git repository in /tmp/test20150501-10882-pqaipb/.git/