Skip to content

Commit

Permalink
Actualize dependencies and NodeJS version (#158)
Browse files Browse the repository at this point in the history
* Dependency updates: use solc-typed-ast v9.0.0, latest ethereumjs-vm and other deps. Other compatibility tweaks to work with NodeJS v16 LTS. Updated README.

* Bumped NodeJS version to v16 LTS in CI

* Add predownloading WASM compilers to CI config

* Add JSON artifacts for few samples to boost CI a bit
  • Loading branch information
blitz-1306 committed Mar 9, 2022
1 parent fbb638d commit 33dfc06
Show file tree
Hide file tree
Showing 33 changed files with 9,462 additions and 8,193 deletions.
5 changes: 3 additions & 2 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ platform:

steps:
- name: build_test
image: node:12
image: node:16.14.0
environment:
CODECOV_TOKEN:
from_secret: CODECOV_TOKEN
Expand All @@ -18,9 +18,10 @@ steps:
# see https://binaries.soliditylang.org/
- apt-get -qq update && apt-get -qq install jq
- ./download.sh 'linux-amd64' $SOL_AST_COMPILER_CACHE
- ./download.sh 'wasm' $SOL_AST_COMPILER_CACHE
# perform testing
- npm install --unsafe-perm
- npm link --unsafe-perm
- npm run lint
- npm run test
- npm run test:ci
- npm run coverage:upload
33 changes: 21 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,24 @@ For more information on the Scribble specification language, and any other docum

## Development installation

- Install prerequisites:
- NodeJS version **10.x** - **12.x**.
- NPM version **6.9.0** or newer.
- Clone repository:
```console
git clone https://github.com/ConsenSys/scribble.git
```
- Install and link:
```console
npm install
npm link
```
### Prerequisites

We suggest to use latest NodeJS LTS release `lts/gallium` (v16.14.0) and associated version of NPM. If there is a need to run different NodeJS versions, consider using [NVM](https://github.com/nvm-sh/nvm) or similar tool, that is available for your platform.

### Clone and build

Clone repository, install and link:

```bash
git clone https://github.com/ConsenSys/scribble.git
cd scribble/
npm install
npm link
```

Prior to running tests the compiler pre-downloading script `download.sh` may be used to setup local compiler cache:

```bash
download.sh 'linux-amd64' '.compiler_cache' # platform-dependent native compiler builds
download.sh 'wasm' '.compiler_cache' # cross-platform WASM compiler builds
```
Loading

0 comments on commit 33dfc06

Please sign in to comment.