Wrap docker steps in bash shells
This commit is contained in:
parent
06b5f6302c
commit
3915e121bd
3 changed files with 69 additions and 59 deletions
|
|
@ -13,27 +13,29 @@ steps:
|
|||
environment:
|
||||
CI: "true"
|
||||
commands:
|
||||
- set -eo pipefail
|
||||
- npm config set fund false
|
||||
- npm config set audit false
|
||||
- npm ci --prefix kraiken-lib --no-audit --no-fund
|
||||
- ./scripts/build-kraiken-lib.sh
|
||||
- npm ci --prefix landing --no-audit --no-fund
|
||||
- npm ci --prefix web-app --no-audit --no-fund
|
||||
- npm ci --prefix services/ponder --no-audit --no-fund
|
||||
- npm ci --prefix services/txnBot --no-audit --no-fund
|
||||
- npm run lint --prefix kraiken-lib
|
||||
- npm test --prefix kraiken-lib -- --runInBand
|
||||
- npm run lint --prefix landing
|
||||
- npm run build --prefix landing
|
||||
- npm run lint --prefix web-app
|
||||
- npm run test --prefix web-app -- --run
|
||||
- npm run build --prefix web-app
|
||||
- npm run lint --prefix services/ponder
|
||||
- npm run build --prefix services/ponder
|
||||
- npm run lint --prefix services/txnBot
|
||||
- npm run test --prefix services/txnBot
|
||||
- npm run build --prefix services/txnBot
|
||||
- bash -lc '
|
||||
set -euo pipefail
|
||||
npm config set fund false
|
||||
npm config set audit false
|
||||
npm ci --prefix kraiken-lib --no-audit --no-fund
|
||||
./scripts/build-kraiken-lib.sh
|
||||
npm ci --prefix landing --no-audit --no-fund
|
||||
npm ci --prefix web-app --no-audit --no-fund
|
||||
npm ci --prefix services/ponder --no-audit --no-fund
|
||||
npm ci --prefix services/txnBot --no-audit --no-fund
|
||||
npm run lint --prefix kraiken-lib
|
||||
npm test --prefix kraiken-lib -- --runInBand
|
||||
npm run lint --prefix landing
|
||||
npm run build --prefix landing
|
||||
npm run lint --prefix web-app
|
||||
npm run test --prefix web-app -- --run
|
||||
npm run build --prefix web-app
|
||||
npm run lint --prefix services/ponder
|
||||
npm run build --prefix services/ponder
|
||||
npm run lint --prefix services/txnBot
|
||||
npm run test --prefix services/txnBot
|
||||
npm run build --prefix services/txnBot
|
||||
'
|
||||
|
||||
- name: foundry-suite
|
||||
image: ubuntu:22.04
|
||||
|
|
@ -41,13 +43,15 @@ steps:
|
|||
FOUNDRY_DIR: /root/.foundry
|
||||
PATH: /root/.foundry/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
|
||||
commands:
|
||||
- set -eo pipefail
|
||||
- apt-get update
|
||||
- apt-get install -y curl git build-essential pkg-config libssl-dev
|
||||
- curl -L https://foundry.paradigm.xyz | bash
|
||||
- foundryup
|
||||
- cd onchain
|
||||
- forge --version
|
||||
- forge build --sizes
|
||||
- forge test -vvv
|
||||
- forge snapshot
|
||||
- bash -lc '
|
||||
set -euo pipefail
|
||||
apt-get update
|
||||
apt-get install -y curl git build-essential pkg-config libssl-dev
|
||||
curl -L https://foundry.paradigm.xyz | bash
|
||||
foundryup
|
||||
cd onchain
|
||||
forge --version
|
||||
forge build --sizes
|
||||
forge test -vvv
|
||||
forge snapshot
|
||||
'
|
||||
|
|
|
|||
|
|
@ -15,15 +15,17 @@ steps:
|
|||
PATH: /root/.foundry/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
|
||||
HARB_ENV: BASE_SEPOLIA_LOCAL_FORK
|
||||
commands:
|
||||
- set -eo pipefail
|
||||
- apt-get update
|
||||
- apt-get install -y curl git build-essential pkg-config libssl-dev
|
||||
- curl -L https://foundry.paradigm.xyz | bash
|
||||
- foundryup
|
||||
- cd onchain
|
||||
- forge build
|
||||
- forge test -vv --ffi
|
||||
- forge snapshot
|
||||
- bash -lc '
|
||||
set -euo pipefail
|
||||
apt-get update
|
||||
apt-get install -y curl git build-essential pkg-config libssl-dev
|
||||
curl -L https://foundry.paradigm.xyz | bash
|
||||
foundryup
|
||||
cd onchain
|
||||
forge build
|
||||
forge test -vv --ffi
|
||||
forge snapshot
|
||||
'
|
||||
|
||||
---
|
||||
|
||||
|
|
@ -46,13 +48,15 @@ steps:
|
|||
BASE_SEPOLIA_RPC:
|
||||
from_secret: base_sepolia_rpc
|
||||
commands:
|
||||
- set -eo pipefail
|
||||
- apt-get update
|
||||
- apt-get install -y curl git build-essential pkg-config libssl-dev
|
||||
- curl -L https://foundry.paradigm.xyz | bash
|
||||
- foundryup
|
||||
- cd onchain
|
||||
- export BASE_SEPOLIA_RPC="$BASE_SEPOLIA_RPC"
|
||||
- forge build
|
||||
- forge test -vv --ffi
|
||||
- forge snapshot
|
||||
- bash -lc '
|
||||
set -euo pipefail
|
||||
apt-get update
|
||||
apt-get install -y curl git build-essential pkg-config libssl-dev
|
||||
curl -L https://foundry.paradigm.xyz | bash
|
||||
foundryup
|
||||
cd onchain
|
||||
export BASE_SEPOLIA_RPC="$BASE_SEPOLIA_RPC"
|
||||
forge build
|
||||
forge test -vv --ffi
|
||||
forge snapshot
|
||||
'
|
||||
|
|
|
|||
|
|
@ -13,14 +13,16 @@ steps:
|
|||
FOUNDRY_DIR: /root/.foundry
|
||||
PATH: /root/.foundry/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
|
||||
commands:
|
||||
- set -eo pipefail
|
||||
- apt-get update
|
||||
- apt-get install -y curl git build-essential bc
|
||||
- curl -L https://foundry.paradigm.xyz | bash
|
||||
- foundryup
|
||||
- cd onchain
|
||||
- forge --version
|
||||
- ./analysis/run-fuzzing.sh BullMarketOptimizer runs=75
|
||||
- bash -lc '
|
||||
set -euo pipefail
|
||||
apt-get update
|
||||
apt-get install -y curl git build-essential bc
|
||||
curl -L https://foundry.paradigm.xyz | bash
|
||||
foundryup
|
||||
cd onchain
|
||||
forge --version
|
||||
./analysis/run-fuzzing.sh BullMarketOptimizer runs=75
|
||||
'
|
||||
|
||||
- name: package-results
|
||||
image: alpine:3.20
|
||||
|
|
@ -29,7 +31,7 @@ steps:
|
|||
- success
|
||||
- failure
|
||||
commands:
|
||||
- set -eo pipefail
|
||||
- set -e
|
||||
- apk add --no-cache tar
|
||||
- mkdir -p artifacts
|
||||
- if [ -d onchain/analysis ]; then tar -czf artifacts/fuzz-results.tgz onchain/analysis; fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue