Skip to content
This repository was archived by the owner on Jan 2, 2024. It is now read-only.

Commit 0352e75

Browse files
committed
change URL to common github helpers
1 parent 941b691 commit 0352e75

File tree

3 files changed

+44
-18
lines changed

3 files changed

+44
-18
lines changed

.github/workflows/test_arch.yaml

Lines changed: 32 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@ jobs:
44
test:
55
runs-on: ubuntu-22.04
66
container: archlinux:latest
7+
# defaults:
8+
# run:
9+
# working-directory: ./code_forensics
710
steps:
8-
- name: "Checkout the repository"
9-
uses: actions/checkout@v2
1011
- name: "Update installed packages"
1112
run: pacman --noconfirm -Syu
1213
- name: "Install package dependencies"
@@ -15,20 +16,47 @@ jobs:
1516
gcc \
1617
clang \
1718
python-pip \
19+
base-devel \
1820
wget \
1921
curl \
2022
git \
2123
cmake \
2224
make \
25+
sudo \
2326
boost
2427
25-
env:
26-
DEBIAN_FRONTEND: noninteractive
28+
- name: "Checkout submodules"
29+
run: |
30+
echo $PWD
31+
cd ..
32+
echo $PWD
33+
git config --global --add safe.directory $PWD/code_forensics
34+
git clone https://github.com/haxscramper/code_forensics.git
35+
echo $PWD
36+
cd code_forensics
37+
git submodule update --init --recursive
38+
echo $PWD
39+
40+
- name: "Install yay"
41+
run: |
42+
echo $PWD
43+
useradd nopass
44+
mkdir /home/nopass
45+
chown -R nopass /home/nopass
46+
passwd -d nopass
47+
echo ' nopass ALL=(ALL) ALL' >> /etc/sudoers
48+
49+
cd /tmp
50+
git clone https://aur.archlinux.org/consolas-font.git
51+
chown -R nopass consolas-font
52+
cd consolas-font
53+
sudo -u nopass makepkg -si --noconfirm
2754
2855
- name: "Install conan"
2956
run: pip install conan matplotlib igraph pandas numpy
3057
- name: "Install conan dependencies"
3158
run: |
59+
echo $PWD
3260
conan install . \
3361
-if build/dependencies/conan \
3462
--build=missing \

.gitmodules

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[submodule "external/hcxx_common"]
22
path = external/hcxx_common
3-
url = /mnt/workspace/github/code_forensics/../hcxx_common/
3+
url = https://github.com/haxscramper/hcxx_common.git

Taskfile.yaml

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -29,17 +29,15 @@ vars:
2929

3030
tasks:
3131
ensure_deps:
32-
summary: "Ensure test directory exists"
32+
desc: "Ensure test directory exists"
3333
status:
3434
- test -e /tmp/{{.TARGET}}
3535

3636
cmds:
37-
- echo "Running git clone"
3837
- git clone https://github.com/{{.GH_ORG}}/{{.TARGET}}.git /tmp/{{.TARGET}}
39-
- echo "Done git clone"
4038

4139
ensure_test_db:
42-
summary: "Ensure test database exists"
40+
desc: "Ensure test database exists"
4341
deps: [ensure_deps]
4442
status:
4543
- test -s {{.DB_FILE}}
@@ -48,25 +46,25 @@ tasks:
4846

4947
burndown:
5048
deps: [ensure_test_db]
51-
summary: Build sampled burndown plot
49+
desc: Build sampled burndown plot
5250
cmds:
5351
- "./scripts/table_per_period.py {{.DB_FILE}} {{.PNG_FILE}} --per-year={{.PER_YEAR}}"
5452

5553
ridgeline:
5654
deps: [ensure_test_db]
57-
summary: "Build top commiter activity ridgeline"
55+
desc: "Build top commiter activity ridgeline"
5856
cmds:
5957
- ./scripts/author_ridgeline.py {{.SCRIPT_OPTS}} --top=10
6058

6159
authorship:
6260
deps: [ensure_test_db]
63-
summary: "Burndown chart for the code ownership"
61+
desc: "Burndown chart for the code ownership"
6462
cmds:
6563
- ./scripts/code_authorship.py {{.SCRIPT_OPTS}}
6664

6765
hotspot_connections:
6866
deps: [ensure_test_db]
69-
summary: "Generate connectivity graph for the most edited files"
67+
desc: "Generate connectivity graph for the most edited files"
7068
cmds:
7169
- >
7270
./scripts/hotspot_connections.py
@@ -79,26 +77,26 @@ tasks:
7977
8078
top_comitter:
8179
deps: [ensure_test_db]
82-
summary: "Generate top comitters for the code"
80+
desc: "Generate top comitters for the code"
8381
cmds:
8482
- ./scripts/top_comitters.py {{.SCRIPT_OPTS}}
8583

8684
line_category:
8785
deps: [ensure_test_db]
88-
summary: "Line category breakdown"
86+
desc: "Line category breakdown"
8987
cmds:
9088
- ./scripts/line_category.py --subdir-breakdown={{.PER_DIR}} {{.SCRIPT_OPTS}}
9189
vars:
9290
PER_DIR: False
9391

9492
message_length:
9593
deps: [ensure_test_db]
96-
summary: "Generate stats for the commit message lenght"
94+
desc: "Generate stats for the commit message lenght"
9795
cmds:
9896
- ./scripts/commit_message_length.py {{.SCRIPT_OPTS}}
9997

10098
all_stats:
101-
summary: "Execute all statistics scripts in sequence"
99+
desc: "Execute all statistics scripts in sequence"
102100
cmds:
103101
- >
104102
./scripts/all_stats.py
@@ -114,7 +112,7 @@ tasks:
114112
build_binary:
115113
dir: build
116114
deps: [conan_install]
117-
summary: "Build build the binary file"
115+
desc: "Build build the binary file"
118116
cmds:
119117
# - >
120118
# cmake --build .. --target clean

0 commit comments

Comments
 (0)