Skip to content

Commit

Permalink
travis: Add a global .gitignore file.
Browse files Browse the repository at this point in the history
Ignore Python files.
  • Loading branch information
mithro committed Nov 2, 2019
1 parent b67b0d1 commit ce3aa0f
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .travis/fixup-git.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,36 @@ EOF
chmod a+x $GIT_CREDENTIAL_HELPER
git config credential.helper $GIT_CREDENTIAL_HELPER

# Create a global .gitignore and populate with Python stuff
git config --global core.excludesfile ~/.gitignore
cat > ~/.gitignore <<EOF
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
pip-wheel-metadata/
share/python-wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST
EOF


DF_BEFORE_GIT="$(($(stat -f --format="%a*%S" .)))"

echo ""
Expand Down

0 comments on commit ce3aa0f

Please sign in to comment.