+ set -e
+ set -o pipefail
++ dirname ./run.sh
+ cd .
+ echo 14192
+ echo '1.70.6 5bcc93e7c'
1.70.6 5bcc93e7c
+ date
Fri May 13 21:58:59 CEST 2022
+ uptime
21:58:59 up 593 days, 6:04, 0 users, load average: 0.84, 0.91, 0.95
+ head=git@github.com:objectionary/eoc.git
+ ff=default
+ image=yegor256/rultor-image
+ rebase=false
+ squash=false
+ head_branch=master
+ author=yegor256
+ tag=0.0.3
+ vars=('--env=head=git@github.com:objectionary/eoc.git' '--env=tag=0.0.3' '--env=scripts=( '\''export '\''\'\'''\''head=git@github.com:objectionary/eoc.git'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''tag=0.0.3'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''head_branch=master'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''author=yegor256'\''\'\'''\'''\'' '\'';'\'' '\''pip install git+https://chromium.googlesource.com/external/gyp'\'' '\'';'\'' '\''npm install --no-color'\'' '\'';'\'' '\''sudo npm install --no-color --global grunt-cli'\'' '\'';'\'' '\''npm uninstall --no-color grunt-cli'\'' '\'';'\'' '\''npm install --no-color mocha'\'' '\'';'\'' '\''pdd -f /dev/null -v'\'' '\'';'\'' '\''[[ "${tag}" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]] || exit -1'\'' '\'';'\'' '\''sed -i -e "s/\"version\": \"0.0.0\"/\"version\": \"${tag}\"/" package.json'\'' '\'';'\'' '\''sed -i -e "s/0.0.0/${tag}/" src/version.js'\'' '\'';'\'' '\''grunt --no-color'\'' '\'';'\'' '\''git commit -am "set version to ${tag}"'\'' '\'';'\'' '\''chmod 600 ../npmrc'\'' '\'';'\'' '\''npm publish --no-color --userconfig=../npmrc'\'' '\'';'\'' )' '--env=head_branch=master' '--env=author=yegor256')
+ scripts=('export '\''head=git@github.com:objectionary/eoc.git'\''' ';' 'export '\''tag=0.0.3'\''' ';' 'export '\''head_branch=master'\''' ';' 'export '\''author=yegor256'\''' ';' 'pip install git+https://chromium.googlesource.com/external/gyp' ';' 'npm install --no-color' ';' 'sudo npm install --no-color --global grunt-cli' ';' 'npm uninstall --no-color grunt-cli' ';' 'npm install --no-color mocha' ';' 'pdd -f /dev/null -v' ';' '[[ "${tag}" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]] || exit -1' ';' 'sed -i -e "s/\"version\": \"0.0.0\"/\"version\": \"${tag}\"/" package.json' ';' 'sed -i -e "s/0.0.0/${tag}/" src/version.js' ';' 'grunt --no-color' ';' 'git commit -am "set version to ${tag}"' ';' 'chmod 600 ../npmrc' ';' 'npm publish --no-color --userconfig=../npmrc' ';')
+ directory=
+ container=objectionary_eoc_2
+ as_root=false
+ git --version
git version 2.7.4
+ docker --version
Docker version 17.12.0-ce, build c97c6d6
+ 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:objectionary/eoc.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:objectionary/eoc.git'\''' ']'
+ cd ..
+ cat
+ '[' false = true ']'
+ cat
+ chmod a+x entry.sh
+ cat
+ echo 'export '\''head=git@github.com:objectionary/eoc.git'\''' ';' 'export '\''tag=0.0.3'\''' ';' 'export '\''head_branch=master'\''' ';' 'export '\''author=yegor256'\''' ';' 'pip install git+https://chromium.googlesource.com/external/gyp' ';' 'npm install --no-color' ';' 'sudo npm install --no-color --global grunt-cli' ';' 'npm uninstall --no-color grunt-cli' ';' 'npm install --no-color mocha' ';' 'pdd -f /dev/null -v' ';' '[[ "${tag}" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]] || exit -1' ';' 'sed -i -e "s/\"version\": \"0.0.0\"/\"version\": \"${tag}\"/" package.json' ';' 'sed -i -e "s/0.0.0/${tag}/" src/version.js' ';' 'grunt --no-color' ';' 'git commit -am "set version to ${tag}"' ';' 'chmod 600 ../npmrc' ';' 'npm publish --no-color --userconfig=../npmrc' ';'
+ sensitive=()
+ rm -rf .gpg
+ '[' -z 0.0.3 ']'
+ [[ 0.0.3 =~ ^[a-zA-Z0-9\.\-]+$ ]]
+ echo 'tag name is valid: "0.0.3"'
tag name is valid: "0.0.3"
+ cd repo
++ git tag -l 0.0.3
+ '[' ']'
+ 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
++ uptime
++ sed 's/ /\n/g'
++ tail -n 1
+ load=0.96
++ echo 0.96 '>' 30
++ bc
+ '[' 0 -eq 1 ']'
+ echo 'load average is 0.96, low enough to run a new Docker container'
load average is 0.96, 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:c5506a89a3f124787dd242c7a5410930f5e21697d014188c549bd6298a0118a3
Status: Image is up to date for yegor256/rultor-image:latest
+ docker ps --filter=status=exited
+ grep --quiet '\sobjectionary_eoc_2\s*$'
+ ls -al .
total 716
drwx--x--x 3 rultor rultor 4096 May 13 21:59 .
drwxrwxrwt 14 root root 684032 May 13 21:59 ..
-rw-rw-r-- 1 rultor rultor 444 May 13 21:59 end.sh
-rwxrwxr-x 1 rultor rultor 363 May 13 21:59 entry.sh
-rw-rw-r-- 1 rultor rultor 70 May 13 21:58 npmrc
-rw-rw-r-- 1 rultor rultor 6 May 13 21:58 pid
drwxrwxr-x 6 rultor rultor 4096 May 13 21:59 repo
-rwxrwxr-x 1 rultor rultor 6266 May 13 21:58 run.sh
-rw-rw-r-- 1 rultor rultor 786 May 13 21:59 script.sh
-rw-rw-r-- 1 rultor rultor 4701 May 13 21:59 stdout
++ pwd
++ pwd
+ docker run -t --rm -v /tmp/rultor-oedO:/main --env=head=git@github.com:objectionary/eoc.git --env=tag=0.0.3 '--env=scripts=( '\''export '\''\'\'''\''head=git@github.com:objectionary/eoc.git'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''tag=0.0.3'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''head_branch=master'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''author=yegor256'\''\'\'''\'''\'' '\'';'\'' '\''pip install git+https://chromium.googlesource.com/external/gyp'\'' '\'';'\'' '\''npm install --no-color'\'' '\'';'\'' '\''sudo npm install --no-color --global grunt-cli'\'' '\'';'\'' '\''npm uninstall --no-color grunt-cli'\'' '\'';'\'' '\''npm install --no-color mocha'\'' '\'';'\'' '\''pdd -f /dev/null -v'\'' '\'';'\'' '\''[[ "${tag}" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]] || exit -1'\'' '\'';'\'' '\''sed -i -e "s/\"version\": \"0.0.0\"/\"version\": \"${tag}\"/" package.json'\'' '\'';'\'' '\''sed -i -e "s/0.0.0/${tag}/" src/version.js'\'' '\'';'\'' '\''grunt --no-color'\'' '\'';'\'' '\''git commit -am "set version to ${tag}"'\'' '\'';'\'' '\''chmod 600 ../npmrc'\'' '\'';'\'' '\''npm publish --no-color --userconfig=../npmrc'\'' '\'';'\'' )' --env=head_branch=master --env=author=yegor256 --hostname=docker --privileged --memory=6g --memory-swap=16g --oom-kill-disable --cidfile=/tmp/rultor-oedO/cid -w=/main -v /var/run/docker.sock:/var/run/docker.sock --name=objectionary_eoc_2 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 ./npmrc ./pid ./repo ./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:objectionary/eoc.git
+ head=git@github.com:objectionary/eoc.git
+ export tag=0.0.3
+ tag=0.0.3
+ export head_branch=master
+ head_branch=master
+ export author=yegor256
+ author=yegor256
+ pip install git+https://chromium.googlesource.com/external/gyp
Defaulting to user installation because normal site-packages is not writeable
Collecting git+https://chromium.googlesource.com/external/gyp
Cloning https://chromium.googlesource.com/external/gyp to /tmp/pip-req-build-h43h_p05
Running command git clone --filter=blob:none --quiet https://chromium.googlesource.com/external/gyp /tmp/pip-req-build-h43h_p05
Resolved https://chromium.googlesource.com/external/gyp to commit 9ecf45e37677743503342ee4c6a76eaee80e4a7f
Preparing metadata (setup.py) ... ?25ldone
?25hBuilding wheels for collected packages: gyp
Building wheel for gyp (setup.py) ... ?25ldone
?25h Created wheel for gyp: filename=gyp-0.1-py3-none-any.whl size=311946 sha256=7e9d204e11366118b9f6215502b27eab51a7ba3e2dc66d964418ee0a750afd1c
Stored in directory: /tmp/pip-ephem-wheel-cache-_ua_3zbp/wheels/a1/2d/a5/c6845e42ce26719b04a41788161f2c5b083f1db2278b85eaa9
Successfully built gyp
Installing collected packages: gyp
33m WARNING: The script gyp is installed in '/home/r/.local/bin' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.0m33m
0mSuccessfully installed gyp-0.1
+ npm install --no-color
K?25hnpm#notice.createdpaelockfileoasipackage-lock.json.nYou.shouldecommitethis0file.K
npm WARN notsup Unsupported engine for commander@9.2.0: wanted: {"node":"^12.20.0 || >=14"} (current: {"node":"10.19.0","npm":"6.14.4"})
npm WARN notsup Not compatible with your version of node/npm: commander@9.2.0
npm WARN notsup Unsupported engine for mocha@10.0.0: wanted: {"node":">= 14.0.0"} (current: {"node":"10.19.0","npm":"6.14.4"})
npm WARN notsup Not compatible with your version of node/npm: mocha@10.0.0
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.3.2 (node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN notsup Unsupported engine for fs-extra@10.1.0: wanted: {"node":">=12"} (current: {"node":"10.19.0","npm":"6.14.4"})
npm WARN notsup Not compatible with your version of node/npm: fs-extra@10.1.0
npm WARN notsup Unsupported engine for yargs@17.5.0: wanted: {"node":">=12"} (current: {"node":"10.19.0","npm":"6.14.4"})
npm WARN notsup Not compatible with your version of node/npm: yargs@17.5.0
npm WARN notsup Unsupported engine for yargs-parser@21.0.1: wanted: {"node":">=12"} (current: {"node":"10.19.0","npm":"6.14.4"})
npm WARN notsup Not compatible with your version of node/npm: yargs-parser@21.0.1
npm WARN acorn-jsx@5.3.2 requires a peer of acorn@^6.0.0 || ^7.0.0 || ^8.0.0 but none is installed. You must install peer dependencies yourself.
added 334 packages from 241 contributors and audited 335 packages in 9.931s
28 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities
K?25h+#sudo#-i#npm.install --no-colorp--globaligrunt-cliintInstalled0mK
K?25h/usr/local/bin/gruntf->s/usr/local/lib/node_modules/grunt-cli/bin/grunt-js0mKd0mK
K?25h+#grunt-cli@1.4.3.] - install:grunt-cli: sill doSerial install 4720mK
added 59 packages from 71 contributors in 4.278s
+ npm uninstall --no-color grunt-cli
K?25hnpm#WARN.acorn-jsx@5.3.2srequireslanpeerroflacorn@^6.0.0e||m^7.0.0l||k^8.0.0KbutKnone is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.3.2 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
audited 335 packages in 1.928s
28 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities
K?25h+#npm#install.--no-colorsmochaall: timing audit body Completed in 1ms0mK
K?25hnpm#WARN.notsup.Unsupportedlengineoforfmocha@10.0.0:1wanted:o{"node":">=m14.0.0"} (current: {"node":"10.19.0","npm":"6.14.4"})
npm WARN notsup Not compatible with your version of node/npm: mocha@10.0.0
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.3.2 (node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN acorn-jsx@5.3.2 requires a peer of acorn@^6.0.0 || ^7.0.0 || ^8.0.0 but none is installed. You must install peer dependencies yourself.
+ mocha@10.0.0
updated 1 package and audited 335 packages in 2.61s
13 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities
K?25h+#pdd#-f#/dev/null]-v postinstall: sill install printInstalled0mK
Found 8 lines in /home/r/repo/.pdd
My version is 0.20.8
Ruby version is 2.7.0 at x86_64-linux
Reading from root dir .
38;5;214mExcluding0m target/**/*
38;5;214mExcluding0m coverage/**/*
38;5;214mExcluding0m node_modules/**/*
Reading .0pdd.yml ...
Reading .github/workflows/grunt.yml ...
Reading LICENSE.txt ...
Reading package-lock.json ...
Reading test/test_eoc.js ...
Reading .pdd ...
Reading .rultor.yml ...
Reading README.md ...
Reading .gitignore ...
Reading .eslintrc.json ...
Reading package.json ...
Reading src/version.js ...
Reading src/eoc.js ...
Reading Gruntfile.js ...
Reading .gitattributes ...
+ [[ 0.0.3 =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]
+ sed -i -e 's/"version": "0.0.0"/"version": "0.0.3"/' package.json
+ sed -i -e s/0.0.0/0.0.3/ src/version.js
+ grunt --no-color
Running "mochaTest:test" (mochaTest) task
eoc
✔ prints its own version (469ms)
✔ prints help screen (463ms)
2 passing (938ms)
Running "mochaTest:coverage" (mochaTest) task
0 passing (0ms)
[mochawesome] Report JSON saved to /home/r/repo/mochawesome-report/mochawesome.json
[mochawesome] Report HTML saved to /home/r/repo/mochawesome-report/mochawesome.html
Running "eslint:target" (eslint) task
Done.
+ git commit -am 'set version to 0.0.3'
[__rultor 432c2dc] set version to 0.0.3
2 files changed, 3 insertions(+), 3 deletions(-)
+ chmod 600 ../npmrc
+ npm publish --no-color --userconfig=../npmrc
npm notice
npm notice 📦 eolang@0.0.3
npm notice === Tarball Contents ===
npm notice 254B .gitattributes
npm notice 161B .pdd
npm notice 2.1kB src/eoc.js
npm notice 2.0kB Gruntfile.js
npm notice 2.0kB test/test_eoc.js
npm notice 1.2kB src/version.js
npm notice 96B .eslintrc.json
npm notice 512B package.json
npm notice 1.3kB README.md
npm notice 1.1kB LICENSE.txt
npm notice 93B .0pdd.yml
npm notice 737B .rultor.yml
npm notice 327B .github/workflows/grunt.yml
npm notice === Tarball Details ===
npm notice name: eolang
npm notice version: 0.0.3
npm notice package size: 3.9 kB
npm notice unpacked size: 11.8 kB
npm notice shasum: 07507b86cc07a1b0b7fd58facc0446a1b6bc710e
npm notice integrity: sha512-2WnzkEoEUzRVg[...]vNwOnoygFt7tA==
npm notice total files: 13
npm notice
K?25h+.eolang@0.0.3].|.: notice0mKe0mK
+ 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.0.3 -m '0.0.3: tagged by rultor.com'
+ git reset --hard
HEAD is now at 432c2dc set version to 0.0.3
+ 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 432c2dc).
+ git push --all origin
Everything up-to-date
+ git push --tags origin
To git@github.com:objectionary/eoc.git
* [new tag] 0.0.3 -> 0.0.3
container c87a4f20a45c595d46ec369d0bf6c6f119e39eedbdd161394542bafe1fc6bf0e is dead
Fri May 13 22:00:15 CEST 2022