+ set -e + set -o pipefail ++ dirname ./run.sh + cd . + echo 22785 + echo '1.58.1 0b71b68' 1.58.1 0b71b68 + date Thu Nov 26 17:46:27 UTC 2015 + uptime 17:46:27 up 85 days, 6:09, 0 users, load average: 4.36, 3.01, 4.41 + head=git@github.com:teamed/est.git + head_branch=master + tag=0.3.1 + vars=('--env=head=git@github.com:teamed/est.git' '--env=head_branch=master' '--env=tag=0.3.1') + image=yegor256/rultor + directory= + scripts=('sudo gem install pdd' ';' 'sudo gem install est' ';' 'sudo bundle install' ';' 'rake' ';' 'rm -rf *.gem' ';' 'sed -i "s/1\.0\.snapshot/${tag}/g" lib/est/version.rb' ';' 'git add lib/est/version.rb' ';' 'git commit -m "version set to ${tag}"' ';' 'gem build est.gemspec' ';' 'chmod 0600 ../rubygems.yml' ';' 'gem push *.gem --config-file ../rubygems.yml' ';' 'pdd --source=$(pwd) --verbose --file=est.xml' ';' 's3cmd --no-progress put est.xml --config=../s3cfg s3://pdd.teamed.io/est.xml' ';' 's3cmd --no-progress put assets/est.xsd --acl-public --config=../s3cfg s3://est-xsd.teamed.io/${tag}.xsd' ';' 's3cmd --no-progress put assets/est.xsl --acl-public --config=../s3cfg s3://est-xsl.teamed.io/${tag}.xsl' ';' 'est --dir=./est --format=xml --file=est-estimate.xml' ';' 's3cmd --no-progress put est-estimate.xml --config=../s3cfg s3://est.teamed.io/est.xml' ';') + squash=false + ff=default + rebase=false + container=teamed_est_12 + 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:teamed/est.git repo Cloning into 'repo'... + cd repo + git config user.email me@rultor.com + git config user.name rultor + '[' -z 'sudo gem install pdd' ']' + cd .. + cat + '[' false = true ']' + cat + chmod a+x entry.sh + cat + echo 'sudo gem install pdd' ';' 'sudo gem install est' ';' 'sudo bundle install' ';' rake ';' 'rm -rf *.gem' ';' 'sed -i "s/1\.0\.snapshot/${tag}/g" lib/est/version.rb' ';' 'git add lib/est/version.rb' ';' 'git commit -m "version set to ${tag}"' ';' 'gem build est.gemspec' ';' 'chmod 0600 ../rubygems.yml' ';' 'gem push *.gem --config-file ../rubygems.yml' ';' 'pdd --source=$(pwd) --verbose --file=est.xml' ';' 's3cmd --no-progress put est.xml --config=../s3cfg s3://pdd.teamed.io/est.xml' ';' 's3cmd --no-progress put assets/est.xsd --acl-public --config=../s3cfg s3://est-xsd.teamed.io/${tag}.xsd' ';' 's3cmd --no-progress put assets/est.xsl --acl-public --config=../s3cfg s3://est-xsl.teamed.io/${tag}.xsl' ';' 'est --dir=./est --format=xml --file=est-estimate.xml' ';' 's3cmd --no-progress put est-estimate.xml --config=../s3cfg s3://est.teamed.io/est.xml' ';' + rm -rf .gpg + '[' -z 0.3.1 ']' + [[ 0.3.1 =~ ^[a-zA-Z0-9\\.\\-]+$ ]] + echo 'tag name is valid: "0.3.1"' tag name is valid: "0.3.1" + cd repo ++ git tag -l 0.3.1 + '[' ']' + 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 ++ sed 's/ /\n/g' ++ uptime ++ tail -n 1 + load=4.41 ++ bc ++ echo 4.41 '>' 30 + '[' 0 -eq 1 ']' + echo 'load average is 4.41, low enough to run a new Docker container' load average is 4.41, 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 ... 12d4a79a97c8: Pulling image (latest) from docker.io/yegor256/rultor 12d4a79a97c8: Pulling image (latest) from docker.io/yegor256/rultor, endpoint: https://registry-1.docker.io/v1/ 12d4a79a97c8: Pulling dependent layers 2332d8973c93: Download complete ea358092da77: Download complete a467a7c6794f: Download complete ca4d7b1b9a51: Download complete 78ba5bb43564: Download complete 5f7e3f85146c: Download complete dfa84e6a6ac7: Download complete 78c1bff78e87: Download complete d7375c9d96b2: Download complete da4d82fdd8e2: Download complete f2069d4eb1ef: Download complete 23c87f09e421: Download complete 1bbc05a95624: Download complete 1052c4bbe7ea: Download complete 12d01e9983ca: Download complete 31f0c64fe7d9: Download complete 6b4a2c8aab47: Download complete 52a56c340c9a: Download complete 9eda6bfb5a6b: Download complete ef57e1a8ca4e: Download complete c0d30e9c23a2: Download complete 81cd586bc6a7: Download complete ddda87c2c415: Download complete 9aef252532c6: Download complete c439c64b04ea: Download complete d355fd2e9973: Download complete e00165170b8b: Download complete 77d476910630: Download complete a10ec509399b: Download complete c139e2e59cc8: Download complete 783cbc282571: Download complete 671ad6a98129: Download complete 9bc7771c9255: Download complete 8eb3e00a5b76: Download complete 0597dbc0636b: Download complete c6e04d7c2976: Download complete 64f4bef3aef4: Download complete 94ecfd2ed5bd: Download complete a06619724961: Download complete 9a110d30c344: Download complete bac91a5a22c2: Download complete 067b0d9a4143: Download complete 962340ae22f3: Download complete 729abf00483b: Download complete 5192499919c2: Download complete 09bae963a002: Download complete 2575bf8b285c: Download complete 5e4070fb3cd6: Download complete 9e2c0a855a35: Download complete 0002eb07ca19: Download complete 7f5a4cf1b976: Download complete f431f196e4a5: Download complete 12d4a79a97c8: Download complete 12d4a79a97c8: Download complete Status: Image is up to date for docker.io/yegor256/rultor:latest + grep --quiet '\steamed_est_12\s*$' + docker ps --filter=status=exited ++ pwd ++ pwd + docker run --rm -v /tmp/rultor-Tukj:/main --env=head=git@github.com:teamed/est.git --env=head_branch=master --env=tag=0.3.1 --privileged=true --hostname=docker --memory=6g --cidfile=/tmp/rultor-Tukj/cid -w=/main --name=teamed_est_12 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/.npm /root/.profile /root/texmf /root/.texmf-var /root/tmp /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 pdd Successfully installed slop-3.6.0 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 ruby-filemagic-0.6.1 Building native extensions. This could take a while... Successfully installed nokogiri-1.6.5 Successfully installed pdd-0.15 Parsing documentation for slop-3.6.0 Installing ri documentation for slop-3.6.0 Parsing documentation for ruby-filemagic-0.6.1 Installing ri documentation for ruby-filemagic-0.6.1 Parsing documentation for nokogiri-1.6.5 Installing ri documentation for nokogiri-1.6.5 Parsing documentation for pdd-0.15 Installing ri documentation for pdd-0.15 Done installing documentation for slop, ruby-filemagic, nokogiri, pdd after 8 seconds 4 gems installed + sudo gem install est Successfully installed est-0.3 Parsing documentation for est-0.3 Installing ri documentation for est-0.3 Done installing documentation for est after 0 seconds 1 gem installed + 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.................... Using rake 10.4.2 Installing i18n 0.7.0 Using json 1.8.3 Installing minitest 5.5.0 Installing thread_safe 0.3.5 Installing tzinfo 1.2.2 Installing activesupport 4.2.5 Installing builder 3.2.2 Installing erubis 2.7.0 Using mini_portile 0.6.2 Installing nokogiri 1.6.6.4 with native extensions Installing rails-deprecated_sanitizer 1.0.3 Installing rails-dom-testing 1.0.7 Installing loofah 2.0.3 Installing rails-html-sanitizer 1.0.2 Installing actionview 4.2.5 Installing rack 1.6.4 Installing rack-test 0.6.3 Installing actionpack 4.2.5 Installing ast 2.1.0 Installing multi_json 1.11.2 Installing mime-types-data 3.2015.1120 Installing mime-types 3.0 Installing rest-client 1.6.7 Installing docile 1.1.5 Installing simplecov-html 0.10.0 Installing simplecov 0.10.0 Installing tins 0.13.2 Installing term-ansicolor 1.2.2 Installing thor 0.18.1 Installing coveralls 0.7.2 Installing gherkin 2.12.2 with native extensions Installing cucumber-core 1.2.0 Installing diff-lcs 1.2.5 Installing multi_test 0.1.2 Installing cucumber 2.0.1 Installing ruby-filemagic 0.7.1 with native extensions Using slop 3.6.0 Using est 1.0.snapshot from source at . Installing parser 2.3.0.pre.4 Installing powerpack 0.0.9 Installing railties 4.2.5 Installing rainbow 2.0.0 Using rdoc 4.2.0 Installing rspec-support 3.1.2 Installing rspec-core 3.1.7 Installing rspec-expectations 3.1.2 Installing rspec-mocks 3.1.3 Installing rspec-rails 3.1.0 Installing ruby-progressbar 1.7.5 Installing rubocop 0.24.1 Installing rubocop-rspec 1.2.1 Using bundler 1.10.6 Bundle complete! 8 Gemfile dependencies, 53 gems now installed. Use `bundle show [gemname]` to see where a bundled gem is installed. Post-install message from ruby-filemagic: ruby-filemagic-0.7.1 [2015-10-27]: * List default lib and header directories (pull request #18 by Adam Wróbel). + rake Run options: --seed 58243 # Running: INFO: "my version is 1.0.snapshot" INFO: "reading /tmp/test20151126-6314-4bz27" INFO: "/tmp/test20151126-6314-4bz27/sample.est found" INFO: "7: (10 + 40 + 18 * 4) / 6 = 13" INFO: "4: (8 + 30 + 16 * 4) / 6 = 12" INFO: "25 * 0.54 * (9 / 2) = 54.0" INFO: "2014-07-12/Yegor Bugayenko: 54" .INFO: "my version is 1.0.snapshot" INFO: "reading /tmp/test20151126-6314-wkmzz7/absent" INFO: "/tmp/test20151126-6314-wkmzz7/absent is absent or is not a directory" .INFO: "7: (10 + 40 + 18 * 4) / 6 = 13" INFO: "4: (8 + 30 + 16 * 4) / 6 = 12" INFO: "25 * 0.54 * (9 / 2) = 54.0" .INFO: "/tmp/test20151126-6314-jle37x/first.est found" INFO: "7: (10 + 40 + 18 * 4) / 6 = 13" INFO: "4: (8 + 30 + 16 * 4) / 6 = 12" INFO: "25 * 0.54 * (9 / 2) = 54.0" INFO: "2014-08-12/Yegor Bugayenko: 54" .INFO: "7: (10 + 40 + 18 * 4) / 6 = 13" INFO: "4: (8 + 30 + 16 * 4) / 6 = 12" INFO: "25 * 0.54 * (9 / 2) = 54.0" . Finished in 0.050332s, 99.3409 runs/s, 99.3409 assertions/s. 5 runs, 5 assertions, 0 failures, 0 errors, 0 skips Coverage report generated for Unit Tests to /home/r/repo/coverage. 130 / 130 LOC (100.0%) covered. 33m[Coveralls] Outside the Travis environment, not sending data.0m /usr/bin/ruby2.2 -S bundle exec cucumber --profile travis Using the travis profile... ................/var/lib/gems/2.2.0/gems/slop-3.6.0/lib/slop.rb:252:in `parse!': Unknown options --some-unknown-option (Slop::InvalidOptionError) from /var/lib/gems/2.2.0/gems/slop-3.6.0/lib/slop.rb:65:in `parse!' from /var/lib/gems/2.2.0/gems/slop-3.6.0/lib/slop.rb:54:in `parse' from /home/r/repo/features/step_definitions/../../bin/est:32:in `<main>' ............. 8 scenarios (8 passed) 29 steps (29 passed) 0m7.447s Coverage report generated for Cucumber Features, Unit Tests to /home/r/repo/coverage. 130 / 130 LOC (100.0%) covered. 33m[Coveralls] Outside the Travis environment, not sending data.0m Running RuboCop... Inspecting 15 files ............... 15 files inspected, no offenses detected + rm -rf '*.gem' + sed -i 's/1\.0\.snapshot/0.3.1/g' lib/est/version.rb + git add lib/est/version.rb + git commit -m 'version set to 0.3.1' + gem build est.gemspec [__rultor 57c385b] version set to 0.3.1 1 file changed, 1 insertion(+), 1 deletion(-) Successfully built RubyGem Name: est Version: 0.3.1 File: est-0.3.1.gem + chmod 0600 ../rubygems.yml + gem push est-0.3.1.gem --config-file ../rubygems.yml Pushing gem to https://rubygems.org... Successfully registered gem: est (0.3.1) ++ pwd + pdd --source=/home/r/repo --verbose --file=est.xml INFO: "my version is 0.15" INFO: "Ruby version is 2.2.3 at x86_64-linux-gnu" INFO: "reading /home/r/repo" INFO: "71 file(s) found" INFO: "reading Gemfile..." INFO: "reading Gemfile.lock..." INFO: "reading LICENSE.txt..." INFO: "reading README.md..." INFO: "reading Rakefile..." INFO: "reading TEAM.md..." INFO: "reading assets/est-text.xsl..." INFO: "reading assets/est.xsd..." INFO: "reading assets/est.xsl..." INFO: "reading bin/est..." 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 est.gemspec..." INFO: "reading est/first.est..." INFO: "reading features/cli.feature..." INFO: "reading features/empty_dir.feature..." INFO: "reading features/gem_package.feature..." INFO: "reading features/step_definitions/steps.rb..." INFO: "reading features/support/env.rb..." INFO: "reading lib/est.rb..." INFO: "reading lib/est/estimate.rb..." INFO: "reading lib/est/estimates.rb..." INFO: "reading lib/est/methods/champions.rb..." INFO: "reading lib/est/version.rb..." INFO: "reading test/test__helper.rb..." INFO: "reading test/test_champions.rb..." INFO: "reading test/test_est.rb..." INFO: "reading test/test_estimate.rb..." INFO: "reading test/test_estimates.rb..." + s3cmd --no-progress put est.xml --config=../s3cfg s3://pdd.teamed.io/est.xml WARNING: Module python-magic is not available. Guessing MIME types based on file extensions. File 'est.xml' stored as 's3://pdd.teamed.io/est.xml' (272 bytes in 0.1 seconds, 3.62 kB/s) [1 of 1] + s3cmd --no-progress put assets/est.xsd --acl-public --config=../s3cfg s3://est-xsd.teamed.io/0.3.1.xsd WARNING: Module python-magic is not available. Guessing MIME types based on file extensions. File 'assets/est.xsd' stored as 's3://est-xsd.teamed.io/0.3.1.xsd' (2045 bytes in 0.1 seconds, 23.98 kB/s) [1 of 1] Public URL of the object is: http://est-xsd.teamed.io.s3.amazonaws.com/0.3.1.xsd + s3cmd --no-progress put assets/est.xsl --acl-public --config=../s3cfg s3://est-xsl.teamed.io/0.3.1.xsl WARNING: Module python-magic is not available. Guessing MIME types based on file extensions. File 'assets/est.xsl' stored as 's3://est-xsl.teamed.io/0.3.1.xsl' (2726 bytes in 0.1 seconds, 24.33 kB/s) [1 of 1] Public URL of the object is: http://est-xsl.teamed.io.s3.amazonaws.com/0.3.1.xsl + est --dir=./est --format=xml --file=est-estimate.xml + s3cmd --no-progress put est-estimate.xml --config=../s3cfg s3://est.teamed.io/est.xml WARNING: Module python-magic is not available. Guessing MIME types based on file extensions. File 'est-estimate.xml' stored as 's3://est.teamed.io/est.xml' (432 bytes in 0.1 seconds, 7.28 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' + git tag 0.3.1 -m '0.3.1: tagged by rultor.com' + git reset --hard HEAD is now at 57c385b version set to 0.3.1 + git clean -fd Removing est-estimate.xml Removing est.xml + git checkout master Switched to branch 'master' + git branch -D __rultor Deleted branch __rultor (was 57c385b). + git push --all origin Everything up-to-date + git push --tags origin To git@github.com:teamed/est.git * [new tag] 0.3.1 -> 0.3.1