forked from Consensys/solc-typed-ast
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.drone.yml
32 lines (30 loc) · 1.17 KB
/
.drone.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
kind: pipeline
name: default
platform:
os: linux
arch: amd64
steps:
- name: build_test
image: node:16.14.0
environment:
CODECOV_TOKEN:
from_secret: CODECOV_TOKEN
SOL_AST_COMPILER_CACHE: /.compiler_cache
commands:
# pre-download compilers from historical builds archive
# see https://github.com/ethereum/solc-bin
# see https://binaries.soliditylang.org/
- apt-get -qq update && apt-get -qq install jq
- ./docker/download.sh 'linux-amd64' $SOL_AST_COMPILER_CACHE
- ./docker/download.sh 'wasm' $SOL_AST_COMPILER_CACHE
# remove list and one rarely used compiler to still test downloading on-demand
- rm $SOL_AST_COMPILER_CACHE/linux-amd64/list.json
- rm $SOL_AST_COMPILER_CACHE/linux-amd64/solc-linux-amd64-v0.5.17+commit.d19bba13
- rm $SOL_AST_COMPILER_CACHE/wasm/list.json
- rm $SOL_AST_COMPILER_CACHE/wasm/soljson-v0.5.17+commit.d19bba13.js
# perform testing
- npm install --unsafe-perm
- npm link --unsafe-perm
- npm run lint
- npm test
- npm run coverage:upload