Browse Source

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

reviewable/pr6466/r25
Anthony Bilinski 4 years ago
parent
commit
5bcfd21760
No known key found for this signature in database
GPG Key ID: 2AA8E0DA1B31FB3C
  1. 10
      .ci-scripts/build-gitstats.sh
  2. 2
      .github/workflows/build-test-deploy.yaml

10
.ci-scripts/build-gitstats.sh

@ -15,7 +15,7 @@ @@ -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 @@ @@ -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() { @@ -40,7 +35,7 @@ make_stats() {
gitstats \
-c authors_top=1000 \
-c max_authors=100000 \
qTox \
. \
"$GITSTATS_DIR"
}
@ -51,7 +46,6 @@ verify_exists() { @@ -51,7 +46,6 @@ verify_exists() {
main() {
get_repo
make_stats
verify_exists
}

2
.github/workflows/build-test-deploy.yaml

@ -517,6 +517,8 @@ jobs: @@ -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

Loading…
Cancel
Save