Skip to content

Commit

Permalink
Updated compose tests to include the subrepos
Browse files Browse the repository at this point in the history
  • Loading branch information
ivakegg committed Nov 27, 2024
1 parent ab18e63 commit 8fb515f
Show file tree
Hide file tree
Showing 12 changed files with 19 additions and 19 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,14 +110,14 @@ jobs:
# USER_NAME: ${{ secrets.USER_NAME }}
# ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
# run: |
# BUILD="mvn -s $GITHUB_WORKSPACE/.github/workflows/settings.xml -V -B -e -Pdev,examples,assemble,spotbugs -Dmaven.build.cache.enabled=false -DskipServices -Ddeploy -Ddist -T1C -pl "-:config-service" clean install -DskipTests"
# BUILD="mvn -s $GITHUB_WORKSPACE/.github/workflows/settings.xml -V -B -e -Dstarters -Dservices -Dutils -Pdev,examples,assemble,spotbugs -Dmaven.build.cache.enabled=false -DonlyServiceApis -Ddeploy -Ddist -T1C -pl "-:config-service" clean install -DskipTests"
# $BUILD
# - name: Run Microservice Unit Tests
# env:
# USER_NAME: ${{ secrets.USER_NAME }}
# ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
# run: |
# RUN_TESTS="mvn -s $GITHUB_WORKSPACE/.github/workflows/settings.xml -V -B -e -Dmaven.build.cache.enabled=false verify"
# RUN_TESTS="mvn -s $GITHUB_WORKSPACE/.github/workflows/settings.xml -V -B -e -Dstarters -Dservices -Dutils -Dmaven.build.cache.enabled=false verify"
# cd microservices
# $RUN_TESTS \
# || { echo "***** TESTS FAILED. Attempting retry."; $RUN_TESTS; } \
Expand Down Expand Up @@ -183,13 +183,13 @@ jobs:
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
run: |
# update datawave dependencies to use the latest snapshots
mvn -s $GITHUB_WORKSPACE/.github/workflows/settings.xml -B -V -e versions:update-properties versions:update-parent -DallowSnapshots=true -Dincludes=gov.nsa.*
mvn -s $GITHUB_WORKSPACE/.github/workflows/settings.xml -B -V -e -Dstarters -Dservices -Dutils versions:update-properties versions:update-parent -DallowSnapshots=true -Dincludes=gov.nsa.*
mvn -s $GITHUB_WORKSPACE/.github/workflows/settings.xml -B -V -e -Pcompose -Dmicroservice-docker -Dquickstart-docker -Ddeploy -Dtar -DskipTests clean install
mvn -s $GITHUB_WORKSPACE/.github/workflows/settings.xml -B -V -e -Dstarters -Dservices -Dutils -Pcompose -Dmicroservice-docker -Dquickstart-docker -Ddeploy -Dtar -DskipTests clean install
# free up some space so that we don't run out
docker system prune -f
mvn -s $GITHUB_WORKSPACE/.github/workflows/settings.xml -B -V -e -Pcompose -Dmicroservice-docker -Dquickstart-docker -Ddeploy -Dtar -DskipTests clean
mvn -s $GITHUB_WORKSPACE/.github/workflows/settings.xml -B -V -e -Dstarters -Dservices -Dutils -Pcompose -Dmicroservice-docker -Dquickstart-docker -Ddeploy -Dtar -DskipTests clean
cd docker
./bootstrap.sh
Expand Down Expand Up @@ -264,10 +264,10 @@ jobs:
-Durl.hadoop=https://bogus.apache.org/hadoop/common/hadoop-3.3.6/hadoop-3.3.6.tar.gz \
-Durl.maven=https://bogus.apache.org/maven/maven-3/3.8.8/binaries/apache-maven-3.8.8-bin.tar.gz"
mvn -s $GITHUB_WORKSPACE/.github/workflows/settings.xml -B -V -e -Pcompose -Dmicroservice-docker -Dquickstart-docker -Dquickstart-maven ${DIST_URLS} -Ddeploy -Dtar -DskipTests -Dmaven.build.cache.enabled=false clean install
mvn -s $GITHUB_WORKSPACE/.github/workflows/settings.xml -B -V -e -Dstarters -Dservices -Dutils -Pcompose -Dmicroservice-docker -Dquickstart-docker -Dquickstart-maven ${DIST_URLS} -Ddeploy -Dtar -DskipTests -Dmaven.build.cache.enabled=false clean install
# free up some space so that we don't run out
docker system prune -f
mvn -s $GITHUB_WORKSPACE/.github/workflows/settings.xml -B -V -e -Pcompose -Dmicroservice-docker -Dquickstart-docker -Dquickstart-maven ${DIST_URLS} -Ddeploy -Dtar -DskipTests -Dmaven.build.cache.enabled=false clean
mvn -s $GITHUB_WORKSPACE/.github/workflows/settings.xml -B -V -e -Dstarters -Dservices -Dutils -Pcompose -Dmicroservice-docker -Dquickstart-docker -Dquickstart-maven ${DIST_URLS} -Ddeploy -Dtar -DskipTests -Dmaven.build.cache.enabled=false clean
cd docker
./bootstrap.sh
attempt=0
Expand Down
2 changes: 1 addition & 1 deletion microservices/services/accumulo/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
<id>services</id>
<activation>
<property>
<name>!skipServices</name>
<name>!onlyServiceApis</name>
</property>
</activation>
<modules>
Expand Down
2 changes: 1 addition & 1 deletion microservices/services/audit/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
<id>services</id>
<activation>
<property>
<name>!skipServices</name>
<name>!onlyServiceApis</name>
</property>
</activation>
<modules>
Expand Down
2 changes: 1 addition & 1 deletion microservices/services/authorization/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
<id>services</id>
<activation>
<property>
<name>!skipServices</name>
<name>!onlyServiceApis</name>
</property>
</activation>
<modules>
Expand Down
2 changes: 1 addition & 1 deletion microservices/services/dictionary/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
<id>services</id>
<activation>
<property>
<name>!skipServices</name>
<name>!onlyServiceApis</name>
</property>
</activation>
<modules>
Expand Down
4 changes: 2 additions & 2 deletions microservices/services/file-provider/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,12 @@
<id>services</id>
<activation>
<property>
<name>!skipServices</name>
<name>!onlyServiceApis</name>
</property>
</activation>
<modules>
<module>service</module>
</modules>
</profile>
</profiles>
</project>
</project>
2 changes: 1 addition & 1 deletion microservices/services/hazelcast/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
<id>services</id>
<activation>
<property>
<name>!skipServices</name>
<name>!onlyServiceApis</name>
</property>
</activation>
<modules>
Expand Down
2 changes: 1 addition & 1 deletion microservices/services/mapreduce-query/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
<id>services</id>
<activation>
<property>
<name>!skipServices</name>
<name>!onlyServiceApis</name>
</property>
</activation>
<modules>
Expand Down
2 changes: 1 addition & 1 deletion microservices/services/modification/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
<id>services</id>
<activation>
<property>
<name>!skipServices</name>
<name>!onlyServiceApis</name>
</property>
</activation>
<modules>
Expand Down
2 changes: 1 addition & 1 deletion microservices/services/query-executor/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
<id>services</id>
<activation>
<property>
<name>!skipServices</name>
<name>!onlyServiceApis</name>
</property>
</activation>
<modules>
Expand Down
2 changes: 1 addition & 1 deletion microservices/services/query-metric/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
<id>services</id>
<activation>
<property>
<name>!skipServices</name>
<name>!onlyServiceApis</name>
</property>
</activation>
<modules>
Expand Down
2 changes: 1 addition & 1 deletion microservices/services/query/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
<id>services</id>
<activation>
<property>
<name>!skipServices</name>
<name>!onlyServiceApis</name>
</property>
</activation>
<modules>
Expand Down

0 comments on commit 8fb515f

Please sign in to comment.