diff --git a/.travis.yml b/.travis.yml index 6567214..34fa1db 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 diff --git a/tests/ci_git_prep.sh b/tests/ci_git_prep.sh index 3049111..5b66678 100755 --- a/tests/ci_git_prep.sh +++ b/tests/ci_git_prep.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 diff --git a/tests/ci_git_push.sh b/tests/ci_git_push.sh new file mode 100644 index 0000000..186e4f9 --- /dev/null +++ b/tests/ci_git_push.sh @@ -0,0 +1,2 @@ +#!/bin/sh +git push $GH_TOKEN@github.com:$TRAVIS_PULL_REQUEST_SLUG.git origin $CURRENT_BRANCH > /dev/null 2>&1