Skip to content

Commit

Permalink
ci(circle): add scripts
Browse files Browse the repository at this point in the history
Signed-off-by: Naylin Medina <[email protected]>
  • Loading branch information
Naylin15 committed Oct 17, 2018
1 parent fbcdfec commit ae8c6f3
Show file tree
Hide file tree
Showing 3 changed files with 99 additions and 0 deletions.
28 changes: 28 additions & 0 deletions ci/scripts/documentation.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
#!/usr/bin/env bash
#
# LICENSE
#
# This file is part of Teclib Fastlane Plugin Test Report.
#
# Fastlane Plugin Test Report is a subproject of Teclib'
#
# Fastlane Plugin Test Report is free software: you can redistribute
# it and/or modify it under the terms of the MIT License.
#
# Fastlane Plugin Test Report 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 MIT license for further details.
# -------------------------------------------------------------------
# @author Naylin Medina - <[email protected]>
# @copyright Copyright Teclib. All rights reserved.
# @license MIT https://opensource.org/licenses/MIT
# @link https://github.com/TECLIB/fastlane-plugin-test_report/
# @link https://teclib.github.io/fastlane-plugin-test_report/
# @link http://www.teclib-edition.com/en/
# -------------------------------------------------------------------
#

DOC_PATH="development/code-documentation/$CIRCLE_BRANCH"

yarn gh-pages --dist ./coverage --dest $DOC_PATH -m "docs(development): update code documentation"
43 changes: 43 additions & 0 deletions ci/scripts/install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
#!/usr/bin/env bash
#
# LICENSE
#
# This file is part of Teclib Fastlane Plugin Test Report.
#
# Fastlane Plugin Test Report is a subproject of Teclib'
#
# Fastlane Plugin Test Report is free software: you can redistribute
# it and/or modify it under the terms of the MIT License.
#
# Fastlane Plugin Test Report 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 MIT license for further details.
# -------------------------------------------------------------------
# @author Naylin Medina - <[email protected]>
# @copyright Copyright Teclib. All rights reserved.
# @license MIT https://opensource.org/licenses/MIT
# @link https://github.com/TECLIB/fastlane-plugin-test_report/
# @link https://teclib.github.io/fastlane-plugin-test_report/
# @link http://www.teclib-edition.com/en/
# -------------------------------------------------------------------
#

# install node
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
sudo apt-get install -y nodejs

curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
sudo apt-get update && sudo apt-get install yarn

# install dependencies
bundle install --path vendor/bundle

yarn install

# configure git
git config --global user.email $GITHUB_EMAIL
git config --global user.name "Teclib"
git remote remove origin
git remote add origin https://$GITHUB_USER:$GITHUB_TOKEN@github.com/$CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME.git
28 changes: 28 additions & 0 deletions ci/scripts/publish.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
#!/usr/bin/env bash
#
# LICENSE
#
# This file is part of Teclib Fastlane Plugin Test Report.
#
# Fastlane Plugin Test Report is a subproject of Teclib'
#
# Fastlane Plugin Test Report is free software: you can redistribute
# it and/or modify it under the terms of the MIT License.
#
# Fastlane Plugin Test Report 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 MIT license for further details.
# -------------------------------------------------------------------
# @author Naylin Medina - <[email protected]>
# @copyright Copyright Teclib. All rights reserved.
# @license MIT https://opensource.org/licenses/MIT
# @link https://github.com/TECLIB/fastlane-plugin-test_report/
# @link https://teclib.github.io/fastlane-plugin-test_report/
# @link http://www.teclib-edition.com/en/
# -------------------------------------------------------------------
#

mkdir ~/.gem
echo -e "---\n:rubygems_api_key: $KEY_RUBYGEMS" > ~/.gem/credentials
chmod 0600 ~/.gem/credential

0 comments on commit ae8c6f3

Please sign in to comment.