Skip to content

Commit

Permalink
Builds: Update game-app/run/check to dynamically find sub-projects (#…
Browse files Browse the repository at this point in the history
…11514)

This update will cause the following command to be run:

```
./game-app/run/../../gradlew --parallel :game-app:game-core:check :game-app:game-headless:check
:game-app:domain-data:check :game-app:map-data:check :game-app:game-headed:check
:game-app:smoke-testing:check :game-app:game-relay-server:check :game-app:ai:check
```

Previously we had to explicitly list out of all of these subprojects. This update assumes any
folders under neath 'game-app' will be a dependency runs tests in all of those folders.
  • Loading branch information
DanVanAtta committed Apr 1, 2023
1 parent 7304e73 commit d4088a9
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions game-app/run/check
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,13 @@

set -e


scriptDir=$(dirname "$0")
"$scriptDir/../../gradlew" --parallel \
:game-app:ai:check \
:game-app:domain-data:check \
:game-app:game-core:check \
:game-app:game-headed:check \
:game-app:game-headless:check \
:game-app:game-relay-server:check \
:game-app:map-data:check \
:game-app:smoke-testing:check

SUB_PROJECTS=$(find $scriptDir/../ -name "build.gradle" -type f | xargs dirname | sed 's|.*\.\./|:game-app:|' | sed 's/$/:check/' | tr '\n' ' ')

"$scriptDir/../../gradlew" --parallel $SUB_PROJECTS


"$scriptDir/.build/check-links"

0 comments on commit d4088a9

Please sign in to comment.