This is an automated email from the ASF dual-hosted git repository.

kaze pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/fineract.git


The following commit(s) were added to refs/heads/develop by this push:
     new 946bff4  FINERACT-1128: Switching build script from httpie to curl to 
allow retries
946bff4 is described below

commit 946bff46c1a07389f070d094c99634988ed80703
Author: Petri Tuomola <[email protected]>
AuthorDate: Wed Aug 26 16:44:44 2020 +0300

    FINERACT-1128: Switching build script from httpie to curl to allow retries
---
 .travis.yml | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/.travis.yml b/.travis.yml
index cd3a901..0c1fc3e 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -30,8 +30,7 @@ services:
 addons:
   apt:
     packages:
-    # https://httpie.org is used by the docker-compose test below
-    - httpie
+    - curl
 
 # See https://issues.apache.org/jira/browse/FINERACT-937 for background re. 
what below is all about..
 # We basically remove the outdated OpenJDK 11.0.2 which Travis image grabbed 
from java.net in
@@ -73,7 +72,6 @@ script:
 # using "&&" instead of several "-" means that integrationTest does not run if 
test fails,
 # and Docker test does not run if integration test fails, which makes PR 
failure easier to understand.
 # @see 
https://docs.travis-ci.com/user/job-lifecycle/#customizing-the-build-phase
-# NOTE: Sleep after docker-compose increased to 60 seconds as often Travis 
would fail to get Docker up in 30 seconds
-  - ./gradlew --console=plain -PautomatedBuild=true licenseMain licenseTest 
licenseIntegrationTest check  &&  ./gradlew --console=plain 
-PautomatedBuild=true integrationTest --fail-fast  &&  sudo service mysql stop  
&&  docker-compose build  &&  docker-compose up -d  &&  sleep 60s  &&  http 
--verify=no --timeout 240 --check-status get 
https://localhost:8443/fineract-provider/actuator/health  &&  (( $(http 
--verify=no --timeout 30 --check-status --body get 
https://localhost:8443/fineract- [...]
+  - ./gradlew --console=plain -PautomatedBuild=true licenseMain licenseTest 
licenseIntegrationTest check  &&  ./gradlew --console=plain 
-PautomatedBuild=true integrationTest --fail-fast  &&  sudo service mysql stop  
&&  docker-compose build  &&  docker-compose up -d  &&  sleep 60s  && curl -f 
-k --retry 5 --retry-connrefused --connect-timeout 30 --retry-delay 30 
https://localhost:8443/fineract-provider/actuator/health  &&  (( $(curl -f -k 
--retry 5 --retry-connrefused --connect-timeout 3 [...]
 # We stop the mysql system service when running the Docker test to avoid port 
3306 conflicts (unless we run the mysql in docker-compose on another port; req. 
FINERACT-773)
-# The fany /actuator/info test makes sure that has more than 100 characters of 
JSON to test that the git.properties worked (see FINERACT-983)
+# The fancy /actuator/info test makes sure that has more than 100 characters 
of JSON to test that the git.properties worked (see FINERACT-983)

Reply via email to