+ set -e
+ set -o pipefail
++ dirname ./run.sh
+ cd .
+ echo 9060
+ echo '2.0-SNAPSHOT BUILD'
2.0-SNAPSHOT BUILD
+ date
Tue Dec 13 22:22:33 UTC 2016
+ uptime
22:22:33 up 25 days, 4:37, 0 users, load average: 6.35, 2.74, 3.35
+ head=git@github.com:yegor256/0pdd.git
+ head_branch=master
+ tag=0.4
+ vars=('--env=head=git@github.com:yegor256/0pdd.git' '--env=head_branch=master' '--env=tag=0.4')
+ image=yegor256/rultor
+ directory=
+ scripts=('sudo bundle install' ';' 'rake' ';' 'cp ../config.yml config.yml' ';' 'git remote add heroku git@heroku.com:zeropdd.git' ';' 'rm -rf ~/.ssh' ';' 'mkdir ~/.ssh' ';' 'mv ../id_rsa ../id_rsa.pub ~/.ssh' ';' 'chmod -R 600 ~/.ssh/*' ';' 'echo -e "Host *\n StrictHostKeyChecking no\n UserKnownHostsFile=/dev/null" > ~/.ssh/config' ';' 'git add config.yml' ';' 'git commit -m '\''config.yml'\''' ';' 'git fetch' ';' 'sed -i "s/BUILD/${tag}/g" ./version.rb' ';' 'git add ./version.rb' ';' 'git commit -m '\''build number set'\''' ';' 'git push -f heroku $(git symbolic-ref --short HEAD):master' ';' 'git reset HEAD~1' ';' 'curl -f --connect-timeout 15 --retry 5 --retry-delay 30 http://www.0pdd.com > /dev/null' ';')
+ squash=false
+ ff=default
+ rebase=false
+ container=yegor256_0pdd_22
+ 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/0pdd.git repo
Cloning into 'repo'...
+ cd repo
+ git config user.email me@rultor.com
+ git config user.name rultor
+ '[' -z 'sudo bundle install' ']'
+ cd ..
+ cat
+ '[' false = true ']'
+ cat
+ chmod a+x entry.sh
+ cat
+ echo 'sudo bundle install' ';' rake ';' 'cp ../config.yml config.yml' ';' 'git remote add heroku git@heroku.com:zeropdd.git' ';' 'rm -rf ~/.ssh' ';' 'mkdir ~/.ssh' ';' 'mv ../id_rsa ../id_rsa.pub ~/.ssh' ';' 'chmod -R 600 ~/.ssh/*' ';' 'echo -e "Host *\n StrictHostKeyChecking no\n UserKnownHostsFile=/dev/null" > ~/.ssh/config' ';' 'git add config.yml' ';' 'git commit -m '\''config.yml'\''' ';' 'git fetch' ';' 'sed -i "s/BUILD/${tag}/g" ./version.rb' ';' 'git add ./version.rb' ';' 'git commit -m '\''build number set'\''' ';' 'git push -f heroku $(git symbolic-ref --short HEAD):master' ';' 'git reset HEAD~1' ';' 'curl -f --connect-timeout 15 --retry 5 --retry-delay 30 http://www.0pdd.com > /dev/null' ';'
+ rm -rf .gpg
+ '[' -z 0.4 ']'
+ [[ 0.4 =~ ^[a-zA-Z0-9\\.\\-]+$ ]]
+ echo 'tag name is valid: "0.4"'
tag name is valid: "0.4"
+ cd repo
++ git tag -l 0.4
+ '[' ']'
+ 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
++ tail -n 1
++ uptime
++ sed 's/ /\n/g'
+ load=3.35
++ bc
++ echo 3.35 '>' 30
+ '[' 0 -eq 1 ']'
+ echo 'load average is 3.35, low enough to run a new Docker container'
load average is 3.35, low enough to run a new Docker container
+ break
+ cd ..
+ '[' -n '' ']'
+ use_image=yegor256/rultor
+ docker pull yegor256/rultor
Using default tag: latest
Trying to pull repository docker.io/yegor256/rultor ... latest: Pulling from yegor256/rultor
Digest: sha256:ad3c8a7c0673df4f748c3bfaaa721b4d2d092a83cc8045577f33749f79e80e1e
Status: Image is up to date for docker.io/yegor256/rultor:latest
+ grep --quiet '\syegor256_0pdd_22\s*$'
+ docker ps --filter=status=exited
+ ls -al .
total 44
drwx------ 3 rultor rultor 131 Dec 13 22:22 .
drwxrwxrwt. 9 root root 4096 Dec 13 22:22 ..
-rw-rw-r-- 1 rultor rultor 1907 Dec 13 22:22 config.yml
-rwxrwxr-x 1 rultor rultor 326 Dec 13 22:22 entry.sh
-rw-rw-r-- 1 rultor rultor 1679 Dec 13 22:22 id_rsa
-rw-rw-r-- 1 rultor rultor 396 Dec 13 22:22 id_rsa.pub
-rw-rw-r-- 1 rultor rultor 5 Dec 13 22:22 pid
drwxrwxr-x 9 rultor rultor 4096 Dec 13 22:22 repo
-rwxrwxr-x 1 rultor rultor 4736 Dec 13 22:22 run.sh
-rw-rw-r-- 1 rultor rultor 705 Dec 13 22:22 script.sh
-rw-rw-r-- 1 rultor rultor 3380 Dec 13 22:22 stdout
++ pwd
++ pwd
+ docker run -t --rm -v /tmp/rultor-Ifmg:/main --env=head=git@github.com:yegor256/0pdd.git --env=head_branch=master --env=tag=0.4 --hostname=docker --privileged --memory=6g --memory-swap=16g --oom-kill-disable --cidfile=/tmp/rultor-Ifmg/cid -w=/main --name=yegor256_0pdd_22 yegor256/rultor /main/entry.sh
Usage of loopback devices is strongly discouraged for production use. Either use `--storage-opt dm.thinpooldev` or use `--storage-opt dm.no_warn_on_loop_devices=true` to suppress this warning.
+ set -e
+ set -o pipefail
+ shopt -s dotglob
+ useradd -m -G sudo r
+ echo '%sudo ALL=(ALL) NOPASSWD:ALL'
+ cp -R /root/.bashrc /root/.composer /root/.gem /root/.java /root/.m2 /root/.npm /root/.profile /root/texmf /root/.texmf-var /root/tmp /home/r
+ cp -R ./cid ./config.yml ./end.sh ./entry.sh ./id_rsa ./id_rsa.pub ./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 -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
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.0m
33mWarning: the running version of Bundler is older than the version that created the lockfile. We suggest you upgrade to the latest version of Bundler by running `gem install bundler`.
0mFetching gem metadata from https://rubygems.org/.............
Fetching version metadata from https://rubygems.org/...
Fetching dependency metadata from https://rubygems.org/..
32mInstalling rake 12.0.00m
32mInstalling concurrent-ruby 1.0.20m
32mInstalling i18n 0.7.00m
32mInstalling minitest 5.10.10m
32mInstalling thread_safe 0.3.50m
32mInstalling builder 3.2.20m
32mInstalling erubis 2.7.00m
32mInstalling mini_portile2 2.1.00m
32mInstalling rack 1.6.50m
32mInstalling public_suffix 2.0.40m
32mInstalling ast 2.3.00m
32mInstalling aws-sigv4 1.0.00m
32mInstalling jmespath 1.3.10m
32mInstalling json 2.0.2 with native extensions0m
32mInstalling docile 1.1.50m
32mInstalling simplecov-html 0.10.00m
32mInstalling tins 1.13.00m
32mInstalling thor 0.19.40m
32mInstalling diff-lcs 1.2.50m
Using multipart-post 2.0.0
32mInstalling tilt 2.0.50m
32mInstalling method_source 0.8.20m
32mInstalling ptools 1.3.30m
32mInstalling slop 3.6.00m
32mInstalling power_assert 0.4.10m
32mInstalling powerpack 0.1.10m
32mInstalling rainbow 2.1.00m
32mInstalling rspec-support 3.5.00m
32mInstalling ruby-progressbar 1.8.10m
32mInstalling unicode-display_width 1.1.20m
Using sass 3.4.22
Using bundler 1.11.2
32mInstalling tzinfo 1.2.20m
32mInstalling nokogiri 1.6.8.1 with native extensions0m
32mInstalling rack-test 0.6.30m
32mInstalling rack-protection 1.5.30m
32mInstalling sprockets 3.7.00m
32mInstalling addressable 2.5.00m
32mInstalling parser 2.3.3.10m
32mInstalling aws-sdk-core 2.6.350m
32mInstalling simplecov 0.12.00m
32mInstalling term-ansicolor 1.4.00m
32mInstalling faraday 0.10.00m
32mInstalling haml 4.0.70m
32mInstalling test-unit 3.0.80m
32mInstalling rspec-core 3.5.40m
32mInstalling rspec-expectations 3.5.00m
32mInstalling rspec-mocks 3.5.00m
32mInstalling activesupport 5.0.00m
32mInstalling loofah 2.0.30m
32mInstalling pdd 0.17.10m
32mInstalling sinatra 1.4.70m
32mInstalling rubocop 0.46.00m
32mInstalling aws-sdk-resources 2.6.350m
32mInstalling coveralls 0.8.170m
32mInstalling sawyer 0.8.10m
32mInstalling rails-dom-testing 2.0.10m
32mInstalling rails-html-sanitizer 1.0.30m
32mInstalling rubocop-rspec 1.8.00m
32mInstalling aws-sdk 2.6.350m
32mInstalling octokit 4.6.20m
32mInstalling actionview 5.0.00m
32mInstalling actionpack 5.0.00m
32mInstalling railties 5.0.00m
32mInstalling rspec-rails 3.5.20m
32mBundle complete! 15 Gemfile dependencies, 65 gems now installed.0m
32mUse `bundle show [gemname]` to see where a bundled gem is installed.0m
32mPost-install message from haml:0m
HEADS UP! Haml 4.0 has many improvements, but also has changes that may break
your application:
* Support for Ruby 1.8.6 dropped
* Support for Rails 2 dropped
* Sass filter now always outputs <style> tags
* Data attributes are now hyphenated, not underscored
* html2haml utility moved to the html2haml gem
* Textile and Maruku filters moved to the haml-contrib gem
For more info see:
http://rubydoc.info/github/haml/haml/file/CHANGELOG.md
+ rake
/var/lib/gems/2.2.0/gems/pdd-0.17.1/lib/pdd/source.rb:79: warning: character class has duplicated range
/var/lib/gems/2.2.0/gems/jmespath-1.3.1/lib/jmespath/nodes/function.rb:210: warning: mismatched indentations at 'end' with 'def' at 195
/home/r/repo/.simplecov:34:in `<top (required)>': [DEPRECATION] ::[] is deprecated. Use ::new instead.
Coverage report generated for Unit Tests to /home/r/repo/coverage. 0.0 / 0.0 LOC (100.0%) covered.
33m[Coveralls] Outside the CI environment, not sending data.0m
Loaded suite /var/lib/gems/2.2.0/gems/rake-12.0.0/lib/rake/rake_test_loader
Started
/home/r/repo/views/index.haml:-5: warning: instance variable @haml_buffer not initialized
42;37;1m.0m42;37;1m.0m42;37;1m.0m/home/r/repo/views/not_found.haml:-5: warning: instance variable @haml_buffer not initialized
42;37;1m.0m42;37;1m.0m42;37;1m.0mInitialized empty Git repository in /tmp/test20161213-12360-17gl75w/repo/.git/
[master (root-commit) c41b92a] add line
1 file changed, 1 insertion(+)
create mode 100644 test.txt
42;37;1m.0mInitialized empty Git repository in /tmp/test20161213-12360-1m9t9qx/repo/.git/
[master (root-commit) c41b92a] add line
1 file changed, 1 insertion(+)
create mode 100644 test.txt
+ set -e
+ echo Host *
+ echo StrictHostKeyChecking no
+ echo UserKnownHostsFile=~/.ssh/known_hosts
+ chmod -R 600 /home/r/.ssh/config
42;37;1m.0mInitialized empty Git repository in /tmp/test20161213-12360-1kk62b9/repo/.git/
[master (root-commit) 23e6d25] add line
1 file changed, 1 insertion(+)
create mode 100644 test.txt
42;37;1m.0m42;37;1m.0m42;37;1m.0m
Finished in 1.195291554 seconds.
42;37;1m11 tests, 27 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications0m
42;37;1m100% passed0m
9.20 tests/s, 22.59 assertions/s
Running RuboCop...
Inspecting 19 files
32m.0m32m.0m32m.0m32m.0m32m.0m32m.0m32m.0m32m.0m32m.0m32m.0m32m.0m32m.0m32m.0m32m.0m32m.0m32m.0m32m.0m32m.0m32m.0m
19 files inspected, 32mno offenses0m detected
grep -q -r '2016' --include '*.rb' --include '*.txt' --include 'Rakefile' .
+ cp ../config.yml config.yml
+ git remote add heroku git@heroku.com:zeropdd.git
+ rm -rf /home/r/.ssh
+ mkdir /home/r/.ssh
+ mv ../id_rsa ../id_rsa.pub /home/r/.ssh
+ chmod -R 600 /home/r/.ssh/id_rsa /home/r/.ssh/id_rsa.pub
+ echo -e 'Host *\n StrictHostKeyChecking no\n UserKnownHostsFile=/dev/null'
+ git add config.yml
+ git commit -m config.yml
[__rultor 76f7b4a] config.yml
1 file changed, 36 insertions(+)
create mode 100644 config.yml
+ git fetch
Warning: Permanently added 'github.com,192.30.253.113' (RSA) to the list of known hosts.
+ sed -i s/BUILD/0.4/g ./version.rb
+ git add ./version.rb
+ git commit -m 'build number set'
[__rultor 3e62249] build number set
1 file changed, 1 insertion(+), 1 deletion(-)
++ git symbolic-ref --short HEAD
+ git push -f heroku __rultor:master
Warning: Permanently added 'heroku.com,50.19.85.156' (RSA) to the list of known hosts.
Counting objects: 691, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (223/223), done.
Writing objects: 100% (691/691), 138.76 KiB | 0 bytes/s, done.
Total 691 (delta 447), reused 680 (delta 439)
remote: Compressing source files... done.K
remote: Building source:K
remote:
remote: -----> Ruby app detectedK
remote: -----> Compiling Ruby/RailsK
remote: -----> Using Ruby version: ruby-2.2.2K
remote: -----> Installing dependencies using bundler 1.13.6K
remote: Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin -j4 --deploymentK
remote: Using rake 12.0.0K
remote: Using concurrent-ruby 1.0.2K
remote: Using i18n 0.7.0K
remote: Using minitest 5.10.1K
remote: Using thread_safe 0.3.5K
remote: Using builder 3.2.2K
remote: Using erubis 2.7.0K
remote: Using mini_portile2 2.1.0K
remote: Using rack 1.6.5K
remote: Using public_suffix 2.0.4K
remote: Using ast 2.3.0K
remote: Using aws-sigv4 1.0.0K
remote: Using jmespath 1.3.1K
remote: Using json 2.0.2K
remote: Using docile 1.1.5K
remote: Using simplecov-html 0.10.0K
remote: Using tins 1.13.0K
remote: Using thor 0.19.4K
remote: Using diff-lcs 1.2.5K
remote: Using multipart-post 2.0.0K
remote: Using tilt 2.0.5K
remote: Using method_source 0.8.2K
remote: Using ptools 1.3.3K
remote: Using slop 3.6.0K
remote: Using power_assert 0.4.1K
remote: Using powerpack 0.1.1K
remote: Using rainbow 2.1.0K
remote: Using rspec-support 3.5.0K
remote: Using ruby-progressbar 1.8.1K
remote: Using unicode-display_width 1.1.2K
remote: Using sass 3.4.22K
remote: Using bundler 1.13.6K
remote: Using tzinfo 1.2.2K
remote: Using nokogiri 1.6.8.1K
remote: Using rack-test 0.6.3K
remote: Using rack-protection 1.5.3K
remote: Using sprockets 3.7.0K
remote: Using addressable 2.5.0K
remote: Using parser 2.3.3.1K
remote: Using aws-sdk-core 2.6.35K
remote: Using simplecov 0.12.0K
remote: Using term-ansicolor 1.4.0K
remote: Using test-unit 3.0.8K
remote: Using rspec-core 3.5.4K
remote: Using rspec-expectations 3.5.0K
remote: Using rspec-mocks 3.5.0K
remote: Using haml 4.0.7K
remote: Using faraday 0.10.0K
remote: Using activesupport 5.0.0K
remote: Using loofah 2.0.3K
remote: Using pdd 0.17.1K
remote: Using sinatra 1.4.7K
remote: Using aws-sdk-resources 2.6.35K
remote: Using rubocop 0.46.0K
remote: Using coveralls 0.8.17K
remote: Using sawyer 0.8.1K
remote: Using rails-dom-testing 2.0.1K
remote: Using rails-html-sanitizer 1.0.3K
remote: Using aws-sdk 2.6.35K
remote: Using rubocop-rspec 1.8.0K
remote: Using octokit 4.6.2K
remote: Using actionview 5.0.0K
remote: Using actionpack 5.0.0K
remote: Using railties 5.0.0K
remote: Using rspec-rails 3.5.2K
remote: Bundle complete! 15 Gemfile dependencies, 65 gems now installed.K
remote: Gems in the groups development and test were not installed.K
remote: Bundled gems are installed into ./vendor/bundle.K
remote: Bundle completed (0.40s)K
remote: Cleaning up the bundler cache.K
remote: -----> Detecting rake tasksK
remote:
remote: ###### WARNING:K
remote: You have not declared a Ruby version in your Gemfile.K
remote: To set your Ruby version add this line to your Gemfile:K
remote: ruby '2.2.2'K
remote: # See https://devcenter.heroku.com/articles/ruby-versions for more information.K
remote:
remote: -----> Discovering process typesK
remote: Procfile declares types -> webK
remote: Default types for buildpack -> console, rake, workerK
remote:
remote: -----> Compressing...K
remote: Done: 25.3MK
remote: -----> Launching...K
remote: Released v93K
remote: https://zeropdd.herokuapp.com/ deployed to HerokuK
remote:
remote: Verifying deploy... done.K
To git@heroku.com:zeropdd.git
+ 2061a13...3e62249 __rultor -> master (forced update)
+ git reset HEAD~1
Unstaged changes after reset:
M version.rb
+ curl -f --connect-timeout 15 --retry 5 --retry-delay 30 http://www.0pdd.com
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 1453 100 1453 0 0 9564 0 --:--:-- --:--:-- --:--:-- 9622
+ mv /home/r/repo .
++ whoami
+ chown -R root repo
+ '[' -n '' ']'
++ whoami
+ sudo chown -R rultor repo
+ cd repo
+ git checkout __rultor
Already on '__rultor'
M version.rb
+ git tag 0.4 -m '0.4: tagged by rultor.com'
+ git reset --hard
HEAD is now at 76f7b4a config.yml
+ git clean -fd
+ git checkout master
Switched to branch 'master'
+ git branch -D __rultor
Deleted branch __rultor (was 76f7b4a).
+ git push --all origin
Everything up-to-date
+ git push --tags origin
To git@github.com:yegor256/0pdd.git
* [new tag] 0.4 -> 0.4
container 0b4e1a3d91907b2cd91f29785d2f687efce8a375247c882c817fafd9debf6452 is dead
Tue Dec 13 22:26:04 UTC 2016