solana-program-library/ci/token.sh

34 lines
681 B
Bash
Raw Normal View History

#!/usr/bin/env bash
set -ex
# Test program
2020-07-07 02:09:19 -07:00
cd "$(dirname "$0")/.."
./do.sh fmt token --all -- --check
./do.sh clippy token -- --deny=warnings
SPL_CBINDGEN=1 ./do.sh build-lib token -D warnings
# git diff --exit-code token/program/inc/token.h
2020-08-07 23:58:18 -07:00
cc token/program/inc/token.h -o target/token.gch
./do.sh build token
2020-07-07 02:09:19 -07:00
./do.sh doc token
./do.sh test token
2020-06-17 11:25:19 -07:00
2020-07-31 11:59:25 -07:00
# Test cli
2020-08-07 23:58:18 -07:00
./do.sh fmt token/cli --all -- --check
./do.sh clippy token/cli -- --deny=warnings
2020-07-31 11:59:25 -07:00
# Test js bindings
2020-07-07 02:09:19 -07:00
cd "$(dirname "$0")/../token/js"
npm install
npm run lint
npm run flow
2020-07-30 02:07:55 -07:00
tsc module.d.ts
npm run cluster:localnet
2020-08-07 18:00:03 -07:00
npm run localnet:down
npm run localnet:update
npm run localnet:up
2020-07-07 02:09:19 -07:00
npm run start
npm run localnet:down