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:
parent
5d459d2fda
commit
5bcfd21760
|
@ -15,7 +15,7 @@
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# 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.
|
# Downloads current git repo, and builds its stats.
|
||||||
|
|
||||||
|
@ -26,11 +26,6 @@
|
||||||
set -eu -o pipefail
|
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() {
|
make_stats() {
|
||||||
# workaround gitstats not supporting non-blocking IO correctly see
|
# workaround gitstats not supporting non-blocking IO correctly see
|
||||||
# https://github.com/travis-ci/travis-ci/issues/4704#issuecomment-348435959
|
# https://github.com/travis-ci/travis-ci/issues/4704#issuecomment-348435959
|
||||||
|
@ -40,7 +35,7 @@ make_stats() {
|
||||||
gitstats \
|
gitstats \
|
||||||
-c authors_top=1000 \
|
-c authors_top=1000 \
|
||||||
-c max_authors=100000 \
|
-c max_authors=100000 \
|
||||||
qTox \
|
. \
|
||||||
"$GITSTATS_DIR"
|
"$GITSTATS_DIR"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -51,7 +46,6 @@ verify_exists() {
|
||||||
|
|
||||||
|
|
||||||
main() {
|
main() {
|
||||||
get_repo
|
|
||||||
make_stats
|
make_stats
|
||||||
verify_exists
|
verify_exists
|
||||||
}
|
}
|
||||||
|
|
2
.github/workflows/build-test-deploy.yaml
vendored
2
.github/workflows/build-test-deploy.yaml
vendored
|
@ -517,6 +517,8 @@ jobs:
|
||||||
GITSTATS_DIR: gitstats
|
GITSTATS_DIR: gitstats
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
- name: Install gitstats
|
- name: Install gitstats
|
||||||
run: sudo apt-get install gitstats
|
run: sudo apt-get install gitstats
|
||||||
- name: Run
|
- name: Run
|
||||||
|
|
Loading…
Reference in New Issue
Block a user