Compare commits

...

16 Commits

Author SHA1 Message Date
erki
57b5590553 Delete old CI integrations
All checks were successful
CI & Unit Tests / Unit-Tests (push) Successful in 1m12s
CI & Unit Tests / Unit-Tests (pull_request) Successful in 1m13s
2023-05-15 23:51:59 +03:00
erki
f8bc3d2231 Is this necessary?
All checks were successful
CI & Unit Tests / Unit-Tests (push) Successful in 1m12s
CI & Unit Tests / Unit-Tests (pull_request) Successful in 1m13s
2023-05-15 23:46:22 +03:00
erki
f4f0560ece step 1
All checks were successful
CI & Unit Tests / Unit-Tests (push) Successful in 1m12s
2023-05-15 23:45:38 +03:00
erki
d68ca918fa I give up, the old way it is
Some checks failed
CI & Unit Tests / Unit-Tests (push) Failing after 21s
2023-05-15 23:42:11 +03:00
erki
bcdcb934e9 Why did that break things?
Some checks failed
CI & Unit Tests / Unit-Tests (push) Failing after 23s
2023-05-15 23:40:35 +03:00
erki
3b75a1f3c1 okay done
Some checks failed
CI & Unit Tests / Unit-Tests (push) Failing after 17s
2023-05-15 23:34:29 +03:00
erki
1e314e1088 Maybe better thsi way?
Some checks failed
CI & Unit Tests / Unit-Tests (push) Failing after 18s
2023-05-15 23:33:19 +03:00
erki
b5c1259408 Directories vol 4
All checks were successful
CI & Unit Tests / Unit-Tests (push) Successful in 1m15s
2023-05-15 23:31:25 +03:00
erki
83bfbd8dc1 okay that was unfortunate
Some checks failed
CI & Unit Tests / Unit-Tests (push) Failing after 20s
2023-05-15 23:30:27 +03:00
erki
54a4ec029b woupsy dirs are bad
Some checks failed
CI & Unit Tests / Unit-Tests (push) Failing after 16s
2023-05-15 23:29:20 +03:00
erki
6166054d3f Directory memery
All checks were successful
CI & Unit Tests / Unit-Tests (push) Successful in 15s
2023-05-15 23:25:36 +03:00
erki
6bb642360e Altho we no longer use conan, ergo, remove
Some checks failed
CI & Unit Tests / Unit-Tests (push) Failing after 17s
2023-05-15 23:24:07 +03:00
erki
ec6e3b71a2 --user not necessary
Some checks failed
CI & Unit Tests / Unit-Tests (push) Failing after 27s
2023-05-15 23:22:40 +03:00
erki
842f821333 Apt update necessary
Some checks failed
CI & Unit Tests / Unit-Tests (push) Failing after 33s
2023-05-15 23:21:44 +03:00
erki
a5d751893c Sudo not necessary
Some checks failed
CI & Unit Tests / Unit-Tests (push) Failing after 6s
2023-05-15 23:21:03 +03:00
erki
0a5d8cd7ee Time to test
Some checks failed
CI & Unit Tests / Unit-Tests (push) Failing after 6s
2023-05-15 23:20:23 +03:00
4 changed files with 30 additions and 83 deletions

View File

@ -1,28 +0,0 @@
kind: pipeline
type: docker
name: default
steps:
- name: build and test
pull: never
image: erki/cpp-ubuntu:latest
commands:
- mkdir -p build
- cd build
- cmake .. -G "Ninja" -DCMAKE_BUILD_TYPE=Release -DWITH_TESTS=ON
- ninja
- ctest . --output-on-failure
- name: notify
image: plugins/matrix
settings:
homeserver:
from_secret: matrix_homeserver
roomid:
from_secret: matrix_roomid
username:
from_secret: matrix_username
password:
from_secret: matrix_password
when:
status:
- failure

30
.gitea/workflows/ci.yml Normal file
View File

@ -0,0 +1,30 @@
name: CI & Unit Tests
run-name: CI & Unit Tests
on: [push, pull_request]
jobs:
Unit-Tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Prepare environment
run: |
apt update
apt install -y --no-install-recommends build-essential cmake ninja-build
- name: Configure build
working-directory: ${{runner.workspace}}
run: |
cmake . -B${{runner.workspace}}/build \
-G"Ninja" \
-DCMAKE_BUILD_TYPE=Release \
-DSKULLC_WITH_TESTS=ON
- name: Build tests + lib
working-directory: ${{runner.workspace}}/build
run: ninja
- name: Run tests
working-directory: ${{runner.workspace}}/build
run: ctest . --output-on-failure

50
Jenkinsfile vendored
View File

@ -1,50 +0,0 @@
pipeline {
agent {
label 'ubuntu'
}
stages {
stage("build && test") {
steps {
echo "Workspace: ${env.WORKSPACE}"
sh 'mkdir -p build'
dir("build") {
sh 'ls'
sh 'cmake .. -G "Ninja" -DCMAKE_BUILD_TYPE=Release -DSKULLC_WITH_TESTS=ON'
sh 'ninja'
sh 'ctest . -T test --output-on-failure --no-compress-output'
}
}
}
}
post {
always {
archiveArtifacts (
artifacts: 'build/Testing/**/*.xml',
fingerprint: true
)
// Process the CTest xml output with the xUnit plugin
xunit (
testTimeMargin: '3000',
thresholdMode: 1,
thresholds: [
skipped(failureThreshold: '0'),
failed(failureThreshold: '0')
],
tools: [CTest(
pattern: 'build/Testing/**/*.xml',
deleteOutputFiles: true,
failIfNotNew: false,
skipNoTestFiles: true,
stopProcessingIfError: true
)]
)
// Clear the source and build dirs before next run
deleteDir()
}
}
}

View File

@ -1,5 +0,0 @@
[requires]
catch2/[>=2.0.0,<3.0.0]
[generators]
cmake_find_package