Skip to content

Commit

Permalink
apitest: speedup yarn apitest:run by rebuilding only backend
Browse files Browse the repository at this point in the history
  • Loading branch information
paulperegud committed Apr 30, 2024
1 parent 961dbc8 commit 9b4f580
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions localenv/scripts/images.sh
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,11 @@ build_subgraph(){
build_subgraph_base
}

SUBSYSTEM=${1:-}
if [ ! -z $SUBSYSTEM ]; then
build_$SUBSYSTEM
exit $?
fi

### Localenv tooling
build_control_plane
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"prettier:ts:pure": "prettier --parser typescript --write",
"type-check": "tsc --noEmit true",
"localenv:build-images": "./localenv/scripts/images.sh",
"localenv:build-backend": "./localenv/scripts/images.sh backend",
"localenv:build-anvil": "docker build --tag octant/anvil:latest -f localenv/anvil/Dockerfile localenv/anvil",
"localenv:up": "docker compose -p octant -f ./localenv/docker-compose.yaml -f ./localenv/localenv.yaml up -d",
"localenv:down": "docker compose -p octant -f ./localenv/docker-compose.yaml -f ./localenv/localenv.yaml down",
Expand All @@ -22,7 +23,7 @@
"apitest:down": "docker compose -p apitest -f ./localenv/docker-compose.yaml -f ./localenv/apitest.yaml down",
"apitest:run": "docker compose -p apitest -f ./localenv/docker-compose.yaml -f ./localenv/apitest.yaml run backend-apitest",
"preapitest:up": "docker rm -v -f $(docker ps -qa --filter 'name=apitest')",
"preapitest:run": "yarn localenv:build-images"
"preapitest:run": "yarn localenv:build-backend"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit 9b4f580

Please sign in to comment.