1 | #!/bin/sh
|
2 |
|
3 | BLOCKSTACK_BRANCH="rc-0.14.3"
|
4 | BLOCKSTACK_JS_BRANCH="master"
|
5 |
|
6 |
|
7 | sudo add-apt-repository -y ppa:bitcoin/bitcoin || exit 1
|
8 | sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys F76221572C52609D
|
9 | sudo apt-get -y update || exit 1
|
10 | sudo apt-get -y install bitcoind || exit 1
|
11 |
|
12 |
|
13 | pip install --upgrade pip
|
14 | pip install --upgrade six
|
15 | pip install --upgrade setuptools
|
16 | pip install --upgrade cryptography
|
17 | pip install --upgrade scrypt
|
18 | pip install --upgrade fastecdsa
|
19 |
|
20 |
|
21 | git clone https://github.com/blockstack/virtualchain /tmp/virtualchain
|
22 | cd /tmp/virtualchain && git checkout "$BLOCKSTACK_BRANCH"
|
23 | cd /tmp/virtualchain && ./setup.py build && ./setup.py install
|
24 |
|
25 |
|
26 | git clone https://github.com/blockstack/blockstack-core /tmp/blockstack-core
|
27 | cd /tmp/blockstack-core && git checkout "$BLOCKSTACK_BRANCH"
|
28 |
|
29 |
|
30 | cd /tmp/blockstack-core && ./setup.py build && ./setup.py install
|
31 | cd /tmp/blockstack-core/integration_tests && ./setup.py build && ./setup.py install
|
32 |
|
33 |
|
34 | npm install -g npm@^5.3.0
|
35 |
|
36 |
|
37 | npm install -g browserify
|
38 | npm uninstall -g babel
|
39 | npm install -g --save-dev babel-cli
|
40 | npm install -g --save-dev babel-preset-es2015
|
41 |
|
42 |
|
43 | git clone https://github.com/blockstack/blockstack.js /tmp/blockstack.js
|
44 | cd /tmp/blockstack.js && git checkout "$BLOCKSTACK_JS_BRANCH" && npm install && npm link
|
45 |
|
46 |
|
47 | cd "$HOME"/blockstack-storage-js && rm -rf node_modules && npm install && npm link blockstack && npm link
|
48 |
|
49 |
|
50 | sudo mkdir -p /usr/lib/node_modules
|
51 | sudo ln -s "$(npm config get prefix)"/lib/node_modules/blockstack /usr/lib/node_modules/blockstack
|
52 | sudo ln -s "$(npm config get prefix)"/lib/node_modules/blockstack-storage /usr/lib/node_modules/blockstack-storage
|
53 |
|
54 |
|
55 | blockstack-test-scenario blockstack_integration_tests.scenarios.name_preorder_register_portal_auth || exit 1
|
56 | blockstack-test-scenario blockstack_integration_tests.scenarios.name_preorder_register_portal_datastore || exit 1
|