+ set -e + set -o pipefail ++ dirname /tmp/rultor-09Lb/run.sh + cd /tmp/rultor-09Lb + echo 6209 + echo '1.56.2 4ed1abf' 1.56.2 4ed1abf + date Tue Jul 28 17:23:37 UTC 2015 + uptime 17:23:37 up 7 days, 16:04, 3 users, load average: 8.18, 8.01, 8.28 + head=git@github.com:yegor256/rultor-remote.git + head_branch=master + tag=0.4.1 + vars=('--env=head=git@github.com:yegor256/rultor-remote.git' '--env=head_branch=master' '--env=tag=0.4.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' ';') + squash=false + ff=default + rebase=false + container=yegor256_rultor-remote_8 + as_root=false + mkdir -p /home/rultor/.ssh + echo -e 'Host github.com\n\tStrictHostKeyChecking no\n' + chmod 600 /home/rultor/.ssh/config + git clone git@github.com:yegor256/rultor-remote.git repo Cloning into 'repo'... + 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' ';' + gpgconf --reload gpg-agent + gpg --keyserver hkp://pool.sks-keyservers.net --verbose --recv-keys 9AF0FA4C gpg: requesting key 9AF0FA4C from hkp server pool.sks-keyservers.net Version: SKS 1.1.5 gpg: armor header: Comment: Hostname: a.keyserver.pki.scientia.net gpg: armor header: gpg: pub 2048R/9AF0FA4C 2014-08-17 Rultor.com <gpg@rultor.com> gpg: key 9AF0FA4C: "Rultor.com <gpg@rultor.com>" not changed gpg: Total number processed: 1 gpg: unchanged: 1 + gpg --version gpg (GnuPG) 2.0.22 libgcrypt 1.5.3 Copyright (C) 2013 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Home: ~/.gnupg Supported algorithms: Pubkey: RSA, ELG, DSA Cipher: IDEA, 3DES, CAST5, BLOWFISH, AES, AES192, AES256, TWOFISH, CAMELLIA128, CAMELLIA192, CAMELLIA256 Hash: MD5, SHA1, RIPEMD160, SHA256, SHA384, SHA512, SHA224 Compression: Uncompressed, ZIP, ZLIB, BZIP2 ++ pwd ++ pwd + gpg --verbose --keyring=/tmp/rultor-09Lb/.gpg/pubring.gpg --secret-keyring=/tmp/rultor-09Lb/.gpg/secring.gpg --decrypt repo/rubygems.yml.asc Version: GnuPG v1 gpg: armor header: gpg: public key is 9A839C3A gpg: using subkey 9A839C3A instead of primary key 9AF0FA4C gpg: using subkey 9A839C3A instead of primary key 9AF0FA4C gpg: encrypted with 2048-bit RSA key, ID 9A839C3A, created 2014-08-17 "Rultor.com <gpg@rultor.com>" gpg: AES256 encrypted data gpg: original file name='rubygems.yml.enc' + gpg --no-tty --batch --verbose --decrypt --passphrase rultor-key:yegor256/rultor-remote rubygems.yml.enc Version: GnuPG v1 gpg: armor header: gpg: CAST5 encrypted data gpg: encrypted with 1 passphrase gpg: original file name='rubygems.yml' gpg: WARNING: message was not integrity protected + rm -rf rubygems.yml.enc + rm -rf .gpg + '[' -z 0.4.1 ']' + [[ 0.4.1 =~ ^[a-zA-Z0-9\\.\\-]+$ ]] + echo 'tag name is valid: "0.4.1"' tag name is valid: "0.4.1" + cd repo ++ git tag -l 0.4.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 ++ sed 's/ /\n/g' ++ tail -n 1 ++ uptime + load=8.28 ++ bc ++ echo 8.28 '>' 30 + '[' 0 -eq 1 ']' + echo 'load average is 8.28, low enough to run a new Docker container' load average is 8.28, 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 ... 70bdd020d16f: Pulling image (latest) from docker.io/yegor256/rultor 70bdd020d16f: Pulling image (latest) from docker.io/yegor256/rultor, endpoint: https://registry-1.docker.io/v1/ 70bdd020d16f: Pulling dependent layers 83e4dde6b9cf: Download complete b670fb0c7ecd: Download complete 29460ac93442: Download complete d2a0ecffe6fa: Download complete 491ff8b5b23b: Pulling metadata 491ff8b5b23b: Pulling fs layer 491ff8b5b23b: Download complete caa3ade744cb: Pulling metadata caa3ade744cb: Pulling fs layer caa3ade744cb: Download complete d648dac190c5: Pulling metadata d648dac190c5: Pulling fs layer d648dac190c5: Download complete c2ebd2f4146b: Pulling metadata c2ebd2f4146b: Pulling fs layer c2ebd2f4146b: Download complete a4d36e169afc: Pulling metadata a4d36e169afc: Pulling fs layer a4d36e169afc: Download complete 98ad19b8ae64: Pulling metadata 98ad19b8ae64: Pulling fs layer 98ad19b8ae64: Download complete 93eda7893287: Pulling metadata 93eda7893287: Pulling fs layer 93eda7893287: Download complete c86a2e4b531a: Pulling metadata c86a2e4b531a: Pulling fs layer c86a2e4b531a: Download complete 57cfb1508115: Pulling metadata 57cfb1508115: Pulling fs layer 57cfb1508115: Download complete df51502ebf5e: Pulling metadata df51502ebf5e: Pulling fs layer df51502ebf5e: Download complete 0cc32e900e8f: Pulling metadata 0cc32e900e8f: Pulling fs layer 0cc32e900e8f: Download complete 42a982133588: Pulling metadata 42a982133588: Pulling fs layer 42a982133588: Download complete 3e17cfd034d2: Pulling metadata 3e17cfd034d2: Pulling fs layer 3e17cfd034d2: Download complete 5fd5230169c2: Pulling metadata 5fd5230169c2: Pulling fs layer 5fd5230169c2: Download complete 76da5ce01467: Pulling metadata 76da5ce01467: Pulling fs layer 76da5ce01467: Download complete 88450c93229f: Pulling metadata 88450c93229f: Pulling fs layer 88450c93229f: Download complete 061de9650f85: Pulling metadata 061de9650f85: Pulling fs layer 061de9650f85: Download complete 7207cde75a56: Pulling metadata 7207cde75a56: Pulling fs layer 7207cde75a56: Download complete 0fe3d81a757c: Pulling metadata 0fe3d81a757c: Pulling fs layer 0fe3d81a757c: Download complete b75690d982d0: Pulling metadata b75690d982d0: Pulling fs layer b75690d982d0: Download complete d999f8f7327a: Pulling metadata d999f8f7327a: Pulling fs layer d999f8f7327a: Download complete ab38994c47a9: Pulling metadata ab38994c47a9: Pulling fs layer ab38994c47a9: Download complete d9f105c9b2f8: Pulling metadata d9f105c9b2f8: Pulling fs layer d9f105c9b2f8: Download complete c2d02f918775: Pulling metadata c2d02f918775: Pulling fs layer c2d02f918775: Download complete 1ebffff38b6b: Pulling metadata 1ebffff38b6b: Pulling fs layer 1ebffff38b6b: Download complete 77e5fc757998: Pulling metadata 77e5fc757998: Pulling fs layer 77e5fc757998: Download complete 5ea75de9c397: Pulling metadata 5ea75de9c397: Pulling fs layer 5ea75de9c397: Download complete fd56cb763300: Pulling metadata fd56cb763300: Pulling fs layer fd56cb763300: Download complete 66740f0d7018: Pulling metadata 66740f0d7018: Pulling fs layer 66740f0d7018: Download complete 52f83ea9cd5a: Pulling metadata 52f83ea9cd5a: Pulling fs layer 52f83ea9cd5a: Download complete 0a3d3e83978e: Pulling metadata 0a3d3e83978e: Pulling fs layer 0a3d3e83978e: Download complete 788de8581dec: Pulling metadata 788de8581dec: Pulling fs layer 788de8581dec: Download complete 60649bf83c1a: Pulling metadata 60649bf83c1a: Pulling fs layer 60649bf83c1a: Download complete 70bdd020d16f: Pulling metadata 70bdd020d16f: Pulling fs layer 70bdd020d16f: Download complete 70bdd020d16f: Download complete Status: Downloaded newer image for docker.io/yegor256/rultor:latest + grep --quiet '\syegor256_rultor-remote_8\s*$' + docker ps --filter=status=exited ++ pwd ++ pwd + docker run --rm -v /tmp/rultor-09Lb:/main --env=head=git@github.com:yegor256/rultor-remote.git --env=head_branch=master --env=tag=0.4.1 --privileged=true --memory=4g --cidfile=/tmp/rultor-09Lb/cid -w=/main --name=yegor256_rultor-remote_8 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/.gem /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/......... Fetching version metadata from https://rubygems.org/.. Resolving dependencies............... Installing rake 10.4.2 Installing i18n 0.7.0 Installing json 1.8.3 with native extensions Installing minitest 5.7.0 Installing thread_safe 0.3.5 Installing tzinfo 1.2.2 Installing activesupport 4.2.3 Installing builder 3.2.2 Installing erubis 2.7.0 Using mini_portile 0.6.2 Using nokogiri 1.6.6.2 Installing rails-deprecated_sanitizer 1.0.3 Installing rails-dom-testing 1.0.6 Installing loofah 2.0.2 Installing rails-html-sanitizer 1.0.2 Installing actionview 4.2.3 Installing rack 1.6.4 Installing rack-test 0.6.3 Installing actionpack 4.2.3 Installing activemodel 4.2.3 Installing ast 2.0.0 Installing parser 2.2.2.6 Installing astrolabe 1.3.1 Installing unf_ext 0.0.7.1 with native extensions Installing unf 0.1.4 Installing domain_name 0.5.24 Installing http-cookie 1.0.2 Installing mime-types 2.6.1 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.4 Installing term-ansicolor 1.3.2 Installing thor 0.19.1 Installing coveralls 0.8.2 Installing diff-lcs 1.2.5 Installing multi_json 1.11.2 Installing gherkin 2.12.2 with native extensions Installing multi_test 0.1.2 Installing cucumber 1.3.11 Installing powerpack 0.1.1 Installing railties 4.2.3 Installing rainbow 2.0.0 Installing rdoc 3.12.2 Installing rspec-expectations 2.99.2 Installing rspec-collection_matchers 1.1.2 Installing rspec-core 2.99.2 Installing rspec-mocks 2.99.4 Installing rspec-rails 2.99.0 Installing ruby-progressbar 1.7.5 Installing rubocop 0.32.1 Installing rubocop-rspec 1.3.0 Installing slop 3.6.0 Using rultor 1.0.snapshot from source at . Using bundler 1.10.6 Bundle complete! 9 Gemfile dependencies, 57 gems now installed. 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 1 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.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 31787 # 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/test20150728-2205-16rvh9e + gpg --version gpg (GnuPG) 1.4.16 Copyright (C) 2013 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Home: ~/.gnupg Supported algorithms: Pubkey: RSA, RSA-E, RSA-S, ELG-E, DSA Cipher: IDEA, 3DES, CAST5, BLOWFISH, AES, AES192, AES256, TWOFISH, CAMELLIA128, CAMELLIA192, CAMELLIA256 Hash: MD5, SHA1, RIPEMD160, SHA256, SHA384, SHA512, SHA224 Compression: Uncompressed, ZIP, ZLIB, BZIP2 + 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: pgpkeys.eu 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" . Finished in 1.730973s, 1.1554 runs/s, 0.5777 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) 0m4.681s Coverage report generated for Cucumber Features to /home/r/repo/coverage. 10 / 10 LOC (100.0%) covered. 33m[Coveralls] Outside the CI 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.4.1/g' lib/rultor/version.rb + gem build rultor.gemspec Successfully built RubyGem Name: rultor Version: 0.4.1 File: rultor-0.4.1.gem + chmod 0600 ../rubygems.yml + gem push rultor-0.4.1.gem --config-file ../rubygems.yml Pushing gem to https://rubygems.org... Successfully registered gem: rultor (0.4.1) + sudo gem install 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 pdd-0.14.2 3 gems installed Installing ri documentation for nokogiri-1.6.5... Installing ri documentation for ruby-filemagic-0.6.1... Installing ri documentation for pdd-0.14.2... Installing RDoc documentation for nokogiri-1.6.5... Installing RDoc documentation for ruby-filemagic-0.6.1... Installing RDoc documentation for pdd-0.14.2... ++ pwd + pdd --source=/home/r/repo --verbose --file=rultor-remote.xml INFO: "my version is 0.14.2" INFO: "Ruby version is 1.9.3 at x86_64-linux" INFO: "reading /home/r/repo" INFO: "61 file(s) found" INFO: "reading Gemfile..." INFO: "reading Gemfile.lock..." INFO: "reading LICENSE.txt..." INFO: "reading README.md..." INFO: "reading Rakefile..." INFO: "reading bin/rultor..." INFO: "reading coverage/assets/0.10.0/application.css..." INFO: "reading coverage/assets/0.10.0/application.js..." INFO: "reading coverage/index.html..." INFO: "reading cucumber.yml..." INFO: "reading features/cli/encrypt.feature..." INFO: "reading features/cli/help.feature..." INFO: "reading features/cli/version.feature..." INFO: "reading features/gem_package.feature..." INFO: "reading features/step_definitions/steps.rb..." INFO: "reading features/support/env.rb..." INFO: "reading lib/rultor.rb..." INFO: "reading lib/rultor/encrypt.rb..." INFO: "reading lib/rultor/version.rb..." INFO: "reading rultor.gemspec..." INFO: "reading test/test_encrypt.rb..." INFO: "reading test/test_rultor.rb..." + s3cmd --no-progress put rultor-remote.xml --config=../s3cfg s3://pdd.teamed.io/rltor-remote.xml WARNING: Module python-magic is not available. Guessing MIME types based on file extensions. File 'rultor-remote.xml' stored as 's3://pdd.teamed.io/rltor-remote.xml' (278 bytes in 0.1 seconds, 2.88 kB/s) [1 of 1] + mv /home/r/repo . ++ whoami + chown -R root repo + '[' -n '' ']' ++ whoami + sudo chown -R rultor repo + cd repo + git checkout __rultor Already on '__rultor' M lib/rultor/version.rb + git tag 0.4.1 -m '0.4.1: tagged by rultor.com' + git reset --hard HEAD is now at f3b97a7 #8 rake moved into dev scope + git clean -fd Removing rultor-remote.xml + git checkout master Switched to branch 'master' + git branch -D __rultor Deleted branch __rultor (was f3b97a7). + git push --all origin Everything up-to-date + git push --tags origin To git@github.com:yegor256/rultor-remote.git * [new tag] 0.4.1 -> 0.4.1