Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ruby gem #3

Closed
yegor256 opened this issue Apr 14, 2020 · 12 comments
Closed

ruby gem #3

yegor256 opened this issue Apr 14, 2020 · 12 comments

Comments

@yegor256
Copy link
Owner

No description provided.

yegor256 added a commit that referenced this issue Apr 14, 2020
@yegor256
Copy link
Owner Author

@rultor release, tag is 0.1.0

yegor256 added a commit that referenced this issue Apr 14, 2020
@rultor
Copy link
Collaborator

rultor commented Apr 14, 2020

@rultor release, tag is 0.1.0

@yegor256 OK, I will release it now. Please check the progress here

yegor256 added a commit that referenced this issue Apr 14, 2020
@rultor
Copy link
Collaborator

rultor commented Apr 14, 2020

@rultor release, tag is 0.1.0

@yegor256 Oops, I failed. You can see the full log here (spent 2min)

+ cd ..
+ '[' -n '' ']'
+ use_image=yegor256/rultor-image
+ docker pull yegor256/rultor-image
Using default tag: latest
latest: Pulling from yegor256/rultor-image
Digest: sha256:3cb0326631b117124d419b281273f1e6f3e7cb3fb0c7045e91e563a884907c5e
Status: Image is up to date for yegor256/rultor-image:latest
+ docker ps --filter=status=exited
+ grep --quiet '\syegor256_volatility_3\s*$'
+ ls -al .
total 708
drwx------  3 rultor rultor   4096 Apr 14 20:57 .
drwxrwxrwt 12 root   root   684032 Apr 14 20:57 ..
-rwxrwxr-x  1 rultor rultor    363 Apr 14 20:57 entry.sh
-rw-rw-r--  1 rultor rultor      6 Apr 14 20:57 pid
drwxrwxr-x  5 rultor rultor   4096 Apr 14 20:57 repo
-rw-rw-r--  1 rultor rultor     56 Apr 14 20:56 rubygems.yml
-rwxrwxr-x  1 rultor rultor   5854 Apr 14 20:56 run.sh
-rw-rw-r--  1 rultor rultor    611 Apr 14 20:57 script.sh
-rw-rw-r--  1 rultor rultor   4054 Apr 14 20:57 stdout
++ pwd
++ pwd
+ docker run -t --rm -v /tmp/rultor-RBHR:/main --env=head=git@github.com:yegor256/volatility.git --env=tag=0.1.0 '--env=scripts=( '\''export '\''\'\'''\''head=git@github.com:yegor256/volatility.git'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''tag=0.1.0'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''head_branch=master'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''author=yegor256'\''\'\'''\'''\'' '\'';'\'' '\''sudo bundle install'\'' '\'';'\'' '\''bundle exec rake'\'' '\'';'\'' '\''rm -rf *.gem'\'' '\'';'\'' '\''sed -i "s/0\.0\.0/${tag}/g" bin/volatility.rb'\'' '\'';'\'' '\''sed -i "s/0\.0\.0/${tag}/g" volatility.gemspec'\'' '\'';'\'' '\''git add bin/volatility.rb'\'' '\'';'\'' '\''git add volatility.gemspec'\'' '\'';'\'' '\''git commit -m "version set to ${tag}"'\'' '\'';'\'' '\''gem build volatility.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-RBHR/cid -w=/main -v /var/run/docker.sock:/var/run/docker.sock --name=yegor256_volatility_3 yegor256/rultor-image /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
+ usermod -s /bin/bash r
+ echo '%sudo ALL=(ALL) NOPASSWD:ALL'
+ cp -R /root/.bashrc /root/.cache /root/.composer /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
mesg: cannot open /dev/pts/0: Permission denied
+ 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/volatility.git
+ head=git@github.com:yegor256/volatility.git
+ export tag=0.1.0
+ tag=0.1.0
+ export head_branch=master
+ head_branch=master
+ export author=yegor256
+ author=yegor256
+ sudo -i bundle install
\u001b[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.\u001b[0m
\u001b[31mCould not locate Gemfile\u001b[0m
container 2ffe3748e3b3e14edf8c8acffd44f2f1827215b6c5b25d27f7351c26cb26e8bd is dead
Tue Apr 14 20:58:51 CEST 2020

yegor256 added a commit that referenced this issue Apr 14, 2020
@yegor256
Copy link
Owner Author

@rultor release, tag is 0.1.0

@rultor
Copy link
Collaborator

rultor commented Apr 14, 2020

@rultor release, tag is 0.1.0

@yegor256 OK, I will release it now. Please check the progress here

@rultor
Copy link
Collaborator

rultor commented Apr 14, 2020

@rultor release, tag is 0.1.0

@yegor256 Oops, I failed. You can see the full log here (spent 2min)

  git config --global user.name "Your Name"

to set your account's default identity.
Omit --global to set the identity only in this repository.

fatal: unable to auto-detect email address (got 'r@docker.(none)')
    \u001b[32mWhen I run bash with:\u001b[90m                                   # features/step_definitions/steps.rb:79\u001b[0m\u001b[0m
\u001b[32m      """\u001b[0m
\u001b[32m      mkdir tmp\u001b[0m
\u001b[32m      cd tmp\u001b[0m
\u001b[32m      git init .\u001b[0m
\u001b[32m      touch test.txt\u001b[0m
\u001b[32m      git add test.txt\u001b[0m
\u001b[32m      git commit -am 'test'\u001b[0m
\u001b[32m      """\u001b[0m
fatal: your current branch 'master' does not have any commits yet
    \u001b[32mThen I run bin/volatility with "\u001b[32m\u001b[1m--verbose --home=./tmp\u001b[0m\u001b[0m\u001b[32m"\u001b[90m # features/step_definitions/steps.rb:51\u001b[0m\u001b[0m
    \u001b[31mThen Exit code is zero\u001b[90m                                  # features/step_definitions/steps.rb:65\u001b[0m\u001b[0m
\u001b[31m      Non-zero exit 255:\u001b[0m
\u001b[31m      Home: /tmp/test20200414-2301-etv5pe/tmp\u001b[0m
\u001b[31m      RuntimeError: No Git history found in /tmp/test20200414-2301-etv5pe/tmp\u001b[0m
\u001b[31m      	/home/r/repo/features/step_definitions/../../bin/volatility:66:in `<main>'\u001b[0m
\u001b[31m       (RuntimeError)\u001b[0m
\u001b[31m      features/cli.feature:20:in `Then Exit code is zero'\u001b[0m

Feature: Gem Package
  As a source code writer I want to be able to
  package the Gem into .gem file

  Scenario: Gem can be packaged\u001b[90m                  # features/gem_package.feature:5\u001b[0m
    \u001b[32mGiven It is Unix\u001b[90m                             # features/step_definitions/steps.rb:85\u001b[0m\u001b[0m
    \u001b[32mGiven I have a "\u001b[32m\u001b[1mexecs.rb\u001b[0m\u001b[0m\u001b[32m" file with content:\u001b[90m # features/step_definitions/steps.rb:44\u001b[0m\u001b[0m
\u001b[32m      """\u001b[0m
\u001b[32m      #!/usr/bin/env ruby\u001b[0m
\u001b[32m      require 'rubygems'\u001b[0m
\u001b[32m      spec = Gem::Specification::load('./spec.rb')\u001b[0m
\u001b[32m      if spec.executables.empty?\u001b[0m
\u001b[32m        fail 'no executables: ' + File.read('./spec.rb')\u001b[0m
\u001b[32m      end\u001b[0m
\u001b[32m      """\u001b[0m
    \u001b[32mWhen I run bash with:\u001b[90m                        # features/step_definitions/steps.rb:79\u001b[0m\u001b[0m
\u001b[32m      """\u001b[0m
\u001b[32m      cd volatility\u001b[0m
\u001b[32m      gem build volatility.gemspec\u001b[0m
\u001b[32m      gem specification --ruby volatility-*.gem > ../spec.rb\u001b[0m
\u001b[32m      cd ..\u001b[0m
\u001b[32m      ruby execs.rb\u001b[0m
\u001b[32m      """\u001b[0m
    \u001b[32mThen Exit code is zero\u001b[90m                       # features/step_definitions/steps.rb:65\u001b[0m\u001b[0m

\u001b[31mFailing Scenarios:\u001b[0m
\u001b[31mcucumber features/cli.feature:9\u001b[0m\u001b[90m # Scenario: Volatility can be calculated\u001b[0m

3 scenarios (\u001b[31m1 failed\u001b[0m, \u001b[32m2 passed\u001b[0m)
10 steps (\u001b[31m1 failed\u001b[0m, \u001b[32m9 passed\u001b[0m)
0m1.588s
Coverage report generated for Cucumber Features to /home/r/repo/coverage. 0 / 0 LOC (100.0%) covered.
SimpleCov failed with exit 1
container 2999cbeb343067a36759112f09b5ca77cd3fb22f388e07d7d018f209d350b202 is dead
Tue Apr 14 21:15:11 CEST 2020

yegor256 added a commit that referenced this issue Apr 14, 2020
@yegor256
Copy link
Owner Author

@rultor release, tag is 0.1.0

@rultor
Copy link
Collaborator

rultor commented Apr 14, 2020

@rultor release, tag is 0.1.0

@yegor256 OK, I will release it now. Please check the progress here

yegor256 added a commit that referenced this issue Apr 14, 2020
yegor256 added a commit that referenced this issue Apr 14, 2020
yegor256 added a commit that referenced this issue Apr 14, 2020
@rultor
Copy link
Collaborator

rultor commented Apr 14, 2020

@rultor release, tag is 0.1.0

@yegor256 Oops, I failed. You can see the full log here (spent 2min)

  Scenario: Help can be printed\u001b[90m             # features/cli.feature:4\u001b[0m
    \u001b[32mWhen I run bin/volatility with "\u001b[32m\u001b[1m--help\u001b[0m\u001b[0m\u001b[32m"\u001b[90m # features/step_definitions/steps.rb:51\u001b[0m\u001b[0m
    \u001b[32mThen Exit code is zero\u001b[90m                  # features/step_definitions/steps.rb:65\u001b[0m\u001b[0m
    \u001b[32mAnd Stdout contains "\u001b[32m\u001b[1m--help\u001b[0m\u001b[0m\u001b[32m"\u001b[90m            # features/step_definitions/steps.rb:57\u001b[0m\u001b[0m

  Scenario: Volatility can be calculated\u001b[90m                    # features/cli.feature:9\u001b[0m
    \u001b[32mWhen I run bash with:\u001b[90m                                   # features/step_definitions/steps.rb:79\u001b[0m\u001b[0m
\u001b[32m      """\u001b[0m
\u001b[32m      git config --global user.name "NoName"\u001b[0m
\u001b[32m      git config --global user.email "noname@example.com"\u001b[0m
\u001b[32m      mkdir tmp\u001b[0m
\u001b[32m      cd tmp\u001b[0m
\u001b[32m      git init .\u001b[0m
\u001b[32m      touch test.txt\u001b[0m
\u001b[32m      git add test.txt\u001b[0m
\u001b[32m      git commit -am 'test'\u001b[0m
\u001b[32m      """\u001b[0m
    \u001b[32mThen I run bin/volatility with "\u001b[32m\u001b[1m--verbose --home=./tmp\u001b[0m\u001b[0m\u001b[32m"\u001b[90m # features/step_definitions/steps.rb:51\u001b[0m\u001b[0m
    \u001b[32mThen Exit code is zero\u001b[90m                                  # features/step_definitions/steps.rb:65\u001b[0m\u001b[0m

Feature: Gem Package
  As a source code writer I want to be able to
  package the Gem into .gem file

  Scenario: Gem can be packaged\u001b[90m                  # features/gem_package.feature:5\u001b[0m
    \u001b[32mGiven It is Unix\u001b[90m                             # features/step_definitions/steps.rb:85\u001b[0m\u001b[0m
    \u001b[32mGiven I have a "\u001b[32m\u001b[1mexecs.rb\u001b[0m\u001b[0m\u001b[32m" file with content:\u001b[90m # features/step_definitions/steps.rb:44\u001b[0m\u001b[0m
\u001b[32m      """\u001b[0m
\u001b[32m      #!/usr/bin/env ruby\u001b[0m
\u001b[32m      require 'rubygems'\u001b[0m
\u001b[32m      spec = Gem::Specification::load('./spec.rb')\u001b[0m
\u001b[32m      if spec.executables.empty?\u001b[0m
\u001b[32m        fail 'no executables: ' + File.read('./spec.rb')\u001b[0m
\u001b[32m      end\u001b[0m
\u001b[32m      """\u001b[0m
    \u001b[32mWhen I run bash with:\u001b[90m                        # features/step_definitions/steps.rb:79\u001b[0m\u001b[0m
\u001b[32m      """\u001b[0m
\u001b[32m      cd volatility\u001b[0m
\u001b[32m      gem build volatility.gemspec\u001b[0m
\u001b[32m      gem specification --ruby volatility-*.gem > ../spec.rb\u001b[0m
\u001b[32m      cd ..\u001b[0m
\u001b[32m      ruby execs.rb\u001b[0m
\u001b[32m      """\u001b[0m
    \u001b[32mThen Exit code is zero\u001b[90m                       # features/step_definitions/steps.rb:65\u001b[0m\u001b[0m

3 scenarios (\u001b[32m3 passed\u001b[0m)
10 steps (\u001b[32m10 passed\u001b[0m)
0m1.608s
Coverage report generated for Cucumber Features to /home/r/repo/coverage. 0 / 0 LOC (100.0%) covered.
Running RuboCop...
Inspecting 6 files
\u001b[32m.\u001b[0m\u001b[32m.\u001b[0m\u001b[32m.\u001b[0m\u001b[32m.\u001b[0m\u001b[32m.\u001b[0m\u001b[32m.\u001b[0m

6 files inspected, \u001b[32mno offenses\u001b[0m detected
grep -q -r '2019-2020'     --include '*.rb'     --include '*.txt'     --include 'Rakefile'     .
+ rm -rf '*.gem'
+ sed -i 's/0\.0\.0/0.1.0/g' bin/volatility.rb
sed: can't read bin/volatility.rb: No such file or directory
container 964f1b25e332f67d234a025e69a02321e94b42483ef7ed93ff73688e0f481b01 is dead
Tue Apr 14 21:25:43 CEST 2020

yegor256 added a commit that referenced this issue Apr 14, 2020
@yegor256
Copy link
Owner Author

@rultor release, tag is 0.1.0

@rultor
Copy link
Collaborator

rultor commented Apr 14, 2020

@rultor release, tag is 0.1.0

@yegor256 OK, I will release it now. Please check the progress here

@rultor
Copy link
Collaborator

rultor commented Apr 14, 2020

@rultor release, tag is 0.1.0

@yegor256 Done! FYI, the full log is here (took me 2min)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants