+ set -e
+ set -o pipefail
++ dirname ./run.sh
+ cd .
+ echo 29415
+ echo '1.57.12 20fd025'
1.57.12 20fd025
+ date
Wed Nov 4 18:35:16 UTC 2015
+ uptime
18:35:16 up 63 days, 6:57, 0 users, load average: 3.35, 4.02, 5.18
+ head=git@github.com:yegor256/dynamo-archive.git
+ head_branch=master
+ tag=0.2.0
+ vars=('--env=head=git@github.com:yegor256/dynamo-archive.git' '--env=head_branch=master' '--env=tag=0.2.0')
+ image=yegor256/rultor
+ directory=
+ scripts=('npm install' ';' 'node --version' ';' 'npm -version' ';' 'npm test' ';' 'sed -i "s/0.0.0/${tag}/g" package.json' ';' 'chmod 600 ../npmrc' ';' 'npm publish --userconfig=../npmrc' ';')
+ squash=false
+ ff=default
+ rebase=false
+ container=yegor256_dynamo-archive_18
+ 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/dynamo-archive.git repo
Cloning into 'repo'...
+ cd repo
+ git config user.email me@rultor.com
+ git config user.name rultor
+ '[' -z 'npm install' ']'
+ cd ..
+ cat
+ '[' false = true ']'
+ cat
+ chmod a+x entry.sh
+ cat
+ echo 'npm install' ';' 'node --version' ';' 'npm -version' ';' 'npm test' ';' 'sed -i "s/0.0.0/${tag}/g" package.json' ';' 'chmod 600 ../npmrc' ';' 'npm publish --userconfig=../npmrc' ';'
+ gpgconf --reload gpg-agent
+ gpg --keyserver hkp://pool.sks-keyservers.net --verbose --recv-keys 9AF0FA4C
gpg: requesting key 9AF0FA4C from hkp server pool.sks-keyservers.net
Version: SKS 1.1.5
gpg: armor header:
Comment: Hostname: keyserver.computer42.org
gpg: armor header:
gpg: pub 2048R/9AF0FA4C 2014-08-17 Rultor.com <gpg@rultor.com>
gpg: key 9AF0FA4C: "Rultor.com <gpg@rultor.com>" not changed
gpg: Total number processed: 1
gpg: unchanged: 1
+ gpg --version
gpg (GnuPG) 2.0.22
libgcrypt 1.5.3
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Home: ~/.gnupg
Supported algorithms:
Pubkey: RSA, ELG, DSA
Cipher: IDEA, 3DES, CAST5, BLOWFISH, AES, AES192, AES256, TWOFISH,
CAMELLIA128, CAMELLIA192, CAMELLIA256
Hash: MD5, SHA1, RIPEMD160, SHA256, SHA384, SHA512, SHA224
Compression: Uncompressed, ZIP, ZLIB, BZIP2
++ pwd
++ pwd
+ gpg --verbose --keyring=/tmp/rultor-5i1j/.gpg/pubring.gpg --secret-keyring=/tmp/rultor-5i1j/.gpg/secring.gpg --decrypt repo/npmrc.asc
Version: GnuPG v1
gpg: armor header:
gpg: public key is 9A839C3A
gpg: using subkey 9A839C3A instead of primary key 9AF0FA4C
gpg: using subkey 9A839C3A instead of primary key 9AF0FA4C
gpg: encrypted with 2048-bit RSA key, ID 9A839C3A, created 2014-08-17
"Rultor.com <gpg@rultor.com>"
gpg: AES256 encrypted data
gpg: original file name='npmrc.enc'
+ gpg --no-tty --batch --verbose --decrypt --passphrase rultor-key:yegor256/dynamo-archive npmrc.enc
Version: GnuPG v1
gpg: armor header:
gpg: CAST5 encrypted data
gpg: encrypted with 1 passphrase
gpg: original file name='npmrc'
gpg: WARNING: message was not integrity protected
+ rm -rf npmrc.enc
+ rm -rf .gpg
+ '[' -z 0.2.0 ']'
+ [[ 0.2.0 =~ ^[a-zA-Z0-9\\.\\-]+$ ]]
+ echo 'tag name is valid: "0.2.0"'
tag name is valid: "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
++ sed 's/ /\n/g'
++ tail -n 1
+ load=5.18
++ echo 5.18 '>' 30
++ bc
+ '[' 0 -eq 1 ']'
+ echo 'load average is 5.18, low enough to run a new Docker container'
load average is 5.18, low enough to run a new Docker container
+ break
+ cd ..
+ '[' -n '' ']'
+ use_image=yegor256/rultor
+ docker pull yegor256/rultor
Trying to pull repository docker.io/yegor256/rultor ...
c044176bd937: Pulling image (latest) from docker.io/yegor256/rultor
c044176bd937: Pulling image (latest) from docker.io/yegor256/rultor, endpoint: https://registry-1.docker.io/v1/
c044176bd937: Pulling dependent layers
3fd0c2ae8ed2: Download complete
9e19ac89d27c: Download complete
ac65c371c3a5: Download complete
a5a467fddcb8: Download complete
5cacc5649dd4: Download complete
ba7557abf23e: Download complete
543c8801ed7e: Download complete
cd78c82d3b4e: Download complete
c780c8e7f42e: Download complete
788b5f37cd28: Download complete
29984d5f27da: Download complete
63b08dff7e86: Download complete
f3a7c246c4ba: Download complete
5eb329e68c3d: Download complete
3c3bf6216065: Download complete
43179cb0bef7: Download complete
9fcc9a6106f1: Download complete
7161de8e77aa: Download complete
4f4931fc89a0: Download complete
274e6042e702: Download complete
dd7ccdb610bb: Download complete
e27b65c4aa07: Download complete
e07fb3c141ce: Download complete
49f7491d122c: Download complete
d7aa3d681f01: Download complete
f2721ad661aa: Download complete
094ee4469fdf: Download complete
aedaf4c4caf8: Download complete
5ed8b0ded96d: Download complete
48684ad37d49: Download complete
32ee282e1fd6: Download complete
a7e0bfeb12c5: Download complete
81ec5f20c2f2: Download complete
0bb9ed0d298f: Download complete
05e71e08d619: Download complete
7a8088d5663b: Download complete
6ba972febb10: Download complete
ed57aba47094: Download complete
32d9c7aa1660: Download complete
3411d651f902: Download complete
91412db29e21: Download complete
2e64fd071912: Download complete
5b7e07b60f31: Download complete
32eafb9d259d: Download complete
42124c0c1d8b: Download complete
03f43a17e359: Download complete
06eead0f8bf7: Download complete
f9bd86f16380: Download complete
5be8e92937ce: Download complete
20038a453a3f: Download complete
43e2c8f2bcc9: Download complete
5ef5c6e5700c: Download complete
c044176bd937: Download complete
c044176bd937: Download complete
Status: Image is up to date for docker.io/yegor256/rultor:latest
+ docker ps --filter=status=exited
+ grep --quiet '\syegor256_dynamo-archive_18\s*$'
++ pwd
++ pwd
+ docker run --rm -v /tmp/rultor-5i1j:/main --env=head=git@github.com:yegor256/dynamo-archive.git --env=head_branch=master --env=tag=0.2.0 --privileged=true --hostname=docker --memory=6g --cidfile=/tmp/rultor-5i1j/cid -w=/main --name=yegor256_dynamo-archive_18 yegor256/rultor /main/entry.sh
+ set -e
+ set -o pipefail
+ shopt -s dotglob
+ useradd -m -G sudo r
+ echo '%sudo ALL=(ALL) NOPASSWD:ALL'
+ cp -R /root/.bashrc /root/.gem /root/.java /root/.m2 /root/.npm /root/.profile /root/texmf /root/.texmf-var /root/tmp /home/r
+ cp -R ./cid ./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 -m r -c /home/r/script.sh
+ set -e
+ set -o pipefail
+ export HOME=/home/r
+ HOME=/home/r
+ cd /home/r/repo
+ npm install
npm WARN deprecated object-keys@0.2.0: Please update to the latest object-keys
> leveldown@0.10.5 install /home/r/repo/node_modules/leveldown
> node-gyp rebuild
make: Entering directory `/home/r/repo/node_modules/leveldown/build'
CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.14.0/db/builder.o
CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.14.0/db/db_impl.o
CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.14.0/db/db_iter.o
CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.14.0/db/filename.o
CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.14.0/db/dbformat.o
CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.14.0/db/log_reader.o
CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.14.0/db/log_writer.o
CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.14.0/db/memtable.o
CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.14.0/db/repair.o
CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.14.0/db/table_cache.o
CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.14.0/db/version_edit.o
CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.14.0/db/version_set.o
CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.14.0/db/write_batch.o
CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.14.0/helpers/memenv/memenv.o
CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.14.0/table/block.o
CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.14.0/table/block_builder.o
CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.14.0/table/filter_block.o
CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.14.0/table/format.o
CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.14.0/table/iterator.o
CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.14.0/table/merger.o
CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.14.0/table/table.o
CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.14.0/table/table_builder.o
CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.14.0/table/two_level_iterator.o
CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.14.0/util/arena.o
CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.14.0/util/bloom.o
CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.14.0/util/cache.o
CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.14.0/util/coding.o
CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.14.0/util/comparator.o
CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.14.0/util/crc32c.o
CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.14.0/util/env.o
CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.14.0/util/filter_policy.o
CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.14.0/util/hash.o
CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.14.0/util/logging.o
CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.14.0/util/options.o
CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.14.0/util/status.o
CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.14.0/port/port_posix.o
CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.14.0/util/env_posix.o
AR(target) Release/obj.target/deps/leveldb/leveldb.a
COPY Release/leveldb.a
CXX(target) Release/obj.target/snappy/deps/snappy/snappy-1.1.1/snappy-sinksource.o
CXX(target) Release/obj.target/snappy/deps/snappy/snappy-1.1.1/snappy-stubs-internal.o
CXX(target) Release/obj.target/snappy/deps/snappy/snappy-1.1.1/snappy.o
AR(target) Release/obj.target/deps/snappy/snappy.a
COPY Release/snappy.a
CXX(target) Release/obj.target/leveldown/src/batch.o
CXX(target) Release/obj.target/leveldown/src/batch_async.o
CXX(target) Release/obj.target/leveldown/src/database.o
CXX(target) Release/obj.target/leveldown/src/database_async.o
CXX(target) Release/obj.target/leveldown/src/iterator.o
CXX(target) Release/obj.target/leveldown/src/iterator_async.o
CXX(target) Release/obj.target/leveldown/src/leveldown.o
CXX(target) Release/obj.target/leveldown/src/leveldown_async.o
SOLINK_MODULE(target) Release/obj.target/leveldown.node
COPY Release/leveldown.node
make: Leaving directory `/home/r/repo/node_modules/leveldown/build'
> sleep@3.0.0 install /home/r/repo/node_modules/sleep
> node-gyp rebuild
make: Entering directory `/home/r/repo/node_modules/sleep/build'
CXX(target) Release/obj.target/node_sleep/sleep.o
SOLINK_MODULE(target) Release/obj.target/node_sleep.node
COPY Release/node_sleep.node
make: Leaving directory `/home/r/repo/node_modules/sleep/build'
dynamo-archive@0.0.0 /home/r/repo
├─┬ aws-sdk@2.0.31
│ ├─┬ xml2js@0.2.6
│ │ └── sax@0.4.2
│ └── xmlbuilder@0.4.2
├── dotenv@0.4.0
├─┬ dynalite@0.3.8
│ ├── async@0.2.10
│ ├── big.js@2.4.1
│ ├── buffer-crc32@0.2.5
│ ├── lazy@1.0.11
│ ├─┬ level-sublevel@5.1.1
│ │ ├─┬ level-fix-range@2.0.0
│ │ │ └── clone@0.1.19
│ │ ├── level-hooks@4.5.0
│ │ ├── string-range@1.2.2
│ │ └─┬ xtend@2.0.6
│ │ ├── is-object@0.1.2
│ │ └─┬ object-keys@0.2.0
│ │ ├── foreach@2.0.5
│ │ ├── indexof@0.0.1
│ │ └── is@0.2.7
│ ├─┬ leveldown@0.10.5
│ │ ├── bindings@1.2.1
│ │ └── nan@1.8.4
│ ├─┬ levelup@0.18.6
│ │ ├── bl@0.8.2
│ │ ├── deferred-leveldown@0.2.0
│ │ ├── errno@0.1.4
│ │ ├── prr@0.0.0
│ │ ├─┬ readable-stream@1.0.33
│ │ │ ├── core-util-is@1.0.1
│ │ │ ├── isarray@0.0.1
│ │ │ └── string_decoder@0.10.31
│ │ ├── semver@2.3.2
│ │ └── xtend@3.0.0
│ ├── lock@0.0.4
│ ├─┬ memdown@0.7.1
│ │ ├─┬ abstract-leveldown@0.12.4
│ │ │ └── xtend@3.0.0
│ │ └─┬ bops@0.1.1
│ │ ├── base64-js@0.0.2
│ │ └── to-utf8@0.0.1
│ ├── minimist@0.0.10
│ └─┬ once@1.3.2
│ └── wrappy@1.0.1
├─┬ faucet@0.0.1
│ ├── defined@0.0.0
│ ├── duplexer@0.1.1
│ ├── minimist@0.0.5
│ ├── sprintf@0.1.5
│ ├─┬ tap-parser@0.4.3
│ │ └── readable-stream@1.1.13
│ ├─┬ tape@2.3.3
│ │ ├── deep-equal@0.1.2
│ │ └── jsonify@0.0.0
│ └─┬ through2@0.2.3
│ ├── readable-stream@1.1.13
│ └─┬ xtend@2.1.2
│ └── object-keys@0.4.0
├── minimist@1.1.3
├─┬ sleep@3.0.0
│ └── nan@2.1.0
└─┬ tape@2.13.4
├── deep-equal@0.2.2
├─┬ glob@3.2.11
│ └─┬ minimatch@0.3.0
│ ├── lru-cache@2.7.0
│ └── sigmund@1.0.1
├── inherits@2.0.1
├── object-inspect@0.4.0
├── resumer@0.0.0
└── through@2.3.8
npm WARN EPACKAGEJSON dynamo-archive@0.0.0 license should be a valid SPDX license expression
+ node --version
v0.10.25
+ npm -version
3.3.10
+ npm test
> dynamo-archive@0.0.0 test /home/r/repo
> tape test/archive.test.js | faucet
# Load archiveK
#AExportmarchiveKrchive0m1B1G
#AExportmarchivetwithhqueryKB1G
#Atests211KExportuarchiveswith query0m1B1G
#epass1111K
#aokK 11
1A1G1m32m✓ ok0m1B1G+ sed -i s/0.0.0/0.2.0/g package.json
+ chmod 600 ../npmrc
+ npm publish --userconfig=../npmrc
+ dynamo-archive@0.2.0
+ 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 package.json
+ git tag 0.2.0 -m '0.2.0: tagged by rultor.com'
+ git reset --hard
HEAD is now at dda3717 #18 show node version
+ git clean -fd
+ git checkout master
Switched to branch 'master'
+ git branch -D __rultor
Deleted branch __rultor (was dda3717).
+ git push --all origin
Everything up-to-date
+ git push --tags origin
To git@github.com:yegor256/dynamo-archive.git
* [new tag] 0.2.0 -> 0.2.0