Skip to content

Instantly share code, notes, and snippets.

@pvaviloff
Last active February 27, 2020 16:11
Show Gist options
  • Save pvaviloff/7b97221adbdebe9bc06868bf628ba045 to your computer and use it in GitHub Desktop.
Save pvaviloff/7b97221adbdebe9bc06868bf628ba045 to your computer and use it in GitHub Desktop.

Revisions

  1. pvaviloff revised this gist Feb 27, 2020. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion .bashrc
    Original file line number Diff line number Diff line change
    @@ -12,7 +12,7 @@ function gtpush {
    fi

    if [ $? -ne 0 ]; then
    exit $?
    return $?
    fi

    git push origin "$1"
  2. pvaviloff revised this gist Feb 27, 2020. 1 changed file with 6 additions and 6 deletions.
    12 changes: 6 additions & 6 deletions .bashrc
    Original file line number Diff line number Diff line change
    @@ -12,12 +12,12 @@ function gtpush {
    fi

    if [ $? -ne 0 ]; then
    echo "failed test"
    else
    git push "$1"
    exit $?
    fi

    if [ $? -ne 0 ]; then
    git push --set-upstream origin "$1"
    fi
    git push origin "$1"

    if [ $? -ne 0 ]; then
    git push --set-upstream origin "$1"
    fi
    }
  3. pvaviloff revised this gist Feb 27, 2020. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions .bashrc
    Original file line number Diff line number Diff line change
    @@ -2,8 +2,8 @@
    function dcbash { docker exec -it "$1" /bin/bash; }

    # test and push branch.
    # Example: gittestpush 3xter-branch
    # Or: gittestpush 3xter-branch path/to/Test.php
    # Example: gtpush 3xter-branch
    # Or: gtpush 3xter-branch path/to/Test.php
    function gtpush {
    if [ -z "$2" ]; then
    php fuel/vendor/bin/phpunit
  4. pvaviloff revised this gist Feb 27, 2020. 1 changed file with 9 additions and 3 deletions.
    12 changes: 9 additions & 3 deletions .bashrc
    Original file line number Diff line number Diff line change
    @@ -1,9 +1,15 @@
    # docker container bash
    function dcbash { docker exec -it "$1" /bin/bash; }

    # test and push branch. Example: gittestpush 3xter-branch
    function gittestpush {
    php fuel/vendor/bin/phpunit
    # test and push branch.
    # Example: gittestpush 3xter-branch
    # Or: gittestpush 3xter-branch path/to/Test.php
    function gtpush {
    if [ -z "$2" ]; then
    php fuel/vendor/bin/phpunit
    else
    php fuel/vendor/bin/phpunit "$2"
    fi

    if [ $? -ne 0 ]; then
    echo "failed test"
  5. pvaviloff revised this gist Feb 27, 2020. 1 changed file with 16 additions and 1 deletion.
    17 changes: 16 additions & 1 deletion .bashrc
    Original file line number Diff line number Diff line change
    @@ -1,2 +1,17 @@
    # docker container bash
    function dcbash { docker exec -it "$1" /bin/bash; }
    function dcbash { docker exec -it "$1" /bin/bash; }

    # test and push branch. Example: gittestpush 3xter-branch
    function gittestpush {
    php fuel/vendor/bin/phpunit

    if [ $? -ne 0 ]; then
    echo "failed test"
    else
    git push "$1"

    if [ $? -ne 0 ]; then
    git push --set-upstream origin "$1"
    fi
    fi
    }
  6. pvaviloff created this gist Jan 29, 2020.
    2 changes: 2 additions & 0 deletions .bashrc
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,2 @@
    # docker container bash
    function dcbash { docker exec -it "$1" /bin/bash; }