Estes passos assumem que o Colab e o Gitlab já estão instalados e funcionando com seus bancos default (sem dados).
Todos os passos a seguir devem ser executados no beta.softwarepublico.gov.br:
| #!/bin/bash | |
| REPOS="repo1 repo2 repo3" | |
| BASE_DIR="/Users/user/repo_home" # Where you repos are | |
| OUTPUT_FILE="/Users/user/Documents/git-stats.html" | |
| for repo in $REPOS; do | |
| cd "$BASE_DIR/$repo" | |
| echo "Updating repo $repo" | |
| git fetch |
| import collections | |
| class HTTPHeaderMap(collections.MutableMapping): | |
| """ | |
| A structure that contains HTTP headers. | |
| HTTP headers are a curious beast. At the surface level they look roughly | |
| like a name-value set, but in practice they have many variations that | |
| make them tricky: |
| """ | |
| BOSH Client | |
| ----------- | |
| Quite simple BOSH client used by Django-XMPPAuth | |
| For now, it only supports the DIGEST-MD5 authentication method. | |
| """ | |
| import httplib, sys, random |