Skip to content

Commit 6d27512

Browse files
committed
User network boostrapper for CI #49
Signed-off-by: Mārtiņš Avots <martins.avots@splitcells.net>
1 parent 300c25a commit 6d27512

File tree

1 file changed

+8
-17
lines changed

1 file changed

+8
-17
lines changed

.forgejo/workflows/daily-test.yml

Lines changed: 8 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ jobs:
2525
echo "${{ secrets.SSH_KEY_PRIVATE }}" > ~/.ssh/id_rsa
2626
chmod 700 ~/.ssh
2727
chmod 600 ~/.ssh/id_rsa
28-
cd /workspace/splitcells-net/
28+
mkdir -p ~/.local/state/net.splitcells.network.worker/repos/public
29+
cd ~/.local/state/net.splitcells.network.worker/repos/public
2930
git clone --depth 1 https://codeberg.org/splitcells-net/net.splitcells.network.git
3031
git clone --depth 1 https://codeberg.org/splitcells-net/net.splitcells.network.hub.git
3132
- name: Build
@@ -35,27 +36,17 @@ jobs:
3536
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
3637
run: |
3738
# export test_codecov=1 # Enable codecov profiles in POMs. TODO Code coverage is not working.
38-
cd /workspace/splitcells-net
39-
net.splitcells.network.hub/bin/net.splitcells.osi.repos.peers | xargs -i sh -c "test -d {} || git clone git@codeberg.org:splitcells-net/{}.git"
40-
cd /workspace/splitcells-net/net.splitcells.network
39+
cd ~/.local/state/net.splitcells.network.worker/repos/public/net.splitcells.network
40+
bin/worker.bootstrap
4141
bin/worker.repos.pull
42-
cd /workspace/splitcells-net/net.splitcells.network.bom.base
42+
cd ~/.local/state/net.splitcells.network.worker/repos/public/net.splitcells.network.bom.base
4343
mvn clean install
44-
cd /workspace/splitcells-net/net.splitcells.network.bom
44+
cd ~/.local/state/net.splitcells.network.worker/repos/public/net.splitcells.network.bom
4545
mvn clean install
46-
cd /workspace/splitcells-net/net.splitcells.network.hub
46+
cd ~/.local/state/net.splitcells.network.worker/repos/public/net.splitcells.network.hub
4747
mvn -B clean install # Sonarcloud integration does not work here, as only the `net.splitcells.network` repo is known there.
4848
mvn -B clean install -Dtest.groups=testing_integration -DexcludedGroups="experimental_test"
4949
bash -c 'bash <(curl -s https://codecov.io/bash)' # Upload tests to codecov.io. As the default shell is sh, a bash wrapping is used.
50-
# Setup shell project.
51-
cd /workspace/splitcells-net/net.splitcells.network/projects/net.splitcells.shell
52-
./bin/install
53-
# Setup command repositories.
54-
cd /workspace/splitcells-net/net.splitcells.network
55-
. ~/bin/net.splitcells.shell.commands.managed/command.managed.export.bin
56-
command.repository.register $(realpath ../net.splitcells.shell.lib.gpl.v2)
57-
command.repository.register $(realpath ../net.splitcells.shell.lib.gpl.v3)
58-
user.bin.configure
5950
# Check repos.
60-
cd /workspace/splitcells-net/net.splitcells.network
51+
cd ~/.local/state/net.splitcells.network.worker/repos/public/net.splitcells.network
6152
bin/repos.license.check

0 commit comments

Comments
 (0)