Skip to content

Commit

Permalink
chore: remove useless code (#1416)
Browse files Browse the repository at this point in the history
  • Loading branch information
yangby-cryptape authored Sep 11, 2023
1 parent dd745ad commit 1b51781
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 81 deletions.
37 changes: 4 additions & 33 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,32 +2,17 @@ VERBOSE := $(if ${CI},--verbose,)

COMMIT := $(shell git rev-parse --short HEAD)

ifneq ("$(wildcard /usr/lib/librocksdb.so)","")
SYS_LIB_DIR := /usr/lib
else ifneq ("$(wildcard /usr/lib64/librocksdb.so)","")
SYS_LIB_DIR := /usr/lib64
else
USE_SYS_ROCKSDB :=
endif

USE_SYS_ROCKSDB :=
SYS_ROCKSDB := $(if ${USE_SYS_ROCKSDB},ROCKSDB_LIB_DIR=${SYS_LIB_DIR},)

CARGO := env ${SYS_ROCKSDB} cargo
CARGO := cargo

test:
${CARGO} test ${VERBOSE} --all -- --skip trust_metric --nocapture
${CARGO} test ${VERBOSE} --all -- --nocapture

doc:
cargo doc --all --no-deps

doc-deps:
cargo doc --all

# generate GraphQL API documentation
doc-api:
bash docs/build/gql_api.sh

check:
${CARGO} check ${VERBOSE} --all

Expand Down Expand Up @@ -77,22 +62,8 @@ e2e-test:
pkill -2 axon
pkill -2 http-server

e2e-test-ci:
cargo build
rm -rf ./devtools/chain/data
./target/debug/axon init \
--config devtools/chain/config.toml \
--chain-spec devtools/chain/specs/single_node/chain-spec.toml \
--key-file devtools/chain/debug.key \
> /tmp/log 2>&1
./target/debug/axon run \
--config devtools/chain/config.toml \
>> /tmp/log 2>&1 &
cd tests/e2e && yarn
cd tests/e2e/src && yarn exec http-server &
cd tests/e2e && yarn exec wait-on -t 5000 tcp:8000 && yarn exec wait-on -t 5000 tcp:8080 && HEADLESS=true yarn test
pkill -2 axon
pkill -2 http-server
e2e-test-ci: HEADLESS=true
e2e-test-ci: e2e-test

e2e-test-via-docker:
docker-compose -f tests/e2e/docker-compose-e2e-test.yaml up --exit-code-from e2e-test --force-recreate
Expand Down

This file was deleted.

0 comments on commit 1b51781

Please sign in to comment.