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

vorburger 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 20e4c8e  FINERACT-697: add .travis.yml (and rm old un-used *build.sh) 
(#518)
20e4c8e is described below

commit 20e4c8e52736c4a38698f78b33944be523be7db3
Author: Michael Vorburger ⛑️ <[email protected]>
AuthorDate: Wed Feb 13 23:24:48 2019 +0100

    FINERACT-697: add .travis.yml (and rm old un-used *build.sh) (#518)
---
 travis_build.sh => .travis.yml | 24 ++++++++++++++++++------
 build-cloudbees.sh             | 27 ---------------------------
 build.sh                       | 38 --------------------------------------
 3 files changed, 18 insertions(+), 71 deletions(-)

diff --git a/travis_build.sh b/.travis.yml
old mode 100755
new mode 100644
similarity index 70%
rename from travis_build.sh
rename to .travis.yml
index 922b341..7fcfe45
--- a/travis_build.sh
+++ b/.travis.yml
@@ -1,5 +1,3 @@
-#!/bin/bash
-#
 # Licensed to the Apache Software Foundation (ASF) under one
 # or more contributor license agreements. See the NOTICE file
 # distributed with this work for additional information
@@ -17,10 +15,24 @@
 # specific language governing permissions and limitations
 # under the License.
 #
+language: java
+
+jdk:
+  - openjdk8
+
+# https://docs.travis-ci.com/user/languages/java/#caching
+before_cache:
+  - rm -f  $HOME/.gradle/caches/modules-2/modules-2.lock
+  - rm -fr $HOME/.gradle/caches/*/plugin-resolution/
+cache:
+  directories:
+    - $HOME/.gradle/caches/
+    - $HOME/.gradle/wrapper/
+    - $HOME/.m2
 
-cd fineract-provider
 # NOTE: The --info, while quite a bit more verbose, is VERY useful to 
understand failures on Travis,
-# where you do not have access to any files like 
build/reports/tests/index.html, only the Console. 
+# where you do not have access to any files like 
build/reports/tests/index.html, only the Console.
 # @see 
http://mrhaki.blogspot.ch/2013/05/gradle-goodness-show-more-information.html
-# @see 
http://forums.gradle.org/gradle/topics/whats_new_in_gradle_1_1_test_logging for 
alternative 
-./gradlew --info clean licenseMain licenseTest licenseIntegrationTest test
+# @see 
http://forums.gradle.org/gradle/topics/whats_new_in_gradle_1_1_test_logging for 
alternative
+script:
+  - ./gradlew --info clean licenseMain licenseTest licenseIntegrationTest test
diff --git a/build-cloudbees.sh b/build-cloudbees.sh
deleted file mode 100755
index d12f004..0000000
--- a/build-cloudbees.sh
+++ /dev/null
@@ -1,27 +0,0 @@
-#!/bin/bash
-#
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-#
-
-set -e
-
-# https://developer.cloudbees.com/bin/view/DEV/Node+Builds
-curl -s -o use-node 
https://repository-cloudbees.forge.cloudbees.com/distributions/ci-addons/node/use-node
-NODE_VERSION=0.11.12 . ./use-node
-
-./build.sh
diff --git a/build.sh b/build.sh
deleted file mode 100755
index f0b553a..0000000
--- a/build.sh
+++ /dev/null
@@ -1,38 +0,0 @@
-#!/bin/bash
-#
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-#
-
-
-# Exit the script if any command returns a non-true return value 
(http://www.davidpashley.com/articles/writing-robust-shell-scripts/)
-set -e
-
-git --version
-# TODO UNCOMMENT THIS once https://github.com/openMF/mifosx/pull/1291 is 
merged!
-# git pull
-# This does NOT get the most recent revision from the submodule repository.
-# Instead, it only gets the revision of the submodule that is recorded in the 
revision of the main repository.
-## NOT git submodule update --remote
-# The following is very important, because even if the main (API) repo is 
latest,
-# the sub-module initially will be a fixed old rev. and only this grabs real 
latest:
-git submodule foreach 'git checkout develop && git pull --ff-only origin 
develop'
-
-cd apps/community-app
-./build.sh
-cd ../../fineract-provider/
-./gradlew -Penv=dev clean dist

Reply via email to