git.delta.rocks / unique-network / refs/commits / d49cd5a4dda8

difftreelog

Update build steps in README and cleanup

Greg Zaitsev2020-12-22parent: #cf6c066.patch.diff
in: master

3 files changed

modifiedREADME.mddiffbeforeafterboth
5252
532. Remove all installed toolchains with `rustup toolchain list` and `rustup toolchain uninstall <toolchain>`.532. Remove all installed toolchains with `rustup toolchain list` and `rustup toolchain uninstall <toolchain>`.
5454
553. Install Rust Toolchain 1.44.0:553. Install Toolchain and make it default:
5656
57```bash57```bash
58rustup install 1.44.058rustup toolchain install nightly-2020-10-01
59rustup default nightly-2020-10-01
59```60```
6061
614. Make it default (actual toochain version may be different, so do a `rustup toolchain list` first)624. Add wasm target for default toolchain:
63
62```bash64```bash
63rustup toolchain list65rustup target add wasm32-unknown-unknown
64rustup default 1.44.0-x86_64-unknown-linux-gnu
65```66```
6667
675. Install nightly toolchain and add wasm target for it:685. Build:
68
69```bash69```bash
70rustup toolchain install nightly-2020-05-0170cargo build
71rustup target add wasm32-unknown-unknown --toolchain nightly-2020-05-01-x86_64-unknown-linux-gnu
72```71```
7372
746. Build:73optionally, build in release:
75```bash74```bash
76cargo build75cargo build --release
77```76```
7877
79## Run78## Run
133```132```
134133
135## UI custom types134## UI custom types
135
136Moved to [runtime_types.json](./runtime_types.json).
137
138## Running Integration Tests
136139
137Moved to [runtime_types.json](./runtime_types.json).140See [tests/README.md](./tests/README.md).
deletedtests/READMEdiffbeforeafterboth
--- a/tests/README
+++ /dev/null
@@ -1,12 +0,0 @@
-# Tests
-
-## How to run
-
-1. Run `npm install`.
-2. Setup a test node. You can do it using `docker-compose up -d` in parent directory.
-3. Configure tests with env variables or by editing [configuration file](src/config.ts).
-4. Run `npm run test`.
-
-## Don't run on the same node twice
-
-Some tests fail when ran on the same blockchain node twice. Either always use a new node or purge the existing one with `nft purge-chain --dev`. There is also [a script](../purge-running-node.sh) to purge and restart a node, started with docker-compose.
addedtests/README.mddiffbeforeafterboth
--- /dev/null
+++ b/tests/README.md
@@ -0,0 +1,9 @@
+# Tests
+
+## How to run
+
+1. Run `npm install`.
+2. Setup a test node. You can do it using `docker-compose up -d` in parent directory.
+3. Optional step - configure tests with env variables or by editing [configuration file](src/config.ts).
+4. Run `npm test`.
+