ci(gradle): create gradle properties

parent abce1974
......@@ -11,6 +11,9 @@ jobs:
- checkout
- restore_cache:
key: jars-{{ checksum "build.gradle" }}-{{ checksum "glpi/build.gradle" }}
- run:
name: Setup gradle properties
command: source ci/scripts/ci_gradle_properties.sh
- run:
name: Build
command: ./gradlew build
......@@ -26,6 +29,9 @@ jobs:
JVM_OPTS: -Xmx3200m
steps:
- checkout
- run:
name: Setup gradle properties
command: source ci/scripts/ci_gradle_properties.sh
- run:
name: Setup emulator
command: sdkmanager "system-images;android-25;google_apis;armeabi-v7a" && echo "no" | avdmanager create avd -n test -k "system-images;android-25;google_apis;armeabi-v7a"
......@@ -57,6 +63,9 @@ jobs:
JVM_OPTS: -Xmx3200m
steps:
- checkout
- run:
name: Setup gradle properties
command: source ci/scripts/ci_gradle_properties.sh
- run:
name: Setup emulator
command: sdkmanager "system-images;android-16;default;armeabi-v7a" && echo "no" | avdmanager create avd -n test -k "system-images;android-16;default;armeabi-v7a"
......@@ -91,6 +100,9 @@ jobs:
- checkout
- restore_cache:
key: jars-{{ checksum "build.gradle" }}-{{ checksum "glpi/build.gradle" }}
- run:
name: Setup gradle properties
command: source ci/scripts/ci_gradle_properties.sh
- run:
name: Validate
command: source ci/scripts/ci_validate_workflow.sh
......@@ -124,6 +136,9 @@ jobs:
- checkout
- restore_cache:
key: jars-{{ checksum "build.gradle" }}-{{ checksum "glpi/build.gradle" }}
- run:
name: Setup gradle properties
command: source ci/scripts/ci_gradle_properties.sh
- run:
name: Setup environment
command: source ci/scripts/ci_setup.sh
......
#!/bin/bash
# ---------------------------------------------------------------------
#
# LICENSE
#
# This file is part of the GLPI API Client Library for Java,
# a subproject of GLPI. GLPI is a free IT Asset Management.
#
# GLPI is free software: you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 3
# of the License, or (at your option) any later version.
#
# GLPI is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# --------------------------------------------------------------------
# @author Rafael Hernandez - <rhernandez@teclib.com>
# @copyright (C) 2017 Teclib' and contributors.
# @license GPLv3 https://www.gnu.org/licenses/gpl-3.0.html
# @link https://github.com/glpi-project/java-library-glpi
# @link http://www.glpi-project.org/
# --------------------------------------------------------------------
# create gradle properties
echo org.gradle.jvmargs=-Xmx1536m >> gradle.properties
echo glpi_user=$GLPI_USER >> gradle.properties
echo glpi_password=$GLPI_PASSWORD >> gradle.properties
echo glpi_url=$GLPI_URL >> gradle.properties
......@@ -28,12 +28,6 @@ echo TELEGRAM_WEBHOOKS=$TELEGRAM_WEBHOOKS > .env
echo GIT_REPO=$CIRCLE_REPOSITORY_URL >> .env
echo GIT_BRANCH=$CIRCLE_BRANCH >> .env
# create gradle properties
echo org.gradle.jvmargs=-Xmx1536m >> gradle.properties
echo glpi_user=$GLPI_USER >> gradle.properties
echo glpi_password=$GLPI_PASSWORD >> gradle.properties
echo glpi_url=$GLPI_URL >> gradle.properties
# install ruby
sudo apt-get install ruby-full build-essential
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment