Last active
November 6, 2018 12:04
-
-
Save KaiserKatze/17d0b9aa264bf56598487d5ae2e8defa to your computer and use it in GitHub Desktop.
Continuous Integration Toolkit (Travis CI)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| which cat &> /dev/null && \ | |
| cat << EOF | |
| ################################################################################ | |
| # AutoBisect Procedure # | |
| # ---------------------------------------------------------------------------- # | |
| # Project: Continuous Integration Toolkit (Travis CI) # | |
| # Author: KaiserKatze # | |
| # # | |
| # CI Stage: after_failure # | |
| ################################################################################ | |
| EOF | |
| # Change the value of the following variable, | |
| # if you want to run other tests. | |
| EXEC_TEST=pytest | |
| # Run tests automatically | |
| git bisect start HEAD master -- \ | |
| && git bisect run $EXEC_TEST \ | |
| && git bisect log | |
| if [ $? -ne 0 ]; | |
| then | |
| git status | |
| git diff | |
| fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| which cat &> /dev/null && \ | |
| cat << EOF | |
| ################################################################################ | |
| # FileCheck Procedure # | |
| # ---------------------------------------------------------------------------- # | |
| # Project: Continuous Integration Toolkit (Travis CI) # | |
| # Author: KaiserKatze # | |
| # # | |
| # CI Stage: install # | |
| ################################################################################ | |
| EOF | |
| # Consult `sys.path` in Python | |
| DirPyLib=/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages | |
| # Directory name of installed module | |
| # by `python setup.py install` | |
| ModuleName=vtracer_routines-1.0.0-py3.6.egg | |
| path="$DirPyLib/$ModuleName" | |
| if [ -d "$path" ]; then | |
| ls -R "$path" | awk ' | |
| /:$/&&f{s=$0;f=0} | |
| /:$/&&!f{sub(/:$/,"");s=$0;f=1;next} | |
| NF&&f{ print s"/"$0 }' | |
| else | |
| # Module is not installed properly | |
| # by `python setup.py install` | |
| exit 1 | |
| fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| which cat &> /dev/null && \ | |
| cat << EOF | |
| ################################################################################ | |
| # PrepareGit Procedure # | |
| # ---------------------------------------------------------------------------- # | |
| # Project: Continuous Integration Toolkit (Travis CI) # | |
| # Author: KaiserKatze # | |
| # # | |
| # CI Stage: install # | |
| ################################################################################ | |
| EOF | |
| # Create branch `master` | |
| git config remote.origin.fetch +refs/heads/*:refs/remotes/origin/* \ | |
| && git fetch --unshallow --tags \ | |
| && git branch master origin/master | |
| #git branch -a |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment