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