+ set -e + set -o pipefail ++ dirname ./run.sh + cd . + echo 31556 + echo '1.69.1 839260fab' 1.69.1 839260fab + date Fri Jul 16 21:45:34 CEST 2021 + uptime 21:45:34 up 292 days, 5:51, 0 users, load average: 4.42, 4.76, 4.78 + head=git@github.com:yegor256/texqc.git + ff=default + image=yegor256/rultor-image + rebase=false + squash=false + head_branch=master + author=yegor256 + tag=0.6.0 + vars=('--env=head=git@github.com:yegor256/texqc.git' '--env=tag=0.6.0' '--env=scripts=( '\''export '\''\'\'''\''head=git@github.com:yegor256/texqc.git'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''tag=0.6.0'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''head_branch=master'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''author=yegor256'\''\'\'''\'''\'' '\'';'\'' '\''export PATH=$PATH:/usr/local/texlive/2021/bin/x86_64-linux/'\'' '\'';'\'' '\''sudo apt install -y aspell'\'' '\'';'\'' '\''pdd -f /dev/null'\'' '\'';'\'' '\''sudo bundle install --no-color "--gemfile=$(pwd)/Gemfile"'\'' '\'';'\'' '\''bundle exec rake'\'' '\'';'\'' '\''sed -i "s/0\.0\.0/${tag}/g" bin/texqc'\'' '\'';'\'' '\''sed -i "s/0\.0\.0/${tag}/g" texqc.gemspec'\'' '\'';'\'' '\''git add bin/texqc'\'' '\'';'\'' '\''git add texqc.gemspec'\'' '\'';'\'' '\''git commit -m "version set to ${tag}"'\'' '\'';'\'' '\''gem build texqc.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/texqc.git'\''' ';' 'export '\''tag=0.6.0'\''' ';' 'export '\''head_branch=master'\''' ';' 'export '\''author=yegor256'\''' ';' 'export PATH=$PATH:/usr/local/texlive/2021/bin/x86_64-linux/' ';' 'sudo apt install -y aspell' ';' 'pdd -f /dev/null' ';' 'sudo bundle install --no-color "--gemfile=$(pwd)/Gemfile"' ';' 'bundle exec rake' ';' 'sed -i "s/0\.0\.0/${tag}/g" bin/texqc' ';' 'sed -i "s/0\.0\.0/${tag}/g" texqc.gemspec' ';' 'git add bin/texqc' ';' 'git add texqc.gemspec' ';' 'git commit -m "version set to ${tag}"' ';' 'gem build texqc.gemspec' ';' 'chmod 0600 ../rubygems.yml' ';' 'gem push *.gem --config-file ../rubygems.yml' ';') + directory= + container=yegor256_texqc_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/texqc.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/texqc.git'\''' ']' + cd .. + cat + '[' false = true ']' + cat + chmod a+x entry.sh + cat + echo 'export '\''head=git@github.com:yegor256/texqc.git'\''' ';' 'export '\''tag=0.6.0'\''' ';' 'export '\''head_branch=master'\''' ';' 'export '\''author=yegor256'\''' ';' 'export PATH=$PATH:/usr/local/texlive/2021/bin/x86_64-linux/' ';' 'sudo apt install -y aspell' ';' 'pdd -f /dev/null' ';' 'sudo bundle install --no-color "--gemfile=$(pwd)/Gemfile"' ';' 'bundle exec rake' ';' 'sed -i "s/0\.0\.0/${tag}/g" bin/texqc' ';' 'sed -i "s/0\.0\.0/${tag}/g" texqc.gemspec' ';' 'git add bin/texqc' ';' 'git add texqc.gemspec' ';' 'git commit -m "version set to ${tag}"' ';' 'gem build texqc.gemspec' ';' 'chmod 0600 ../rubygems.yml' ';' 'gem push *.gem --config-file ../rubygems.yml' ';' + sensitive=() + rm -rf .gpg + '[' -z 0.6.0 ']' + [[ 0.6.0 =~ ^[a-zA-Z0-9\.\-]+$ ]] + echo 'tag name is valid: "0.6.0"' tag name is valid: "0.6.0" + cd repo ++ git tag -l 0.6.0 + '[' ']' + 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 ++ tail -n 1 ++ sed 's/ /\n/g' + load=4.78 ++ echo 4.78 '>' 30 ++ bc + '[' 0 -eq 1 ']' + echo 'load average is 4.78, low enough to run a new Docker container' load average is 4.78, low enough to run a new Docker container + break + cd .. + '[' -n '' ']' + use_image=yegor256/rultor-image + docker pull yegor256/rultor-image Using default tag: latest latest: Pulling from yegor256/rultor-image Digest: sha256:ae457d2438aa9a4989fb3a85705ab72db31f399c2ef11af2e520b03c1ccd2fe0 Status: Image is up to date for yegor256/rultor-image:latest + docker ps --filter=status=exited + grep --quiet '\syegor256_texqc_9\s*$' + ls -al . total 716 drwx--x--x 3 rultor rultor 4096 Jul 16 21:45 . drwxrwxrwt 11 root root 684032 Jul 16 21:45 .. -rw-rw-r-- 1 rultor rultor 444 Jul 16 21:45 end.sh -rwxrwxr-x 1 rultor rultor 363 Jul 16 21:45 entry.sh -rw-rw-r-- 1 rultor rultor 6 Jul 16 21:45 pid drwxrwxr-x 5 rultor rultor 4096 Jul 16 21:45 repo -rw-rw-r-- 1 rultor rultor 56 Jul 16 21:45 rubygems.yml -rwxrwxr-x 1 rultor rultor 6072 Jul 16 21:45 run.sh -rw-rw-r-- 1 rultor rultor 708 Jul 16 21:45 script.sh -rw-rw-r-- 1 rultor rultor 4361 Jul 16 21:45 stdout ++ pwd ++ pwd + docker run -t --rm -v /tmp/rultor-LqXW:/main --env=head=git@github.com:yegor256/texqc.git --env=tag=0.6.0 '--env=scripts=( '\''export '\''\'\'''\''head=git@github.com:yegor256/texqc.git'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''tag=0.6.0'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''head_branch=master'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''author=yegor256'\''\'\'''\'''\'' '\'';'\'' '\''export PATH=$PATH:/usr/local/texlive/2021/bin/x86_64-linux/'\'' '\'';'\'' '\''sudo apt install -y aspell'\'' '\'';'\'' '\''pdd -f /dev/null'\'' '\'';'\'' '\''sudo bundle install --no-color "--gemfile=$(pwd)/Gemfile"'\'' '\'';'\'' '\''bundle exec rake'\'' '\'';'\'' '\''sed -i "s/0\.0\.0/${tag}/g" bin/texqc'\'' '\'';'\'' '\''sed -i "s/0\.0\.0/${tag}/g" texqc.gemspec'\'' '\'';'\'' '\''git add bin/texqc'\'' '\'';'\'' '\''git add texqc.gemspec'\'' '\'';'\'' '\''git commit -m "version set to ${tag}"'\'' '\'';'\'' '\''gem build texqc.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-LqXW/cid -w=/main -v /var/run/docker.sock:/var/run/docker.sock --name=yegor256_texqc_9 yegor256/rultor-image /main/entry.sh + set -e + set -o pipefail + shopt -s dotglob + useradd -m -G sudo r + usermod -s /bin/bash r + echo '%sudo ALL=(ALL) NOPASSWD:ALL' + cp -R /root/.bashrc /root/.cache /root/.config /root/.gem /root/.gnupg /root/.m2 /root/.profile /root/texmf /home/r + cp -R ./cid ./end.sh ./entry.sh ./pid ./repo ./rubygems.yml ./run.sh ./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/texqc.git + head=git@github.com:yegor256/texqc.git + export tag=0.6.0 + tag=0.6.0 + export head_branch=master + head_branch=master + export author=yegor256 + author=yegor256 + export PATH=/usr/local/rvm/gems/ruby-2.7.0/bin:/usr/local/rvm/gems/ruby-2.7.0@global/bin:/usr/local/rvm/rubies/ruby-2.7.0/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/local/rvm/bin:/usr/local/texlive/2021/bin/x86_64-linux/ + PATH=/usr/local/rvm/gems/ruby-2.7.0/bin:/usr/local/rvm/gems/ruby-2.7.0@global/bin:/usr/local/rvm/rubies/ruby-2.7.0/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/local/rvm/bin:/usr/local/texlive/2021/bin/x86_64-linux/ + sudo -i apt install -y aspell Reading package lists... Done Building dependency tree... 50% Reading state information... Done aspell is already the newest version (0.60.8-1build1). aspell set to manually installed. 0 upgraded, 0 newly installed, 0 to remove and 6 not upgraded. + pdd -f /dev/null Found 7 lines in /home/r/repo/.pdd My version is 0.20.6 Ruby version is 2.7.0 at x86_64-linux Reading . Excluding target/**/* Excluding coverage/**/* 20 file(s) found, 171 excluded Reading .simplecov... Reading Rakefile... Reading Gemfile... Reading .0pdd.yml... Reading cucumber.yml... Reading .travis.yml... Reading LICENSE.txt... Reading .pdd... Reading .rultor.yml... Reading texqc.gemspec... Reading README.md... Reading .rubocop.yml... Reading .gitignore... Reading features/cli.feature... Reading features/support/env.rb... Reading features/gem_package.feature... Reading features/step_definitions/steps.rb... Reading bin/texqc... Reading logo.svg... Reading .gitattributes... ++ pwd + sudo -i bundle install --no-color --gemfile=/home/r/repo/Gemfile 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... Fetching rake 12.3.3 Installing rake 12.3.3 Using bundler 2.2.23 Fetching jaro_winkler 1.5.4 Fetching multi_json 1.15.0 Fetching colorize 0.8.1 Fetching builder 3.2.4 Fetching backtrace 0.3.0 Fetching json 2.5.1 Fetching simplecov_json_formatter 0.1.3 Fetching docile 1.4.0 Fetching simplecov-html 0.12.3 Fetching diff-lcs 1.4.4 Fetching ast 2.4.2 Fetching multi_test 0.1.2 Installing colorize 0.8.1 Installing jaro_winkler 1.5.4 with native extensions Installing multi_json 1.15.0 Installing simplecov_json_formatter 0.1.3 Installing multi_test 0.1.2 Installing ast 2.4.2 Installing diff-lcs 1.4.4 Installing docile 1.4.0 Installing backtrace 0.3.0 Installing json 2.5.1 with native extensions Installing builder 3.2.4 Installing simplecov-html 0.12.3 Fetching loog 0.2.1 Fetching parallel 1.20.1 Installing loog 0.2.1 Fetching powerpack 0.1.3 Using rainbow 3.0.0 Fetching ruby-progressbar 1.11.0 Fetching unicode-display_width 1.4.1 Installing parallel 1.20.1 Installing ruby-progressbar 1.11.0 Fetching slop 4.8.2 Installing powerpack 0.1.3 Installing unicode-display_width 1.4.1 Installing slop 4.8.2 Fetching gherkin 2.12.2 Fetching parser 3.0.2.0 Using texqc 0.0.0 from source at `.` and installing its executables Fetching simplecov 0.21.2 Installing parser 3.0.2.0 Installing simplecov 0.21.2 Installing gherkin 2.12.2 with native extensions Fetching rubocop 0.61.0 Installing rubocop 0.61.0 Fetching rubocop-rspec 1.31.0 Installing rubocop-rspec 1.31.0 Fetching codecov 0.2.6 Installing codecov 0.2.6 Fetching cucumber 1.3.20 Installing cucumber 1.3.20 Bundle complete! 6 Gemfile dependencies, 29 gems now installed. Use `bundle info [gemname]` to see where a bundled gem is installed. + bundle exec rake /usr/local/rvm/gems/ruby-2.7.0/gems/rake-12.3.3/lib/rake/clean.rb:34: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call /usr/local/rvm/rubies/ruby-2.7.0/lib/ruby/2.7.0/fileutils.rb:622: warning: The called method `rm_r' is defined here /usr/local/rvm/rubies/ruby-2.7.0/bin/ruby -S bundle exec cucumber *** THIS RUBY IMPLEMENTATION DOESN'T REPORT FILE AND LINE FOR PROCS *** Using the default profile... Feature: Command Line Processing As a author of LaTeX document I want to check spelling Scenario: Help can be printed90m # features/cli.feature:40m 32mWhen I run bin/texqc with "32m1m--help0m0m32m"90m # UNKNOWN:-10m0m 32mThen Exit code is zero90m # UNKNOWN:-10m0m 32mAnd Stdout contains "32m1m--help0m0m32m"90m # UNKNOWN:-10m0m Scenario: Good LaTeX log output can be checked90m # features/cli.feature:90m 32mGiven I have a "32m1marticle.tex0m0m32m" file with content:90m # UNKNOWN:-10m0m 32m """0m 32m \documentclass{article}0m 32m \begin{document}0m 32m How are you, my dear friend?0m 32m \end{document}0m 32m """0m 32mWhen I run bash with "32m1mpdflatex article.tex0m0m32m"90m # UNKNOWN:-10m0m 32mThen I run bin/texqc with "32m1m0m0m32m"90m # UNKNOWN:-10m0m 32mThen Exit code is zero90m # UNKNOWN:-10m0m 32mAnd Stdout contains "32m1mNo LaTeX processing errors found0m0m32m"90m # UNKNOWN:-10m0m Scenario: Bad LaTeX log output checked90m # features/cli.feature:220m 32mGiven I have a "32m1marticle.tex0m0m32m" file with content:90m # UNKNOWN:-10m0m 32m """0m 32m \documentclass{article}0m 32m \begin{document}0m 32m HowareyouHowareyouHowareyouHowareyouHowareyouHowareyouHowareyouHowareyouHowareyouHowareyouHowareyouHowareyouHowareyou0m 32m \end{document}0m 32m """0m 32mWhen I run bash with "32m1mpdflatex article.tex0m0m32m"90m # UNKNOWN:-10m0m 32mThen I run bin/texqc with "32m1marticle0m0m32m"90m # UNKNOWN:-10m0m 32mThen Exit code is not zero90m # UNKNOWN:-10m0m 32mAnd Stdout contains "32m1m1 LaTeX processing errors0m0m32m"90m # UNKNOWN:-10m0m Scenario: Bad LaTeX log output checked with LaTeX warning90m # features/cli.feature:350m 32mGiven I have a "32m1marticle.tex0m0m32m" file with content:90m # UNKNOWN:-10m0m 32m """0m 32m \documentclass{article}0m 32m \begin{document}0m 32m test\label{xxx}test\label{xxx}0m 32m \end{document}0m 32m """0m 32mWhen I run bash with "32m1mpdflatex article.tex0m0m32m"90m # UNKNOWN:-10m0m 32mThen I run bin/texqc with "32m1marticle.tex0m0m32m"90m # UNKNOWN:-10m0m 32mThen Exit code is not zero90m # UNKNOWN:-10m0m 32mAnd Stdout contains "32m1m1 LaTeX processing errors0m0m32m"90m # UNKNOWN:-10m0m Scenario: Bad LaTeX log output checked with LaTeX warning, but ignored90m # features/cli.feature:480m 32mGiven I have a "32m1marticle.tex0m0m32m" file with content:90m # UNKNOWN:-10m0m 32m """0m 32m \documentclass{article}0m 32m \begin{document}0m 32m test\label{xxx}test\label{xxx}0m 32m \end{document}0m 32m """0m 32mWhen I run bash with "32m1mpdflatex article.tex0m0m32m"90m # UNKNOWN:-10m0m 32mThen I run bin/texqc with "32m1m--ignore 'may have changed' article.tex0m0m32m"90m # UNKNOWN:-10m0m 32mThen Exit code is zero90m # UNKNOWN:-10m0m Feature: Gem Package As a source code writer I want to be able to package the Gem into .gem file Scenario: Gem can be packaged90m # features/gem_package.feature:50m 32mGiven It is Unix90m # UNKNOWN:-10m0m 32mGiven I have a "32m1mexecs.rb0m0m32m" file with content:90m # UNKNOWN:-10m0m 32m """0m 32m #!/usr/bin/env ruby0m 32m require 'rubygems'0m 32m spec = Gem::Specification::load('./spec.rb')0m 32m if spec.executables.empty?0m 32m fail 'no executables: ' + File.read('./spec.rb')0m 32m end0m 32m """0m 32mWhen I run bash with:90m # UNKNOWN:-10m0m 32m """0m 32m cd texqc0m 32m gem build texqc.gemspec0m 32m gem specification --ruby texqc-*.gem > ../spec.rb0m 32m cd ..0m 32m ruby execs.rb0m 32m """0m 32mThen Exit code is zero90m # UNKNOWN:-10m0m 6 scenarios (32m6 passed0m) 26 steps (32m26 passed0m) 0m2.457s Coverage report generated for Cucumber Features to /home/r/repo/coverage. 0 / 0 LOC (100.0%) covered. Running RuboCop... Inspecting 6 files 32m.0m32m.0m32m.0m32m.0m32m.0m32m.0m 6 files inspected, 32mno offenses0m detected grep -q -r '2021' --include '*.rb' --include '*.txt' --include 'Rakefile' . + sed -i 's/0\.0\.0/0.6.0/g' bin/texqc + sed -i 's/0\.0\.0/0.6.0/g' texqc.gemspec + git add bin/texqc + git add texqc.gemspec + git commit -m 'version set to 0.6.0' [__rultor 347aca0] version set to 0.6.0 2 files changed, 2 insertions(+), 2 deletions(-) + gem build texqc.gemspec Successfully built RubyGem Name: texqc Version: 0.6.0 File: texqc-0.6.0.gem + chmod 0600 ../rubygems.yml + gem push texqc-0.6.0.gem --config-file ../rubygems.yml Pushing gem to https://rubygems.org... Successfully registered gem: texqc (0.6.0) + 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.6.0 -m '0.6.0: tagged by rultor.com' + git reset --hard HEAD is now at 347aca0 version set to 0.6.0 + git clean -fd + git checkout master Switched to branch 'master' Your branch is up-to-date with 'origin/master'. + git branch -D __rultor Deleted branch __rultor (was 347aca0). + git push --all origin Everything up-to-date + git push --tags origin To git@github.com:yegor256/texqc.git * [new tag] 0.6.0 -> 0.6.0 container b26199117ce73c8b209d4040a95c21a21285ae6e9374155f976107d4e3a935b3 is dead Fri Jul 16 21:46:53 CEST 2021