1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

chore(CI): Deep clone for gitstatus initially instead of recloning

This commit is contained in:
Anthony Bilinski 2022-02-18 23:57:45 -08:00
parent 5d459d2fda
commit 5bcfd21760
No known key found for this signature in database
GPG Key ID: 2AA8E0DA1B31FB3C
2 changed files with 4 additions and 8 deletions

View File

@ -15,7 +15,7 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Scripts for generating gitstats on travis
# Scripts for generating gitstats in CI
#
# Downloads current git repo, and builds its stats.
@ -26,11 +26,6 @@
set -eu -o pipefail
# need to download whole history, since travis does only a shallow clone
get_repo() {
git clone https://github.com/qTox/qTox.git
}
make_stats() {
# workaround gitstats not supporting non-blocking IO correctly see
# https://github.com/travis-ci/travis-ci/issues/4704#issuecomment-348435959
@ -40,7 +35,7 @@ make_stats() {
gitstats \
-c authors_top=1000 \
-c max_authors=100000 \
qTox \
. \
"$GITSTATS_DIR"
}
@ -51,7 +46,6 @@ verify_exists() {
main() {
get_repo
make_stats
verify_exists
}

View File

@ -517,6 +517,8 @@ jobs:
GITSTATS_DIR: gitstats
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Install gitstats
run: sudo apt-get install gitstats
- name: Run