reverted the changes

This commit is contained in:
Sidharth Bamba
2021-09-23 20:28:57 +05:30
parent 6006855707
commit 9907a32ce1
2 changed files with 6 additions and 33 deletions

View File

@@ -33,19 +33,14 @@ WORKDIR $WORK_DIR
RUN echo ${RELEASE_STORE_FILE} | base64 -d >> app/navi-release-key.jks
if [ $FLAVOR = E2ETEST ] ; then \
RUN ["chmod", "+x", "run-tests.sh"]
CMD ["./run-tests.sh"]
\
RUN bash -c " \
# if [ $FLAVOR = E2ETEST ] ; then \
# ./gradlew clean :app:testDevDebugUnitTest --tests com.naviapp.CustomerDataCleanup; \
# ./gradlew clean :app:testDevDebugUnitTest --tests com.naviapp.BrowserStackInit -PtestType=\"e2e\" executeE2ETests; \
# ./gradlew clean :app:testDevDebugUnitTest --tests com.naviapp.MockDataCleanup; \
# \
if [ $FLAVOR = DEV ] ; then \
if [ $FLAVOR = E2ETEST ] ; then \
./gradlew clean :app:testDevDebugUnitTest --tests com.naviapp.CustomerDataCleanup; \
./gradlew clean :app:testDevDebugUnitTest --tests com.naviapp.BrowserStackInit -PtestType=\"e2e\" executeE2ETests; \
./gradlew clean :app:testDevDebugUnitTest --tests com.naviapp.MockDataCleanup; \
\
elif [ $FLAVOR = DEV ] ; then \
./gradlew clean \
assembleDev -PFLAVOR=${FLAVOR} -PRELEASE_STORE_PASSWORD=${RELEASE_STORE_PASSWORD} -PRELEASE_KEY_PASSWORD=${RELEASE_KEY_PASSWORD} -PRELEASE_KEY_ALIAS=${RELEASE_KEY_ALIAS} ; \
\

View File

@@ -1,22 +0,0 @@
#!/usr/bin/env bash
./gradlew clean :app:testDevDebugUnitTest --tests com.naviapp.CustomerDataCleanup
status=$?
if [ $status -ne 0 ]; then
echo "Failed to start my_first_process: $status"
exit $status
fi
./gradlew clean :app:testDevDebugUnitTest --tests com.naviapp.BrowserStackInit -PtestType=\"e2e\" executeE2ETests
status=$?
if [ $status -ne 0 ]; then
echo "Failed to start my_first_process: $status"
exit $status
fi
./gradlew clean :app:testDevDebugUnitTest --tests com.naviapp.MockDataCleanup
if [ $status -ne 0 ]; then
echo "Failed to start my_first_process: $status"
exit $status
fi