forked from mirrors/thatmattlove-hyperglass
Move push to shell script
This commit is contained in:
parent
d4ebb07b19
commit
ead1c99230
3 changed files with 5 additions and 5 deletions
|
|
@ -16,11 +16,11 @@ before_script:
|
|||
- . ./tests/ci_git_prep.sh
|
||||
- black hyperglass
|
||||
- python3 ./manage.py pylint-badge --integer-only True
|
||||
- ./tests/ci_git_commit.sh
|
||||
- . ./tests/ci_git_commit.sh
|
||||
- python3 ./tests/ci_prepare.py
|
||||
script:
|
||||
- nohup python3 ./tests/ci_dev_server.py &
|
||||
- sleep 20
|
||||
- python3 ./tests/ci_test.py
|
||||
after_success:
|
||||
- git push origin $CURRENT_BRANCH
|
||||
- . ./tests/ci_git_push.sh
|
||||
|
|
|
|||
|
|
@ -22,8 +22,6 @@ echo "Detected Branch: $CURRENT_BRANCH"
|
|||
echo "Setting git config parameters..."
|
||||
git_setup
|
||||
echo "Initiating git fetch..."
|
||||
git fetch --depth=1 git@github.com:$TRAVIS_PULL_REQUEST_SLUG.git refs/heads/$CURRENT_BRANCH:refs/remotes/origin/$CURRENT_BRANCH
|
||||
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
|
||||
|
||||
exit 0
|
||||
|
|
|
|||
2
tests/ci_git_push.sh
Normal file
2
tests/ci_git_push.sh
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
#!/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