+ set -e + set -o pipefail ++ dirname ./run.sh + cd . + echo 25980 + echo '1.61.2 4672e9e' 1.61.2 4672e9e + date Wed Feb 3 05:43:11 UTC 2016 + uptime 05:43:11 up 10:01, 0 users, load average: 8.42, 10.30, 11.39 + head=git@github.com:yegor256/rultor-remote.git + head_branch=master + tag=0.4.2 + vars=('--env=head=git@github.com:yegor256/rultor-remote.git' '--env=head_branch=master' '--env=tag=0.4.2') + 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_9 + 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: vm-keyserver.spline.inf.fu-berlin.de 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-dSMX/.gpg/pubring.gpg --secret-keyring=/tmp/rultor-dSMX/.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.2 ']' + [[ 0.4.2 =~ ^[a-zA-Z0-9\\.\\-]+$ ]] + echo 'tag name is valid: "0.4.2"' tag name is valid: "0.4.2" + cd repo ++ git tag -l 0.4.2 + '[' ']' + 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=11.37 ++ echo 11.37 '>' 30 ++ bc + '[' 0 -eq 1 ']' + echo 'load average is 11.37, low enough to run a new Docker container' load average is 11.37, low enough to run a new Docker container + break + cd .. + '[' -n '' ']' + use_image=yegor256/rultor + docker pull yegor256/rultor Using default tag: latest Trying to pull repository docker.io/yegor256/rultor ... latest: Pulling from yegor256/rultor f15ce52fc004: Already exists c4fae638e7ce: Already exists a4c5be5b6e59: Already exists 8693db7e8a00: Already exists 6e677cd5fc28: Already exists 4032e00de156: Already exists 232d16c203b7: Already exists f80ea21cefd0: Already exists ffcdcaefed6e: Already exists e5caef28714c: Already exists 19b9a2535f89: Already exists 92428126fc83: Already exists c9312ef9773b: Already exists 7bdc048d83ed: Already exists 9df2547f8f6f: Already exists 669eb2a57c21: Already exists f6d2c5b85a79: Already exists fd6ca8486b82: Already exists 5224b2d8c9ac: Already exists ff0b6a010cad: Already exists a25c40adb807: Already exists d6483f644467: Already exists 3ea5273f196b: Already exists 6f05f31845f0: Already exists 5ca4afe6c93d: Already exists 2a87597a3bb9: Already exists 94a58bc83a56: Already exists 324d85b7d85d: Already exists 09135a834b6f: Already exists bec9427cd0c7: Already exists 5f85e0bb8cb2: Already exists 3bd64445ab8a: Already exists 686cc1378319: Already exists e7152fa39305: Already exists aeb26a2f03c4: Already exists d7b409ff086c: Already exists 94df4c469dca: Already exists b4b7bd9fef2b: Already exists 55179761dfea: Already exists 74b4a156918a: Already exists a55d7501df2d: Already exists 23934b5ab70e: Already exists 54c3fbdf6438: Already exists a8a0fdbafa46: Already exists ad3971e6e077: Already exists 2994b820a404: Already exists a9be65965e79: Already exists 0cddb3c8af34: Already exists 6033eb7fa4ef: Already exists 09c232ed455e: Already exists 9cfd254c89b0: Already exists ba458d5ed940: Already exists 47f41da63b2d: Already exists Digest: sha256:f228026dee42563633a5a2b62ac7e33936b4de943f21c76259027fe1bf445b78 Status: Image is up to date for docker.io/yegor256/rultor:latest + docker ps --filter=status=exited + grep --quiet '\syegor256_rultor-remote_9\s*$' ++ pwd ++ pwd + docker run --rm -v /tmp/rultor-dSMX:/main --env=head=git@github.com:yegor256/rultor-remote.git --env=head_branch=master --env=tag=0.4.2 --privileged=true --hostname=docker --memory=6g --memory-swap=16g --oom-kill-disable --cidfile=/tmp/rultor-dSMX/cid -w=/main --name=yegor256_rultor-remote_9 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/.composer /root/.gem /root/.java /root/.m2 /root/.npm /root/.profile /root/texmf /root/.texmf-var /root/tmp /home/r + cp -R ./cid ./end.sh ./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/... Fetching dependency metadata from https://rubygems.org/.. Resolving dependencies.................... Using rake 10.4.2 Installing i18n 0.7.0 Using json 1.8.3 Installing minitest 5.4.0 Installing thread_safe 0.3.5 Installing builder 3.2.2 Installing erubis 2.7.0 Using mini_portile2 2.0.0 Installing rack 1.6.4 Installing ast 2.2.0 Installing multi_json 1.11.2 Installing unf_ext 0.0.7.1 with native extensions Installing mime-types 2.99 Installing netrc 0.11.0 Installing docile 1.1.5 Installing simplecov-html 0.10.0 Installing tins 1.8.2 Installing thor 0.19.1 Installing diff-lcs 1.2.5 Installing multi_test 0.1.2 Installing powerpack 0.0.9 Installing rainbow 2.1.0 Installing rspec-core 2.13.1 Installing rspec-mocks 2.13.1 Installing ruby-progressbar 1.7.5 Installing slop 3.6.0 Using bundler 1.11.2 Installing rdoc 3.11 Installing tzinfo 1.2.2 Using nokogiri 1.6.7.2 Installing rack-test 0.6.3 Installing parser 2.3.0.2 Installing gherkin 2.12.2 with native extensions Installing unf 0.1.4 Installing simplecov 0.11.1 Installing term-ansicolor 1.3.2 Installing rspec-expectations 2.13.0 Using rultor 1.0.snapshot from source at `.` Installing activesupport 4.2.5.1 Installing loofah 2.0.3 Installing rubocop 0.24.1 Installing cucumber 1.3.11 Installing domain_name 0.5.20160128 Installing rails-deprecated_sanitizer 1.0.3 Installing rails-html-sanitizer 1.0.3 Installing rubocop-rspec 1.1.0 Installing http-cookie 1.0.2 Installing rails-dom-testing 1.0.7 Installing rest-client 1.8.0 Installing actionview 4.2.5.1 Installing coveralls 0.7.0 Installing actionpack 4.2.5.1 Installing railties 4.2.5.1 Installing rspec-rails 2.13.0 Bundle complete! 9 Gemfile dependencies, 54 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 0 not upgraded. + rake /home/r/repo/Rakefile:36: warning: already initialized constant CLEAN /var/lib/gems/2.2.0/gems/rake-10.5.0/lib/rake/clean.rb:61: warning: previous definition of CLEAN was here Run options: --seed 74 # Running: "log works" .+ set -e + file=/tmp/test20160203-1974-7sqjd0/secret.txt + asc=/tmp/test20160203-1974-7sqjd0/secret.txt.asc + [ -e /tmp/test20160203-1974-7sqjd0/secret.txt.asc ] + mktemp + tmp=/tmp/tmp.qzRifvv2a1 + rm -f /tmp/tmp.qzRifvv2a1 + 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 /tmp/tmp.qzRifvv2a1 /tmp/test20160203-1974-7sqjd0/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 `/tmp/tmp.qzRifvv2a1' + 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: keys.jhcloos.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 /tmp/test20160203-1974-7sqjd0/secret.txt.asc --batch --no-tty --armor --encrypt --verbose --recipient 9AF0FA4C /tmp/tmp.qzRifvv2a1 gpg: using subkey 9A839C3A instead of primary key 9AF0FA4C gpg: No trust check due to `--trust-model always' option gpg: reading from `/tmp/tmp.qzRifvv2a1' gpg: writing to `/tmp/test20160203-1974-7sqjd0/secret.txt.asc' gpg: RSA/AES256 encrypted for: "9A839C3A Rultor.com <gpg@rultor.com>" + rm -f /tmp/tmp.qzRifvv2a1 "secret.txt encrypted into /tmp/test20160203-1974-7sqjd0/secret.txt.asc (742 bytes)" . Finished in 0.489915s, 4.0823 runs/s, 2.0412 assertions/s. 2 runs, 1 assertions, 0 failures, 0 errors, 0 skips /usr/bin/ruby2.2 -S bundle exec cucumber --profile travis /var/lib/gems/2.2.0/gems/cucumber-1.3.11/lib/cucumber/ast/step.rb:80: warning: circular argument reference - name /home/r/repo/.simplecov:42:in `<top (required)>': [DEPRECATION] ::[] is deprecated. Use ::new instead. "logging to stdout" Using the travis profile... ................ 5 scenarios (5 passed) 16 steps (16 passed) 0m4.801s 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 10 files .......... 10 files inspected, no offenses detected + rm -rf '*.gem' + sed -i 's/1\.0\.snapshot/0.4.2/g' lib/rultor/version.rb + gem build rultor.gemspec Successfully built RubyGem Name: rultor Version: 0.4.2 File: rultor-0.4.2.gem + chmod 0600 ../rubygems.yml + gem push rultor-0.4.2.gem --config-file ../rubygems.yml Pushing gem to https://rubygems.org... Successfully registered gem: rultor (0.4.2) + sudo gem install pdd Building native extensions. This could take a while... Successfully installed nokogiri-1.6.7.1 Building native extensions. This could take a while... ruby-filemagic-0.7.1 [2015-10-27]: * List default lib and header directories (pull request #18 by Adam Wróbel). Successfully installed ruby-filemagic-0.7.1 Successfully installed pdd-0.15.4 Parsing documentation for nokogiri-1.6.7.1 Installing ri documentation for nokogiri-1.6.7.1 Parsing documentation for ruby-filemagic-0.7.1 Installing ri documentation for ruby-filemagic-0.7.1 Parsing documentation for pdd-0.15.4 Installing ri documentation for pdd-0.15.4 Done installing documentation for nokogiri, ruby-filemagic, pdd after 8 seconds 3 gems installed ++ pwd + pdd --source=/home/r/repo --verbose --file=rultor-remote.xml INFO: "my version is 0.15.4" INFO: "Ruby version is 2.2.4 at x86_64-linux-gnu" INFO: "reading /home/r/repo" INFO: "64 file(s) found" INFO: "reading Gemfile..." INFO: "reading Gemfile.lock..." INFO: "reading LICENSE.txt..." INFO: "reading PUZZLES.md..." INFO: "reading README.md..." INFO: "reading Rakefile..." INFO: "reading TEAM.md..." INFO: "reading appveyor.yml..." 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, 5.02 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.2 -m '0.4.2: tagged by rultor.com' + git reset --hard HEAD is now at e303ee4 #9 run full cycle in travis + git clean -fd Removing rultor-remote.xml + git checkout master Switched to branch 'master' + git branch -D __rultor Deleted branch __rultor (was e303ee4). + git push --all origin Everything up-to-date + git push --tags origin To git@github.com:yegor256/rultor-remote.git * [new tag] 0.4.2 -> 0.4.2 container c8ac81516f0c4817d542dfb7fd9a4f71c15156c18101464ef3f0a2b08f6bbd0b is dead Wed Feb 3 05:48:53 UTC 2016