Skip to content

Commit

Permalink
Merge pull request #82 from Infomaniak/KDESKTOP-800-Integrate-parmsdb…
Browse files Browse the repository at this point in the history
…-test-to-CI

[KDESKTOP-800] Add Parmsdb tests to CI
  • Loading branch information
ClementKunz authored May 1, 2024
2 parents b07e33f + 87662b6 commit 3ea935a
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 6 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ concurrency:
jobs:
build-kDrive:
runs-on: [ self-hosted, Linux, X64, desktop-kdrive ]
env:
bin-directory: ./build-linux/build/bin

steps:
- name: Checkout the PR
Expand All @@ -23,10 +25,13 @@ jobs:
- name: Build kDrive desktop
run : ./infomaniak-build-tools/linux/build-ci-amd64.sh

- name: Grant test_common execute permission
run : chmod +x ./build-linux/build/bin/kDrive_test_common
- name: Execute common tests
run : ./build-linux/build/bin/kDrive_test_common
run : ./kDrive_test_common
working-directory: ${{env.bin-directory}}

- name: Execute parms tests
run : ./kDrive_test_parms
working-directory: ${{env.bin-directory}}

- name: Clean-up generated code
run : rm -rf build-linux
9 changes: 8 additions & 1 deletion .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ concurrency:
jobs:
build-kDrive:
runs-on: [ self-hosted, macOS, desktop-kdrive ]
env:
bin-directory: ./build-macos/install

steps:
- name: Checkout the code
Expand All @@ -27,7 +29,12 @@ jobs:
run : ./infomaniak-build-tools/macos/build-ci.sh

- name: Execute common tests
run : ./build-macos/client/bin/kDrive_test_common
run : ./kDrive_test_common
working-directory: ${{env.bin-directory}}

- name: Execute parms tests
run : ./kDrive_test_parms
working-directory: ${{env.bin-directory}}

- name: Clean-up generated code
run : rm -rf build-macos
9 changes: 8 additions & 1 deletion .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ concurrency:
jobs:
build-kDrive:
runs-on: [ self-hosted, Windows, desktop-kdrive ]
env:
bin-directory: ./build-windows/install/bin/

steps:
- name: Checkout the PR
Expand Down Expand Up @@ -39,7 +41,12 @@ jobs:
shell: cmd

- name: Execute common tests
run: ./build-windows/install/bin/kDrive_test_common.exe
run: ./kDrive_test_common.exe
working-directory: ${{env.bin-directory}}

- name: Execute parms tests
run: ./kDrive_test_parms.exe
working-directory: ${{env.bin-directory}}

- name: Clean-up generated code
run : powershell ./infomaniak-build-tools/windows/build-drive.ps1 -clean all
2 changes: 2 additions & 0 deletions infomaniak-build-tools/linux/build-ci-amd64.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,5 @@ cmake -B$BUILDDIR -H$BASEPATH \

make -j4
make DESTDIR=$APPDIR install

cp $BASEPATH/sync-exclude-linux.lst $BUILDDIR/bin/sync-exclude.lst
6 changes: 5 additions & 1 deletion infomaniak-build-tools/macos/build-ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -92,5 +92,9 @@ cmake \
"$SRCDIR"

# Build kDrive sources
make
make install

# Move tester to the install dir (So they can access ressources)
mv $BUILDDIR/bin/kDrive_test_* $INSTALLDIR/

popd
1 change: 1 addition & 0 deletions infomaniak-build-tools/windows/build-drive.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -398,6 +398,7 @@ if ($ci)
{
Copy-Item -Path "$buildPath/bin/$file" -Destination "$archivePath"
}
Copy-Item -Path "$path/sync-exclude-win.lst" -Destination "$archivePath/sync-exclude.lst"
exit $LASTEXITCODE
}

Expand Down

0 comments on commit 3ea935a

Please sign in to comment.