rultor.com logo This build log was produced by rultor.com for yegor256/rultor-remote#2
+ set -e
+ set -o pipefail
++ dirname /tmp/rultor-0NbG/run.sh
+ cd /tmp/rultor-0NbG
+ echo 21725
+ echo '1.34 27f3907'
1.34 27f3907
+ date --iso-8601=seconds --utc
2014-09-30T13:11:15+0000
+ uptime
 15:11:15 up 18:23,  0 users,  load average: 22.30, 20.96, 21.35
+ head=git@github.com:yegor256/rultor-remote.git
+ head_branch=master
+ tag=0.2.0
+ vars=('--env=head=git@github.com:yegor256/rultor-remote.git' '--env=head_branch=master' '--env=tag=0.2.0')
+ image=yegor256/rultor
+ scripts=('sudo bundle install' ';' 'sudo apt-get install -y bcrypt' ';' 'rake' ';' 'rm -rf *.gem' ';' 'sed -i "s/1\.0\.snapshot/${tag}/g" lib/rultor/version.rb' ';' 'gem build rultor.gemspec' ';' 'chmod 0600 ../rubygems.yml' ';' 'gem push *.gem --config-file ../rubygems.yml' ';' 'sudo gem install pdd' ';' 'pdd --source=$(pwd) --verbose --file=rultor-remote.xml' ';' 's3cmd --no-progress put rultor-remote.xml --config=../s3cfg s3://pdd.teamed.io/rltor-remote.xml' ';')
+ '[' -z '' ']'
+ docker=docker
+ git clone --branch=master --depth=10 git@github.com:yegor256/rultor-remote.git repo
Initialized empty Git repository in /tmp/rultor-0NbG/repo/.git/
+ cd repo
+ git config user.email me@rultor.com
+ git config user.name rultor
+ '[' -z 'sudo bundle install' ']'
+ cd ..
+ cat
+ chmod a+x entry.sh
+ cat
+ echo 'sudo bundle install' ';' 'sudo apt-get install -y bcrypt' ';' rake ';' 'rm -rf *.gem' ';' 'sed -i "s/1\.0\.snapshot/${tag}/g" lib/rultor/version.rb' ';' 'gem build rultor.gemspec' ';' 'chmod 0600 ../rubygems.yml' ';' 'gem push *.gem --config-file ../rubygems.yml' ';' 'sudo gem install pdd' ';' 'pdd --source=$(pwd) --verbose --file=rultor-remote.xml' ';' 's3cmd --no-progress put rultor-remote.xml --config=../s3cfg s3://pdd.teamed.io/rltor-remote.xml' ';'
+ rm -rf .gpg
+ '[' -z 0.2.0 ']'
+ cd repo
++ git tag -l 0.2.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
++ awk '{print $12}'
++ cut -d , -f 1
+ load=
+ '[' '' -gt 8 ']'
/tmp/rultor-0NbG/run.sh: line 77: [: : integer expression expected
+ echo 'load average is , low enough to run a new Docker container'
load average is , low enough to run a new Docker container
+ break
+ cd ..
+ docker pull yegor256/rultor
Pulling repository yegor256/rultor





























++ pwd
++ pwd
+ docker run --rm -v /tmp/rultor-0NbG:/main --env=head=git@github.com:yegor256/rultor-remote.git --env=head_branch=master --env=tag=0.2.0 --memory=4g --cidfile=/tmp/rultor-0NbG/cid -w=/main yegor256/rultor /main/entry.sh
+ set -e
+ set -o pipefail
+ shopt -s dotglob
+ adduser --disabled-password --gecos '' r
Adding user `r' ...
Adding new group `r' (1000) ...
Adding new user `r' (1000) with group `r' ...
Creating home directory `/home/r' ...
Copying files from `/etc/skel' ...
+ adduser r sudo
Adding user `r' to group `sudo' ...
Adding user r to group sudo
Done.
+ echo '%sudo ALL=(ALL) NOPASSWD:ALL'
+ cp -R /root/.bashrc /root/.java /root/.m2 /root/.profile /home/r
+ cp -R ./cid ./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 -m r -c /home/r/script.sh
+ set -e
+ set -o pipefail
+ export HOME=/home/r
+ HOME=/home/r
+ cd /home/r/repo
+ sudo bundle install
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...
Using rake 10.3.2
Installing i18n 0.6.11
Using json 1.8.1
Installing minitest 5.4.2
Installing thread_safe 0.3.4
Installing tzinfo 1.2.2
Installing activesupport 4.1.6
Installing builder 3.2.2
Installing erubis 2.7.0
Installing actionview 4.1.6
Installing rack 1.5.2
Installing rack-test 0.6.2
Installing actionpack 4.1.6
Installing activemodel 4.1.6
Installing ast 2.0.0
Using slop 3.6.0
Installing parser 2.2.0.pre.4
Installing astrolabe 1.3.0
Installing multi_json 1.10.1
Using mime-types 2.3
Installing netrc 0.7.7
Installing rest-client 1.7.2
Installing docile 1.1.5
Installing simplecov-html 0.8.0
Installing simplecov 0.9.1
Installing tins 1.3.3
Installing term-ansicolor 1.3.0
Installing thor 0.19.1
Installing coveralls 0.7.1
Installing diff-lcs 1.2.5
Installing gherkin 2.12.2
Installing multi_test 0.1.1
Installing cucumber 1.3.11
Installing powerpack 0.0.9
Installing railties 4.1.6
Installing rainbow 2.0.0
Installing rdoc 3.12.2
Installing rspec-expectations 2.99.2
Installing rspec-collection_matchers 1.0.0
Installing rspec-core 2.99.2
Installing rspec-mocks 2.99.2
Installing rspec-rails 2.99.0
Installing ruby-progressbar 1.6.0
Installing rubocop 0.26.1
Installing rubocop-rspec 1.2.0
Using rultor 1.0.snapshot from source at .
Using bundler 1.6.3
Your bundle is complete!
Use `bundle show [gemname]` to see where a bundled gem is installed.
Post-install message from rdoc:
Depending on your version of ruby, you may need to install ruby rdoc/ri data:

<= 1.8.6 : unsupported
 = 1.8.7 : gem install rdoc-data; rdoc-data --install
 = 1.9.1 : gem install rdoc-data; rdoc-data --install
>= 1.9.2 : nothing to do! Yay!
+ sudo apt-get install -y bcrypt
Reading package lists...
Building dependency tree...
Reading state information...
The following NEW packages will be installed:
  bcrypt
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 20.3 kB of archives.
After this operation, 66.6 kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu/ trusty/universe bcrypt amd64 1.1-8 [20.3 kB]
debconf: unable to initialize frontend: Dialog
debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (This frontend requires a controlling tty.)
debconf: falling back to frontend: Teletype
dpkg-preconfigure: unable to re-open stdin:
Fetched 20.3 kB in 0s (136 kB/s)
Selecting previously unselected package bcrypt.
(Reading database ... 55304 files and directories currently installed.)
Preparing to unpack .../bcrypt_1.1-8_amd64.deb ...
Unpacking bcrypt (1.1-8) ...
Setting up bcrypt (1.1-8) ...
+ rake
/home/r/repo/Rakefile:36: warning: already initialized constant CLEAN
Warning: you should require 'minitest/autorun' instead.
Warning: or add 'gem "minitest"' before 'require "minitest/autorun"'
From:
  /usr/lib/ruby/1.9.1/minitest/autorun.rb:14:in `<top (required)>'
  /home/r/repo/test/test_encrypt.rb:31:in `<top (required)>'
  /var/lib/gems/1.9.1/gems/rake-10.3.2/lib/rake/rake_test_loader.rb:10:in `block (2 levels) in <main>'
  /var/lib/gems/1.9.1/gems/rake-10.3.2/lib/rake/rake_test_loader.rb:9:in `each'
  /var/lib/gems/1.9.1/gems/rake-10.3.2/lib/rake/rake_test_loader.rb:9:in `block in <main>'
  /var/lib/gems/1.9.1/gems/rake-10.3.2/lib/rake/rake_test_loader.rb:4:in `select'
  /var/lib/gems/1.9.1/gems/rake-10.3.2/lib/rake/rake_test_loader.rb:4:in `<main>'
MiniTest::Unit.autorun is now Minitest.autorun. From /usr/lib/ruby/1.9.1/minitest/autorun.rb:18:in `<top (required)>'
Run options: --seed 26475

# Running:

"log works"
.+ set -e
+ file=secret.txt
+ enc=secret.txt.enc
+ [ -e secret.txt.enc ]
+ asc=secret.txt.asc
+ [ -e secret.txt.asc ]
+ cd /tmp/test20140930-2166-3u8p9k
+ echo rultor-key:test
+ echo rultor-key:test
+ cat secret.txt.asc
+ bcrypt -r -o secret.txt
Encryption key:
Again:
+ rm secret.txt.asc
+ gpg --keyserver hkp://pool.sks-keyservers.net --verbose --recv-keys 9AF0FA4C
gpg: directory `/home/r/.gnupg' created
gpg: new configuration file `/home/r/.gnupg/gpg.conf' created
gpg: WARNING: options in `/home/r/.gnupg/gpg.conf' are not yet active during this run
gpg: keyring `/home/r/.gnupg/secring.gpg' created
gpg: keyring `/home/r/.gnupg/pubring.gpg' created
gpg: requesting key 9AF0FA4C from hkp server pool.sks-keyservers.net
gpg: armor header: Version: SKS 1.1.3
gpg: pub  2048R/9AF0FA4C 2014-08-17  Rultor.com &lt;gpg@rultor.com&gt;
gpg: /home/r/.gnupg/trustdb.gpg: trustdb created
gpg: using PGP trust model
gpg: key 9AF0FA4C: public key "Rultor.com <gpg@rultor.com>" imported
gpg: Total number processed: 1
gpg:		   imported: 1	(RSA: 1)
+ gpg --trust-model always --output secret.txt.asc --batch --armor --encrypt --verbose --recipient 9AF0FA4C secret.txt.enc
gpg: using subkey 9A839C3A instead of primary key 9AF0FA4C
gpg: No trust check due to `--trust-model always' option
gpg: reading from `secret.txt.enc'
gpg: writing to `secret.txt.asc'
gpg: RSA/AES256 encrypted for: "9A839C3A Rultor.com <gpg@rultor.com>"
gpg: WARNING: `secret.txt.enc' is an empty file
+ rm -f secret.txt.enc
"secret.txt encrypted"
.

Finished in 5.337730s, 0.3747 runs/s, 0.1873 assertions/s.

2 runs, 1 assertions, 0 failures, 0 errors, 0 skips
/usr/bin/ruby1.9.1 -S bundle exec cucumber  --profile travis
"logging to stdout"
Using the travis profile...
.............

4 scenarios (4 passed)
13 steps (13 passed)
0m3.789s
Coverage report generated for Cucumber Features to /home/r/repo/coverage. 10 / 10 LOC (100.0%) covered.
33m[Coveralls] Outside the Travis environment, not sending data.0m
Running RuboCop...
Inspecting 11 files
...........

11 files inspected, no offenses detected
+ rm -rf '*.gem'
+ sed -i 's/1\.0\.snapshot/0.2.0/g' lib/rultor/version.rb
+ gem build rultor.gemspec
  Successfully built RubyGem
  Name: rultor
  Version: 0.2.0
  File: rultor-0.2.0.gem
+ chmod 0600 ../rubygems.yml
+ gem push rultor-0.2.0.gem --config-file ../rubygems.yml
Pushing gem to https://rubygems.org...
Successfully registered gem: rultor (0.2.0)
+ sudo gem install pdd
Successfully installed pdd-0.5.2
1 gem installed
Installing ri documentation for pdd-0.5.2...
Installing RDoc documentation for pdd-0.5.2...
++ pwd
+ pdd --source=/home/r/repo --verbose --file=rultor-remote.xml
INFO: "my version is 0.5.2"
INFO: "reading /home/r/repo"
INFO: "60 file(s) found"
+ s3cmd --no-progress put rultor-remote.xml --config=../s3cfg s3://pdd.teamed.io/rltor-remote.xml
File 'rultor-remote.xml' stored as 's3://pdd.teamed.io/rltor-remote.xml' (275 bytes in 0.4 seconds, 614.67 B/s) [1 of 1]
+ mv /home/r/repo .
++ whoami
+ chown -R root repo
++ whoami
+ sudo chown -R rultor repo
+ cd repo
+ git tag 0.2.0 -m '0.2.0: tagged by rultor.com'
+ git push origin 0.2.0
To git@github.com:yegor256/rultor-remote.git
 * [new tag]	     0.2.0 -> 0.2.0