+ set -e + set -o pipefail ++ dirname ./run.sh + cd . + echo 18534 + echo '1.69.1 839260fab' 1.69.1 839260fab + date Mon Aug 16 06:27:51 CEST 2021 + uptime 06:27:51 up 322 days, 14:33, 0 users, load average: 5.03, 4.74, 4.69 + head=git@github.com:yegor256/texqc.git + ff=default + image=yegor256/rultor-image + rebase=false + squash=false + head_branch=master + author=yegor256 + tag=0.7.1 + vars=('--env=head=git@github.com:yegor256/texqc.git' '--env=tag=0.7.1' '--env=scripts=( '\''export '\''\'\'''\''head=git@github.com:yegor256/texqc.git'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''tag=0.7.1'\''\'\'''\'''\'' '\'';'\'' '\''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.7.1'\''' ';' '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_11 + 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.7.1'\''' ';' '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.7.1 ']' + [[ 0.7.1 =~ ^[a-zA-Z0-9\.\-]+$ ]] + echo 'tag name is valid: "0.7.1"' tag name is valid: "0.7.1" + cd repo ++ git tag -l 0.7.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=4.69 ++ echo 4.69 '>' 30 ++ bc + '[' 0 -eq 1 ']' + echo 'load average is 4.69, low enough to run a new Docker container' load average is 4.69, 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_11\s*$' + ls -al . total 712 drwx------ 3 rultor rultor 4096 Aug 16 06:27 . drwxrwxrwt 11 root root 684032 Aug 16 06:27 .. -rw-rw-r-- 1 rultor rultor 0 Aug 16 06:27 end.sh -rwxrwxr-x 1 rultor rultor 363 Aug 16 06:27 entry.sh -rw-rw-r-- 1 rultor rultor 6 Aug 16 06:27 pid drwxrwxr-x 5 rultor rultor 4096 Aug 16 06:27 repo -rw-rw-r-- 1 rultor rultor 56 Aug 16 06:27 rubygems.yml -rwxrwxr-x 1 rultor rultor 6073 Aug 16 06:27 run.sh -rw-rw-r-- 1 rultor rultor 708 Aug 16 06:27 script.sh -rw-rw-r-- 1 rultor rultor 4363 Aug 16 06:27 stdout ++ pwd ++ pwd + docker run -t --rm -v /tmp/rultor-NWZu:/main --env=head=git@github.com:yegor256/texqc.git --env=tag=0.7.1 '--env=scripts=( '\''export '\''\'\'''\''head=git@github.com:yegor256/texqc.git'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''tag=0.7.1'\''\'\'''\'''\'' '\'';'\'' '\''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-NWZu/cid -w=/main -v /var/run/docker.sock:/var/run/docker.sock --name=yegor256_texqc_11 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.7.1 + tag=0.7.1 + 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 diff-lcs 1.4.4 Fetching ast 2.4.2 Fetching jaro_winkler 1.5.4 Fetching docile 1.4.0 Fetching colorize 0.8.1 Fetching json 2.5.1 Fetching simplecov_json_formatter 0.1.3 Fetching multi_json 1.15.0 Fetching multi_test 0.1.2 Fetching builder 3.2.4 Fetching simplecov-html 0.12.3 Fetching backtrace 0.3.0 Installing multi_json 1.15.0 Installing diff-lcs 1.4.4 Installing colorize 0.8.1 Installing builder 3.2.4 Installing jaro_winkler 1.5.4 with native extensions Installing ast 2.4.2 Installing json 2.5.1 with native extensions Installing docile 1.4.0 Installing simplecov_json_formatter 0.1.3 Installing backtrace 0.3.0 Installing simplecov-html 0.12.3 Installing multi_test 0.1.2 Fetching loog 0.2.1 Installing loog 0.2.1 Fetching parallel 1.20.1 Installing parallel 1.20.1 Fetching powerpack 0.1.3 Installing powerpack 0.1.3 Using rainbow 3.0.0 Fetching ruby-progressbar 1.11.0 Fetching unicode-display_width 1.4.1 Fetching slop 4.8.2 Fetching parser 3.0.2.0 Fetching gherkin 2.12.2 Fetching simplecov 0.21.2 Installing ruby-progressbar 1.11.0 Installing slop 4.8.2 Installing unicode-display_width 1.4.1 Installing simplecov 0.21.2 Installing parser 3.0.2.0 Installing gherkin 2.12.2 with native extensions Using texqc 0.0.0 from source at `.` and installing its executables 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 Scenario: Bad LaTeX log output checked with LaTeX warning, but ignored with .texqc90m # features/cli.feature:600m 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 32mAnd I have a "32m1m.texqc0m0m32m" file with content:90m # UNKNOWN:-10m0m 32m """0m 32m --ignore 'may have changed' article.tex0m 32m """0m 32mWhen I run bash with "32m1mpdflatex article.tex0m0m32m"90m # UNKNOWN:-10m0m 33mThen I run bin/texqc90m # features/cli.feature:730m0m 36mThen 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 7 scenarios (33m1 undefined0m, 32m6 passed0m) 31 steps (36m1 skipped0m, 33m1 undefined0m, 32m29 passed0m) 0m2.747s 33m0m 33mYou can implement step definitions for undefined steps with these snippets:0m 33m0m 33mThen(/^I run bin\/texqc$/) do0m 33m pending # express the regexp above with the code you wish you had0m 33mend0m 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.7.1/g' bin/texqc + sed -i 's/0\.0\.0/0.7.1/g' texqc.gemspec + git add bin/texqc + git add texqc.gemspec + git commit -m 'version set to 0.7.1' [__rultor f060352] version set to 0.7.1 2 files changed, 2 insertions(+), 2 deletions(-) + gem build texqc.gemspec Successfully built RubyGem Name: texqc Version: 0.7.1 File: texqc-0.7.1.gem + chmod 0600 ../rubygems.yml + gem push texqc-0.7.1.gem --config-file ../rubygems.yml Pushing gem to https://rubygems.org... Successfully registered gem: texqc (0.7.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.7.1 -m '0.7.1: tagged by rultor.com' + git reset --hard HEAD is now at f060352 version set to 0.7.1 + 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 f060352). + git push --all origin Everything up-to-date + git push --tags origin To git@github.com:yegor256/texqc.git * [new tag] 0.7.1 -> 0.7.1 container bb22f4b59db83780e0a83c11c16d69371630a3c3dd3c9f6571cfdaed264c6ab8 is dead Mon Aug 16 06:29:10 CEST 2021