Fix broken scripts, add script to run and test via CMake.
This commit is contained in:
parent
f19b301aed
commit
b7a8bfce9f
|
@ -9,19 +9,19 @@ jobs:
|
|||
# Specify the execution environment. You can specify an image from Docker Hub or use one of our convenience images from CircleCI's Developer Hub.
|
||||
# See: https://circleci.com/docs/configuration-reference/#executor-job
|
||||
docker:
|
||||
- image: cimg/base:stable
|
||||
- image: kisom/sc-dev:latest
|
||||
# Add steps to the job
|
||||
# See: https://circleci.com/docs/configuration-reference/#steps
|
||||
steps:
|
||||
- checkout
|
||||
- run:
|
||||
name: "Install dependencies"
|
||||
command: "./scripts/install-dependencies.sh"
|
||||
name: "Setup cmake build"
|
||||
command: "./scripts/setup-cmake.sh"
|
||||
-
|
||||
|
||||
# Orchestrate jobs using workflows
|
||||
# See: https://circleci.com/docs/configuration-reference/#workflows
|
||||
workflows:
|
||||
say-hello-workflow:
|
||||
ctest:
|
||||
jobs:
|
||||
- say-hello
|
||||
- ctest
|
||||
|
|
|
@ -33,7 +33,7 @@ install_debianesque () {
|
|||
fi
|
||||
|
||||
echo "[+] installing tools"
|
||||
sudo $SUDO apt-get $APTARGS install git clang scdoc python3-pip
|
||||
sudo $SUDO apt-get $APTARGS install git clang scdoc python3-pip doxygen graphviz
|
||||
}
|
||||
|
||||
install_unsupported () {
|
||||
|
|
|
@ -0,0 +1,14 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
######################################################################
|
||||
# @author : kyle (kyleimap.cc)
|
||||
# @file : setup-cmake
|
||||
# @created : Wednesday Oct 18, 2023 04:24:21 PDT
|
||||
#
|
||||
# @description : Prepare a CMake build environment, build, and test.
|
||||
######################################################################
|
||||
|
||||
set -eux
|
||||
|
||||
mkdir -p build && cd build
|
||||
cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo .. && make all test && ctest
|
Loading…
Reference in New Issue