Skip to content

Commit

Permalink
docker/run.sh: add -D option and use it in GH actions to avoid over-b…
Browse files Browse the repository at this point in the history
…uilding
  • Loading branch information
RayPlante committed Nov 3, 2023
1 parent 3543d16 commit 0304b3d
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 14 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@ jobs:
cd docker && bash ./dockbuild.sh
- name: Build & Run Python Tests via Docker
run: cd docker && ./testall python
run: cd docker && ./testall -D python

- name: Build & Run Java Tests via Docker
run: cd docker && ./makedist java
run: cd docker && ./makedist -D java

- name: Build Angular Code
run: cd docker && ./makedist angular
run: cd docker && ./makedist -D angular

- name: Run Angular Tests
run: cd docker && ./testall angular
run: cd docker && ./testall -D angular

8 changes: 4 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@ jobs:
cd docker && bash ./dockbuild.sh
- name: Build & Run Python Tests via Docker
run: cd docker && ./testall python
run: cd docker && ./testall -D python

- name: Build & Run Java Tests via Docker
run: cd docker && ./makedist java
run: cd docker && ./makedist -D java

- name: Build Angular Code
run: cd docker && ./makedist angular
run: cd docker && ./makedist -D angular

- name: Run Angular Tests
run: cd docker && ./testall angular
run: cd docker && ./testall -D angular

2 changes: 1 addition & 1 deletion .github/workflows/python-source.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@ jobs:
cd docker && bash ./dockbuild.sh python
- name: Run Unit Tests via Docker
run: cd docker && ./testall python
run: cd docker && ./testall -D python

8 changes: 4 additions & 4 deletions .github/workflows/testall.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ jobs:
cd docker && bash ./dockbuild.sh
- name: Build & Run Python Tests via Docker
run: cd docker && ./testall python
run: cd docker && ./testall -D python

- name: Test Java via Docker
run: cd docker && ./testall java
run: cd docker && ./testall -D java

- name: Build Angular Code
run: cd docker && ./makedist angular
run: cd docker && ./makedist -D angular

- name: Run Angular Tests
run: cd docker && ./testall angular
run: cd docker && ./testall -D angular
5 changes: 4 additions & 1 deletion docker/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,9 @@ while [ "$1" != "" ]; do
-d|--docker-build)
dodockbuild=1
;;
-D|--no-docker-build)
dodockbuild=0
;;
--dist-dir)
shift
distdir="$1"
Expand Down Expand Up @@ -172,7 +175,7 @@ if [ -z "$dodockbuild" ]; then
fi
fi

[ -z "$dodockbuild" ] || {
[ "$dodockbuild" != "1" ] || {
echo '#' Building missing docker containers...
$execdir/dockbuild.sh
}
Expand Down

0 comments on commit 0304b3d

Please sign in to comment.