mirror of
https://github.com/thatmattlove/hyperglass.git
synced 2026-01-17 08:48:05 +00:00
Clean up no longer used CI shell scripts
This commit is contained in:
parent
6aae26bb7c
commit
a032750c29
3 changed files with 0 additions and 46 deletions
|
|
@ -1,16 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
commit_black() {
|
||||
git add hyperglass/*.py
|
||||
git commit --message "Black Formatting - travis $TRAVIS_BUILD_NUMBER"
|
||||
}
|
||||
|
||||
commit_pylint() {
|
||||
git add pylint.svg
|
||||
git commit --message "Pylint Badge - travis $TRAVIS_BUILD_NUMBER"
|
||||
}
|
||||
|
||||
commit_black
|
||||
commit_pylint
|
||||
|
||||
exit 0
|
||||
|
|
@ -1,28 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
echo "Travis Pull Request: $TRAVIS_PULL_REQUEST"
|
||||
echo "Travis Branch: $TRAVIS_BRANCH"
|
||||
|
||||
git_setup() {
|
||||
git config user.email "travis@travis-ci.org"
|
||||
git config user.name "Travis CI"
|
||||
}
|
||||
|
||||
detect_branch() {
|
||||
if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then
|
||||
echo $TRAVIS_BRANCH
|
||||
else
|
||||
echo $TRAVIS_PULL_REQUEST_BRANCH
|
||||
fi
|
||||
}
|
||||
|
||||
export CURRENT_BRANCH=$(detect_branch)
|
||||
echo "Detected Branch: $CURRENT_BRANCH"
|
||||
|
||||
echo "Setting git config parameters..."
|
||||
git_setup
|
||||
echo "git branches:\n$(git branch -a)"
|
||||
echo "Initiating git fetch..."
|
||||
git fetch --depth=1 $GH_TOKEN@github.com:$TRAVIS_PULL_REQUEST_SLUG.git refs/heads/$CURRENT_BRANCH:refs/remotes/origin/$CURRENT_BRANCH > /dev/null 2>&1
|
||||
echo "Running git checkout..."
|
||||
git checkout origin/$CURRENT_BRANCH
|
||||
|
|
@ -1,2 +0,0 @@
|
|||
#!/bin/sh
|
||||
git push $GH_TOKEN@github.com:$TRAVIS_PULL_REQUEST_SLUG.git origin $CURRENT_BRANCH > /dev/null 2>&1
|
||||
Loading…
Add table
Reference in a new issue