Skip to content

Commit

Permalink
[CI/CD]: Use TravisCI for merging staging into master
Browse files Browse the repository at this point in the history
Signed-off-by: baalajimaestro <[email protected]>
  • Loading branch information
baalajimaestro committed Jul 24, 2019
1 parent f520eee commit b2ccab4
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
language: bash

dist: xenial

python:
- "3.7.3"

script:
- bash init/Merge.sh

branches:
only:
- master
26 changes: 26 additions & 0 deletions init/Merge.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#!/bin/bash
# Copyright (C) 2019 The Raphielscape Company LLC.
#
# Licensed under the Raphielscape Public License, Version 1.b (the "License");
# you may not use this file except in compliance with the License.
#
# CI Runner Script for baalajimaestro's userbot

# We need this directive
# shellcheck disable=1090

export SEMAPHORE_PROJECT_DIR=`pwd`
. "$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")"/telegram
TELEGRAM_TOKEN=${BOT_API_KEY}
export BOT_API_KEY TELEGRAM_TOKEN
tg_sendinfo "<code>I am gonna merge staging into master</code>"
cd
git clone https://github.com/RaphielGang/Telegram-UserBot.git
cd Telegram-UserBot
git remote rm origin
git remote add origin https://baalajimaestro:${GH_PERSONAL_TOKEN}@github.com/raphielgang/telegram-userbot.git
git fetch
git checkout staging
git pull origin staging
git push --quiet origin staging:master
tg_sendinfo "<code>I have merged all commits from staging into master</code>"

0 comments on commit b2ccab4

Please sign in to comment.