+ set -e + set -o pipefail ++ dirname /tmp/rultor-wOGZ/run.sh + cd /tmp/rultor-wOGZ + echo 15300 + echo '1.40.4 aced718' 1.40.4 aced718 + date Fri Nov 7 14:00:49 CET 2014 + uptime 14:00:49 up 8 days, 19:22, 0 users, load average: 0.25, 0.28, 0.19 + head=git@github.com:yegor256/rultor-remote.git + head_branch=master + tag=0.3.1 + vars=('--env=head=git@github.com:yegor256/rultor-remote.git' '--env=head_branch=master' '--env=tag=0.3.1') + image=yegor256/rultor + directory= + scripts=('sudo bundle install' ';' 'sudo apt-get install -y bcrypt' ';' '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' ';') + container=yegor256_rultor-remote_4 + as_root=false + git clone --branch=master --depth=10 git@github.com:yegor256/rultor-remote.git repo Initialized empty Git repository in /tmp/rultor-wOGZ/repo/.git/ + cd repo + git config user.email me@rultor.com + git config user.name rultor + '[' -z 'sudo bundle install' ']' + cd .. + cat + '[' false = true ']' + cat + chmod a+x entry.sh + cat + echo 'sudo bundle install' ';' 'sudo apt-get install -y bcrypt' ';' 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.3.1 ']' + cd repo ++ git tag -l 0.3.1 + '[' ']' + 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 ++ awk '{print $12}' ++ cut -d , -f 1 + load=0.19 ++ echo 0.19 '>' 8 ++ bc + '[' 0 -eq 1 ']' + echo 'load average is 0.19, low enough to run a new Docker container' load average is 0.19, low enough to run a new Docker container + break + cd .. + '[' -n '' ']' + use_image=yegor256/rultor + docker pull yegor256/rultor Pulling repository yegor256/rultor ++ pwd ++ pwd + docker run --rm -v /tmp/rultor-wOGZ:/main --env=head=git@github.com:yegor256/rultor-remote.git --env=head_branch=master --env=tag=0.3.1 --memory=4g --cidfile=/tmp/rultor-wOGZ/cid -w=/main --name=yegor256_rultor-remote_4 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.7 Installing builder 3.2.2 Installing erubis 2.7.0 Installing actionview 4.1.7 Installing rack 1.5.2 Installing rack-test 0.6.2 Installing actionpack 4.1.7 Installing activemodel 4.1.7 Installing ast 2.0.0 Using slop 3.6.0 Installing parser 2.2.0.pre.7 Installing astrolabe 1.3.0 Installing multi_json 1.10.1 Installing mime-types 2.4.3 Installing netrc 0.8.0 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.7 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.7.0 Installing rubocop 0.27.0 Installing rubocop-rspec 1.2.1 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! + sudo apt-get install -y bcrypt Reading package lists... Building dependency tree... Reading state information... bcrypt is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. + 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 31160 # Running: + set -e + file=secret.txt + enc=secret.txt.enc + [ -e secret.txt.enc ] + asc=secret.txt.asc + [ -e secret.txt.asc ] + cd /tmp/test20141107-2133-1th4ytg + gpg --symmetric --armor --verbose --batch --no-tty --passphrase rultor-key:test -o secret.txt.enc secret.txt gpg: directory `/home/r/.gnupg' created gpg: new configuration file `/home/r/.gnupg/gpg.conf' created gpg: WARNING: options in `/home/r/.gnupg/gpg.conf' are not yet active during this run gpg: keyring `/home/r/.gnupg/pubring.gpg' created gpg: using cipher CAST5 gpg: writing to `secret.txt.enc' + gpg --keyserver hkp://pool.sks-keyservers.net --verbose --recv-keys 9AF0FA4C gpg: keyring `/home/r/.gnupg/secring.gpg' created gpg: requesting key 9AF0FA4C from hkp server pool.sks-keyservers.net gpg: armor header: Version: SKS 1.1.5 gpg: armor header: Comment: Hostname: keyserver.secretresearchfacility.com gpg: pub 2048R/9AF0FA4C 2014-08-17 Rultor.com <gpg@rultor.com> gpg: /home/r/.gnupg/trustdb.gpg: trustdb created gpg: using PGP trust model gpg: key 9AF0FA4C: public key "Rultor.com <gpg@rultor.com>" imported gpg: Total number processed: 1 gpg: imported: 1 (RSA: 1) + gpg --trust-model always --output secret.txt.asc --batch --no-tty --armor --encrypt --verbose --recipient 9AF0FA4C secret.txt.enc gpg: using subkey 9A839C3A instead of primary key 9AF0FA4C gpg: No trust check due to `--trust-model always' option gpg: reading from `secret.txt.enc' gpg: writing to `secret.txt.asc' gpg: RSA/AES256 encrypted for: "9A839C3A Rultor.com <gpg@rultor.com>" + rm -f secret.txt.enc "secret.txt encrypted" ."log works" . Finished in 0.189419s, 10.5586 runs/s, 5.2793 assertions/s. 2 runs, 1 assertions, 0 failures, 0 errors, 0 skips /usr/bin/ruby1.9.1 -S bundle exec cucumber --profile travis "logging to stdout" Using the travis profile... ................ 5 scenarios (5 passed) 16 steps (16 passed) 0m3.915s Coverage report generated for Cucumber Features to /home/r/repo/coverage. 10 / 10 LOC (100.0%) covered. 33m[Coveralls] Outside the Travis environment, not sending data.0m Running RuboCop... Inspecting 11 files ........... 11 files inspected, no offenses detected + rm -rf '*.gem' + sed -i 's/1\.0\.snapshot/0.3.1/g' lib/rultor/version.rb + gem build rultor.gemspec Successfully built RubyGem Name: rultor Version: 0.3.1 File: rultor-0.3.1.gem + chmod 0600 ../rubygems.yml + gem push rultor-0.3.1.gem --config-file ../rubygems.yml Pushing gem to https://rubygems.org... Successfully registered gem: rultor (0.3.1) + sudo gem install pdd Building native extensions. This could take a while... unable to convert U+2019 from UTF-8 to US-ASCII for lib/nokogiri.rb, skipping unable to convert "\xE5" to UTF-8 in conversion from ASCII-8BIT to UTF-8 to US-ASCII for CHANGELOG.ja.rdoc, skipping unable to convert "\xC3" to UTF-8 in conversion from ASCII-8BIT to UTF-8 to US-ASCII for CHANGELOG.rdoc, skipping unable to convert "\xE9" to UTF-8 in conversion from ASCII-8BIT to UTF-8 to US-ASCII for README.ja.rdoc, skipping unable to convert "\xE9" to UTF-8 in conversion from ASCII-8BIT to UTF-8 to US-ASCII for README.rdoc, skipping unable to convert "\xE2" to UTF-8 in conversion from ASCII-8BIT to UTF-8 to US-ASCII for ext/nokogiri/xml_node_set.c, skipping unable to convert "\xC3" to UTF-8 in conversion from ASCII-8BIT to UTF-8 to US-ASCII for CHANGES, skipping unable to convert "\xC3" to UTF-8 in conversion from ASCII-8BIT to UTF-8 to US-ASCII for doc/release_notes/rake-0.8.2.rdoc, skipping unable to convert "\xC3" to UTF-8 in conversion from ASCII-8BIT to UTF-8 to US-ASCII for doc/release_notes/rake-0.8.3.rdoc, skipping unable to convert "\xC3" to UTF-8 in conversion from ASCII-8BIT to UTF-8 to US-ASCII for doc/release_notes/rake-0.9.0.rdoc, skipping unable to convert "\xC3" to UTF-8 in conversion from ASCII-8BIT to UTF-8 to US-ASCII for doc/release_notes/rake-0.9.1.rdoc, skipping unable to convert "\xC3" to UTF-8 in conversion from ASCII-8BIT to UTF-8 to US-ASCII for doc/release_notes/rake-0.9.2.2.rdoc, skipping unable to convert "\xC3" to UTF-8 in conversion from ASCII-8BIT to UTF-8 to US-ASCII for doc/release_notes/rake-0.9.2.rdoc, skipping unable to convert "\xC3" to UTF-8 in conversion from ASCII-8BIT to UTF-8 to US-ASCII for doc/release_notes/rake-0.9.3.rdoc, skipping unable to convert "\xC3" to UTF-8 in conversion from ASCII-8BIT to UTF-8 to US-ASCII for doc/release_notes/rake-0.9.4.rdoc, skipping unable to convert "\xC3" to UTF-8 in conversion from ASCII-8BIT to UTF-8 to US-ASCII for doc/release_notes/rake-0.9.5.rdoc, skipping unable to convert "\xC3" to UTF-8 in conversion from ASCII-8BIT to UTF-8 to US-ASCII for doc/release_notes/rake-0.9.6.rdoc, skipping unable to convert "\xC3" to UTF-8 in conversion from ASCII-8BIT to UTF-8 to US-ASCII for doc/release_notes/rake-10.0.0.rdoc, skipping unable to convert "\xC3" to UTF-8 in conversion from ASCII-8BIT to UTF-8 to US-ASCII for doc/release_notes/rake-10.0.1.rdoc, skipping unable to convert "\xC3" to UTF-8 in conversion from ASCII-8BIT to UTF-8 to US-ASCII for doc/release_notes/rake-10.0.2.rdoc, skipping unable to convert "\xC3" to UTF-8 in conversion from ASCII-8BIT to UTF-8 to US-ASCII for doc/release_notes/rake-10.0.3.rdoc, skipping unable to convert U+2019 from UTF-8 to US-ASCII for lib/nokogiri.rb, skipping unable to convert "\xE5" to UTF-8 in conversion from ASCII-8BIT to UTF-8 to US-ASCII for CHANGELOG.ja.rdoc, skipping unable to convert "\xC3" to UTF-8 in conversion from ASCII-8BIT to UTF-8 to US-ASCII for CHANGELOG.rdoc, skipping unable to convert "\xE9" to UTF-8 in conversion from ASCII-8BIT to UTF-8 to US-ASCII for README.ja.rdoc, skipping unable to convert "\xE9" to UTF-8 in conversion from ASCII-8BIT to UTF-8 to US-ASCII for README.rdoc, skipping unable to convert "\xE2" to UTF-8 in conversion from ASCII-8BIT to UTF-8 to US-ASCII for ext/nokogiri/xml_node_set.c, skipping unable to convert "\xC3" to UTF-8 in conversion from ASCII-8BIT to UTF-8 to US-ASCII for CHANGES, skipping unable to convert "\xC3" to UTF-8 in conversion from ASCII-8BIT to UTF-8 to US-ASCII for doc/release_notes/rake-0.8.2.rdoc, skipping unable to convert "\xC3" to UTF-8 in conversion from ASCII-8BIT to UTF-8 to US-ASCII for doc/release_notes/rake-0.8.3.rdoc, skipping unable to convert "\xC3" to UTF-8 in conversion from ASCII-8BIT to UTF-8 to US-ASCII for doc/release_notes/rake-0.9.0.rdoc, skipping unable to convert "\xC3" to UTF-8 in conversion from ASCII-8BIT to UTF-8 to US-ASCII for doc/release_notes/rake-0.9.1.rdoc, skipping unable to convert "\xC3" to UTF-8 in conversion from ASCII-8BIT to UTF-8 to US-ASCII for doc/release_notes/rake-0.9.2.2.rdoc, skipping unable to convert "\xC3" to UTF-8 in conversion from ASCII-8BIT to UTF-8 to US-ASCII for doc/release_notes/rake-0.9.2.rdoc, skipping unable to convert "\xC3" to UTF-8 in conversion from ASCII-8BIT to UTF-8 to US-ASCII for doc/release_notes/rake-0.9.3.rdoc, skipping unable to convert "\xC3" to UTF-8 in conversion from ASCII-8BIT to UTF-8 to US-ASCII for doc/release_notes/rake-0.9.4.rdoc, skipping unable to convert "\xC3" to UTF-8 in conversion from ASCII-8BIT to UTF-8 to US-ASCII for doc/release_notes/rake-0.9.5.rdoc, skipping unable to convert "\xC3" to UTF-8 in conversion from ASCII-8BIT to UTF-8 to US-ASCII for doc/release_notes/rake-0.9.6.rdoc, skipping unable to convert "\xC3" to UTF-8 in conversion from ASCII-8BIT to UTF-8 to US-ASCII for doc/release_notes/rake-10.0.0.rdoc, skipping unable to convert "\xC3" to UTF-8 in conversion from ASCII-8BIT to UTF-8 to US-ASCII for doc/release_notes/rake-10.0.1.rdoc, skipping unable to convert "\xC3" to UTF-8 in conversion from ASCII-8BIT to UTF-8 to US-ASCII for doc/release_notes/rake-10.0.2.rdoc, skipping unable to convert "\xC3" to UTF-8 in conversion from ASCII-8BIT to UTF-8 to US-ASCII for doc/release_notes/rake-10.0.3.rdoc, skipping Successfully installed mini_portile-0.5.3 Successfully installed nokogiri-1.6.0 Successfully installed rake-10.1.0 Successfully installed pdd-0.7.3 4 gems installed Installing ri documentation for mini_portile-0.5.3... Installing ri documentation for nokogiri-1.6.0... Installing ri documentation for rake-10.1.0... Installing ri documentation for pdd-0.7.3... Installing RDoc documentation for mini_portile-0.5.3... Installing RDoc documentation for nokogiri-1.6.0... Installing RDoc documentation for rake-10.1.0... Installing RDoc documentation for pdd-0.7.3... ++ pwd + pdd --source=/home/r/repo --verbose --file=rultor-remote.xml INFO: "my version is 0.7.3" INFO: "reading /home/r/repo" INFO: "60 file(s) found" + s3cmd --no-progress put rultor-remote.xml --config=../s3cfg s3://pdd.teamed.io/rltor-remote.xml File 'rultor-remote.xml' stored as 's3://pdd.teamed.io/rltor-remote.xml' (275 bytes in 0.6 seconds, 477.39 B/s) [1 of 1] + mv /home/r/repo . ++ whoami + chown -R root repo + '[' -n '' ']' ++ whoami + sudo chown -R rultor repo + cd repo + git tag 0.3.1 -m '0.3.1: tagged by rultor.com' + git push origin 0.3.1 To git@github.com:yegor256/rultor-remote.git * [new tag] 0.3.1 -> 0.3.1