mirror of
https://github.com/davidallendj/gdpm.git
synced 2025-12-20 03:27:02 -07:00
Refactored, simplified, and removed code; replaced cli header lib
- Reinitialized submodules - Slightly restructed project - Added more options to `compile.sh` script - Added more utility functions
This commit is contained in:
parent
d34243db74
commit
e48c54aa40
27 changed files with 564 additions and 3232 deletions
21
ci/Jenkinsfile
vendored
Normal file
21
ci/Jenkinsfile
vendored
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
pipeline{
|
||||
agent any
|
||||
|
||||
stages {
|
||||
stage('Build'){
|
||||
steps{
|
||||
echo 'Building...'
|
||||
}
|
||||
}
|
||||
stage('Test'){
|
||||
steps{
|
||||
echo 'Testing...'
|
||||
}
|
||||
}
|
||||
stage('Deploy'){
|
||||
steps{
|
||||
echo 'Deploying...'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
45
ci/github/workflows/build.yml
Normal file
45
ci/github/workflows/build.yml
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
name: CMake Linux Build
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
pull_request:
|
||||
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
pull-requests: read
|
||||
|
||||
|
||||
concurrency:
|
||||
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}'
|
||||
cancel-in-progress: true
|
||||
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: [self-hosted, linux]
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Setup
|
||||
run:
|
||||
echo "Setting up dependencies..."
|
||||
|
||||
- name: Build
|
||||
run:
|
||||
echo -e "Building executable, libraries, documentation, and symlinks...\n$PWD"
|
||||
./bin/compile.sh --all --docs --link --strip
|
||||
|
||||
- name: Test
|
||||
run:
|
||||
echo "Running unit tests..."
|
||||
./bin/gdpm-tests
|
||||
|
||||
- name: Package
|
||||
run:
|
||||
echo "Packaging binaries..."
|
||||
|
||||
44
ci/gitlab-ci.yml
Normal file
44
ci/gitlab-ci.yml
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
variables:
|
||||
PROJECT_ROOT_PATH: /home/$USER/gdpm
|
||||
|
||||
|
||||
stages:
|
||||
- build
|
||||
- test
|
||||
- package
|
||||
|
||||
|
||||
cache:
|
||||
paths:
|
||||
- build
|
||||
|
||||
|
||||
before-script:
|
||||
- echo "Setting up dependencies..."
|
||||
|
||||
|
||||
build-job:
|
||||
stage: build
|
||||
script:
|
||||
- echo -e "Building executable and libraries...\n$PWD"
|
||||
- bin/compile.sh
|
||||
|
||||
|
||||
test-job:
|
||||
stage: test
|
||||
script:
|
||||
- echo "Running unit tests..."
|
||||
- bin/gdpm-tests
|
||||
|
||||
|
||||
package-job:
|
||||
stage: package
|
||||
script:
|
||||
- echo "Packaging binaries..."
|
||||
|
||||
|
||||
deploy-job:
|
||||
stage: deploy
|
||||
script:
|
||||
- echo "Deploying application..."
|
||||
environment: production
|
||||
17
ci/travis.yml
Normal file
17
ci/travis.yml
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
os: linux
|
||||
language: cpp
|
||||
compiler: clang
|
||||
|
||||
env:
|
||||
- ARCH_TRAVIS_VERBOSE=1
|
||||
|
||||
archlinux:
|
||||
repos:
|
||||
packages:
|
||||
- base-devel
|
||||
- git
|
||||
- yay
|
||||
|
||||
script:
|
||||
- "bin/compile.sh"
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue