+ set -e
+ set -o pipefail
++ dirname ./run.sh
+ cd .
+ echo 13953
+ echo '1.67.2 b60448e97'
1.67.2 b60448e97
+ date
Tue Mar 20 10:45:08 CET 2018
+ uptime
10:45:08 up 17 days, 16:07, 0 users, load average: 0.07, 0.29, 0.37
+ head=git@github.com:yegor256/hoc.git
+ image=yegor256/rultor
+ head_branch=master
+ author=yegor256
+ tag=0.8.1
+ vars=('--env=head=git@github.com:yegor256/hoc.git' '--env=tag=0.8.1' '--env=scripts=( '\''export '\''\'\'''\''head=git@github.com:yegor256/hoc.git'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''tag=0.8.1'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''head_branch=master'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''author=yegor256'\''\'\'''\'''\'' '\'';'\'' '\''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'\'' '\'';'\'' '\''pdd --verbose --file=/dev/null'\'' '\'';'\'' '\''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'\'' '\'';'\'' )' '--env=head_branch=master' '--env=author=yegor256')
+ scripts=('export '\''head=git@github.com:yegor256/hoc.git'\''' ';' 'export '\''tag=0.8.1'\''' ';' 'export '\''head_branch=master'\''' ';' 'export '\''author=yegor256'\''' ';' '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' ';' 'pdd --verbose --file=/dev/null' ';' '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' ';')
+ directory=
+ container=yegor256_hoc_20
+ 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/hoc.git repo
Cloning into 'repo'...
+ cd repo
+ git config user.email me@rultor.com
+ git config user.name rultor
+ '[' -z 'export '\''head=git@github.com:yegor256/hoc.git'\''' ']'
+ cd ..
+ cat
+ '[' false = true ']'
+ cat
+ chmod a+x entry.sh
+ cat
+ echo 'export '\''head=git@github.com:yegor256/hoc.git'\''' ';' 'export '\''tag=0.8.1'\''' ';' 'export '\''head_branch=master'\''' ';' 'export '\''author=yegor256'\''' ';' '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' ';' 'pdd --verbose --file=/dev/null' ';' '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' ';'
+ rm -rf .gpg
+ '[' -z 0.8.1 ']'
+ [[ 0.8.1 =~ ^[a-zA-Z0-9\.\-]+$ ]]
+ echo 'tag name is valid: "0.8.1"'
tag name is valid: "0.8.1"
+ cd repo
++ git tag -l 0.8.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
++ sed 's/ /\n/g'
++ tail -n 1
+ load=0.37
++ echo 0.37 '>' 30
++ bc
+ '[' 0 -eq 1 ']'
+ echo 'load average is 0.37, low enough to run a new Docker container'
load average is 0.37, low enough to run a new Docker container
+ break
+ cd ..
+ '[' -n '' ']'
+ use_image=yegor256/rultor
+ docker pull yegor256/rultor
Using default tag: latest
latest: Pulling from yegor256/rultor
Digest: sha256:f3c679577a91d278a3ad8018e8b24db3b6b5768c582330158c82224cd8bc190c
Status: Image is up to date for yegor256/rultor:latest
+ docker ps --filter=status=exited
+ grep --quiet '\syegor256_hoc_20\s*$'
+ ls -al .
total 60
drwx--x--x 3 rultor rultor 4096 Mar 20 10:45 .
drwxrwxrwt 10 root root 12288 Mar 20 10:45 ..
-rw-rw-r-- 1 rultor rultor 444 Mar 20 10:45 end.sh
-rwxrwxr-x 1 rultor rultor 338 Mar 20 10:45 entry.sh
-rw-rw-r-- 1 rultor rultor 6 Mar 20 10:45 pid
drwxrwxr-x 8 rultor rultor 4096 Mar 20 10:45 repo
-rw-rw-r-- 1 rultor rultor 56 Mar 20 10:45 rubygems.yml
-rwxrwxr-x 1 rultor rultor 5959 Mar 20 10:45 run.sh
-rw-rw-r-- 1 rultor rultor 98 Mar 20 10:45 s3cfg
-rw-rw-r-- 1 rultor rultor 791 Mar 20 10:45 script.sh
-rw-rw-r-- 1 rultor rultor 4580 Mar 20 10:45 stdout
++ pwd
++ pwd
+ docker run -t --rm -v /tmp/rultor-fSD0:/main --env=head=git@github.com:yegor256/hoc.git --env=tag=0.8.1 '--env=scripts=( '\''export '\''\'\'''\''head=git@github.com:yegor256/hoc.git'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''tag=0.8.1'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''head_branch=master'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''author=yegor256'\''\'\'''\'''\'' '\'';'\'' '\''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'\'' '\'';'\'' '\''pdd --verbose --file=/dev/null'\'' '\'';'\'' '\''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'\'' '\'';'\'' )' --env=head_branch=master --env=author=yegor256 --hostname=docker --privileged --memory=6g --memory-swap=16g --oom-kill-disable --cidfile=/tmp/rultor-fSD0/cid -w=/main --name=yegor256_hoc_20 yegor256/rultor /main/entry.sh
WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
+ 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/.gnupg /root/.m2 /root/.oracle_jre_usage /root/.profile /root/texmf /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 --login r --command /home/r/script.sh
+ set -e
+ set -o pipefail
+ shopt -s expand_aliases
+ alias 'sudo=sudo -i'
+ export HOME=/home/r
+ HOME=/home/r
+ cd /home/r/repo
+ export head=git@github.com:yegor256/hoc.git
+ head=git@github.com:yegor256/hoc.git
+ export tag=0.8.1
+ tag=0.8.1
+ export head_branch=master
+ head_branch=master
+ export author=yegor256
+ author=yegor256
+ sudo -i gem install --no-ri --no-rdoc pdd
Fetching: mini_portile2-2.3.0.gem (100%)
Successfully installed mini_portile2-2.3.0
Fetching: nokogiri-1.8.2.gem (100%)
Building native extensions. This could take a while...
Successfully installed nokogiri-1.8.2
Fetching: rainbow-3.0.0.gem (100%)
Successfully installed rainbow-3.0.0
Fetching: slop-4.6.1.gem (100%)
Successfully installed slop-4.6.1
Fetching: pdd-0.20.3.gem (100%)
Successfully installed pdd-0.20.3
5 gems installed
+ sudo -i apt-get install -y subversion diffstat
Reading package lists... Done
Building dependency tree... 50%
Reading state information... Done
The following extra packages will be installed:
libserf-1-1 libsvn1
Suggested packages:
subversion-tools db5.3-util
The following NEW packages will be installed:
diffstat libserf-1-1 libsvn1 subversion
0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded.
Need to get 1263 kB of archives.
After this operation, 4783 kB of additional disk space will be used.
Get:1ohttp://archive.ubuntu.com/ubuntu/ trusty-updates/main libserf-1-1 amd64 1.3.3-1ubuntu0.1 [42.2 kB]
Get:2ahttp://archive.ubuntu.com/ubuntu/ trusty-updates/main libsvn1 amd64 1.8.8-1ubuntu3.3 [918 kB]
Get:3Whttp://archive.ubuntu.com/ubuntu/ trusty/main diffstat amd64 1.58-1 [21.8 kB]
Get:4Whttp://archive.ubuntu.com/ubuntu/ trusty-updates/main subversion amd64 1.8.8-1ubuntu3.3 [281 kB]
Fetchedo1263gkBoin20s3(43901kB/s)%]
dpkg-preconfigure: unable to re-open stdin: No such file or directory
Selecting previously unselected package libserf-1-1:amd64.
(Reading database ... 63228 files and directories currently installed.)
Preparing to unpack .../libserf-1-1_1.3.3-1ubuntu0.1_amd64.deb ...
Unpacking libserf-1-1:amd64 (1.3.3-1ubuntu0.1) ...
Selecting previously unselected package libsvn1:amd64.
Preparing to unpack .../libsvn1_1.8.8-1ubuntu3.3_amd64.deb ...
Unpacking libsvn1:amd64 (1.8.8-1ubuntu3.3) ...
Selecting previously unselected package diffstat.
Preparing to unpack .../diffstat_1.58-1_amd64.deb ...
Unpacking diffstat (1.58-1) ...
Selecting previously unselected package subversion.
Preparing to unpack .../subversion_1.8.8-1ubuntu3.3_amd64.deb ...
Unpacking subversion (1.8.8-1ubuntu3.3) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Setting up libserf-1-1:amd64 (1.3.3-1ubuntu0.1) ...
Setting up libsvn1:amd64 (1.8.8-1ubuntu3.3) ...
Setting up diffstat (1.58-1) ...
Setting up subversion (1.8.8-1ubuntu3.3) ...
Processing triggers for libc-bin (2.19-0ubuntu6.14) ...
W: Duplicate sources.list entry http://ppa.launchpad.net/git-core/ppa/ubuntu/ trusty/main amd64 Packages (/var/lib/apt/lists/ppa.launchpad.net_git-core_ppa_ubuntu_dists_trusty_main_binary-amd64_Packages.gz)
W: You may want to run apt-get update to correct these problems
+ sudo -i apt-get install -y software-properties-common
Reading package lists... Done
Building dependency tree... 50%
Reading state information... Done
software-properties-common is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
W: Duplicate sources.list entry http://ppa.launchpad.net/git-core/ppa/ubuntu/ trusty/main amd64 Packages (/var/lib/apt/lists/ppa.launchpad.net_git-core_ppa_ubuntu_dists_trusty_main_binary-amd64_Packages.gz)
W: You may want to run apt-get update to correct these problems
+ sudo -i add-apt-repository -y ppa:git-core/ppa
gpg: keyring `/tmp/tmp9oqw4vh9/secring.gpg' created
gpg: keyring `/tmp/tmp9oqw4vh9/pubring.gpg' created
gpg: requesting key E1DF1F24 from hkp server keyserver.ubuntu.com
gpg: /tmp/tmp9oqw4vh9/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 -i apt-get update
Hit[http://ppa.launchpad.net trusty InRelease
Ign[http://archive.ubuntu.comntrusty InReleasety.ubuntu.com (91.189.91.26)] [Co
Get:1 http://archive.ubuntu.com trusty-updates InRelease [65.9 kB]
Hit http://archive.ubuntu.com trusty-backports InRelease
Get:2 http://security.ubuntu.com trusty-security InRelease [65.9 kB]
Hit http://ppa.launchpad.net trusty InRelease
Ign http://ppa.launchpad.net precise InRelease
Hit https://deb.nodesource.com trusty InRelease
Hit http://archive.ubuntu.com[trustylRelease.gpgB/65.9 kB 83%]
Hit%http://ppa.launchpad.net]precisenRelease.gpgrs]5[Waiting%forWheaders]or hea
Hit%http://archive.ubuntu.com trustynReleaseeaders]
Hit%http://ppa.launchpad.netkprecisetRelease headers]chpad.net (91.189.95.83)]
Hit%http://ppa.launchpad.netktrusty/main amd64 Packages
Get:3[http://archive.ubuntu.com trusty-updates/universe Sources [249 kB]
Get:4[http://archive.ubuntu.comatrusty-updates/mainaamd64 Packagese[1323 kB]
Get:5[http://archive.ubuntu.comltrusty-updates/restrictednamd644Packagesk[21.4 kB]
Get:6[http://archive.ubuntu.comltrusty-updates/universetamd64oPackagess[579BkB]
Get:7[http://archive.ubuntu.comltrusty-updates/multiversetamd64oPackagesn[16.0.kB]
Hit%http://ppa.launchpad.netntrusty/mainvamd64BPackagesingefor0headers]0 kB 25%
Hit%http://archive.ubuntu.comRtrusty-backports/mainWamd64gPackagesders]
Hit%http://archive.ubuntu.com[trusty-backports/restricted amd64 Packages
Hit%http://archive.ubuntu.com trusty-backports/universe amd64 Packages
Hit%http://archive.ubuntu.comitrusty-backports/multiverse amd64 Packages
Hit%https://deb.nodesource.comRtrusty/main Sources]
Hit%https://deb.nodesource.com]trusty/mainkamd64BPackages
Hit%http://archive.ubuntu.comatrusty/universerSourcesiting for headers]
Get:8 http://security.ubuntu.com trusty-security/universe Sources [83.2 kB]
Hit%http://archive.ubuntu.com trusty/main amd64 Packages
Hit%http://ppa.launchpad.netiprecise/mainramd64aPackagesr headers] [Waiting for
Hit%http://archive.ubuntu.comntrusty/restrictedaamd64 Packagesers]
Get:9[http://security.ubuntu.comftrusty-security/main amd64ePackages [900 kB]
Hit http://archive.ubuntu.comgtrusty/universe9amd64aPackageskB/900 kB 16%]
Hit http://archive.ubuntu.comatrusty/multiverse amd64 Packages
Get:10Shttp://security.ubuntu.com trusty-security/restricted amd64 Packages [18.1 kB]
Get:11Shttp://security.ubuntu.cometrusty-security/universe amd64 Packages [268 kB]
Get:12Phttp://security.ubuntu.comhtrusty-security/multiverse amd64 Packages [4717 B]
Fetchedo3594gkBein43s3(1096 kB/s)ges 4717 B/4717 B 100%]
Reading package lists... Done
W: Size of file /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_trusty-updates_multiverse_binary-amd64_Packages.gz is not what the server reported 16002 16003
W: Size of file /var/lib/apt/lists/security.ubuntu.com_ubuntu_dists_trusty-security_multiverse_binary-amd64_Packages.gz is not what the server reported 4717 4723
W: Duplicate sources.list entry http://ppa.launchpad.net/git-core/ppa/ubuntu/ trusty/main amd64 Packages (/var/lib/apt/lists/ppa.launchpad.net_git-core_ppa_ubuntu_dists_trusty_main_binary-amd64_Packages.gz)
+ sudo -i apt-get remove -y git
Reading package lists... Done
Building dependency tree... 50%
Reading state information... Done
The following packages were automatically installed and are no longer required:
git-man liberror-perl
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
git git-core
0 upgraded, 0 newly installed, 2 to remove and 15 not upgraded.
After this operation, 32.5 MB disk space will be freed.
(Reading database ... 63328 files and directories currently installed.)
Removing git-core (1:2.14.2-1~ppa0~ubuntu14.04.1) ...
Removing git (1:2.16.2-0ppa1~ubuntu14.04.1) ...
W: Duplicate sources.list entry http://ppa.launchpad.net/git-core/ppa/ubuntu/ trusty/main amd64 Packages (/var/lib/apt/lists/ppa.launchpad.net_git-core_ppa_ubuntu_dists_trusty_main_binary-amd64_Packages.gz)
W: You may want to run apt-get update to correct these problems
+ sudo -i apt-get install -y git
Reading package lists... Done
Building dependency tree... 50%
Reading state information... Done
Suggested packages:
git-daemon-run git-daemon-sysvinit git-doc git-el git-email git-gui gitk
gitweb git-cvs git-mediawiki git-svn
The following NEW packages will be installed:
git
0 upgraded, 1 newly installed, 0 to remove and 15 not upgraded.
Need to get 4955 kB of archives.
After this operation, 32.5 MB of additional disk space will be used.
Get:1ohttp://ppa.launchpad.net/git-core/ppa/ubuntu/ trusty/main git amd64 1:2.16.2-0ppa1~ubuntu14.04.1 [4955 kB]
Fetchedo4955gkBBin90s (9576]kB/s)
dpkg-preconfigure: unable to re-open stdin: No such file or directory
Selecting previously unselected package git.
(Reading database ... 62600 files and directories currently installed.)
Preparing to unpack .../git_1%3a2.16.2-0ppa1~ubuntu14.04.1_amd64.deb ...
Unpacking git (1:2.16.2-0ppa1~ubuntu14.04.1) ...
Setting up git (1:2.16.2-0ppa1~ubuntu14.04.1) ...
W: Duplicate sources.list entry http://ppa.launchpad.net/git-core/ppa/ubuntu/ trusty/main amd64 Packages (/var/lib/apt/lists/ppa.launchpad.net_git-core_ppa_ubuntu_dists_trusty_main_binary-amd64_Packages.gz)
W: You may want to run apt-get update to correct these problems
+ pdd --verbose --file=/dev/null
Found 7 lines in /home/r/repo/.pdd
My version is 0.20.3
Ruby version is 2.3.3 at x86_64-linux
Reading .
Excluding target/**/*
Excluding src/main/resources/images/**/*
35 file(s) found, 171 excluded
Reading .simplecov...
Reading Rakefile...
Reading Gemfile...
Reading .0pdd.yml...
Reading .github/ISSUE_TEMPLATE.md...
Reading .github/PULL_REQUEST_TEMPLATE.md...
Reading cucumber.yml...
Reading .travis.yml...
Reading LICENSE.txt...
Reading test/test_git.rb...
Reading test/test_hoc.rb...
Reading test/test_svn.rb...
Reading test/test__helper.rb...
Reading .pdd...
Reading .rultor.yml...
Reading lib/hoc/git.rb...
Reading lib/hoc/hits.rb...
Reading lib/hoc/version.rb...
Reading lib/hoc/svn.rb...
Reading lib/hoc.rb...
Reading README.md...
Reading appveyor.yml...
Reading .rubocop.yml...
Reading .gitignore...
Reading hoc.gemspec...
Reading features/git_excludes.feature...
Reading features/uses_config.feature...
Reading features/git_basics.feature...
Reading features/cli.feature...
Reading features/support/env.rb...
Reading features/gem_package.feature...
Reading features/step_definitions/steps.rb...
Reading features/svn_basics.feature...
Reading bin/hoc...
Reading .gitattributes...
+ sudo -i bundle install
33mDon'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.0m
31mCould not locate Gemfile or .bundle/ directory0m
container 4c27b1f3e3de87ce57b74fcffb33c396627f189b5b14723cc8a2502a86758505 is dead
Tue Mar 20 10:47:40 CET 2018