-
Notifications
You must be signed in to change notification settings - Fork 3
/
justfile
63 lines (53 loc) · 1.92 KB
/
justfile
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
full-check: proto-gen tidy lint build test-unit build-docker-images test-e2e
build:
@echo "Building all the components"
cd core && make build
cd configmodule && make build
cd sidecar && make build
cd testing/simapp && make build
cd testing/rollupsimapp && make build
cd testing/interchaintest && go build ./...
lint:
@echo "Running golangci-lint in all packages"
cd core && golangci-lint run
cd configmodule && golangci-lint run
cd sidecar && golangci-lint run
cd testing/simapp && golangci-lint run
cd testing/rollupsimapp && golangci-lint run
cd testing/interchaintest && golangci-lint run
lint-fix:
@echo "Running golangci-lint in all packages"
cd core && golangci-lint run --fix
cd configmodule && golangci-lint run --fix
cd sidecar && golangci-lint run --fix
cd testing/simapp && golangci-lint run --fix
cd testing/rollupsimapp && golangci-lint run --fix
cd testing/interchaintest && golangci-lint run --fix
tidy:
@echo "Running go mod tidy in all packages"
cd core && go mod tidy
cd configmodule && go mod tidy
cd sidecar && go mod tidy
cd testing/simapp && go mod tidy
cd testing/rollupsimapp && go mod tidy
cd testing/interchaintest && go mod tidy
proto-gen:
@echo "Generating proto files in all packages"
cd core && make proto-gen
cd configmodule && make proto-gen
test-unit:
@echo "Running unit tests in all packages"
cd core && make test
cd configmodule && make test
cd sidecar && make test
test-e2e image-version="local":
if [[ "{{image-version}}" = "local" ]]; then just build-docker-images; fi
cd testing && DOCKER_IMAGE_VERSION={{image-version}} make interchaintest
build-docker-images:
cd testing && make docker-images
install-simapps:
@echo "Installing simapps"
cd testing && make install-simapps
serve:
@echo "Spinning up a test environment"
cd testing && make serve