Commit 8e448adf authored by Ivan Del Pino's avatar Ivan Del Pino Committed by Alexander Salas Bastidas
Browse files

ci(config): changes files


Signed-off-by: default avatarIvan Del Pino <idelpino@teclib.com>
parent 0383e8de
......@@ -71,17 +71,8 @@ jobs:
name: Setup environment
command: source ci/scripts/ci_setup.sh
- run:
name: Update version and code
command: source ci/scripts/ci_updateversion.sh
- run:
name: Push changes to github
command: source ci/scripts/ci_push_changes.sh
- run:
name: Create a github release
command: source ci/scripts/ci_github_release.sh
- run:
name: Deploy to Bintray
command: source ci/scripts/ci_bintray.sh
name: Deploy production
command: source ci/scripts/ci_deploy_production.sh
- save_cache:
paths:
- ~/.gradle
......
#!/usr/bin/env 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 Ivan Del Pino - <idelpino@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/
# --------------------------------------------------------------------
#
# send to google play
GH_COMMIT_MESSAGE=$(git log --pretty=oneline -n 1 $CIRCLE_SHA1)
if [[ $GH_COMMIT_MESSAGE != *"ci(release): generate CHANGELOG.md for version"* && $GH_COMMIT_MESSAGE != *"ci(build): release version"* ]]; then
# run update version script
ci/scripts/ci_updateversion.sh
# run push changes script
ci/scripts/ci_push_changes.sh
# run github release script
ci/scripts/ci_github_release.sh
# run bintray script
ci/scripts/ci_bintray.sh
fi
\ No newline at end of file
......@@ -49,6 +49,6 @@ sudo npm install
# config git
git config --global user.email $GH_EMAIL
git config --global user.name "Flyve MDM"
git config --global user.name "Teclib'bot"
git remote remove origin
git remote add origin https://$GH_USER:$GH_TOKEN@github.com/$CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME.git
\ No newline at end of file
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