added automation files and updated README
Some checks failed
fsfw/fsfw example hosted/pipeline/head There was a failure building this commit
Some checks failed
fsfw/fsfw example hosted/pipeline/head There was a failure building this commit
This commit is contained in:
parent
5e4ade0849
commit
0e7201d993
@ -149,7 +149,7 @@ generation as a cross-platform solution.
|
|||||||
|
|
||||||
2. Configure the build system
|
2. Configure the build system
|
||||||
```sh
|
```sh
|
||||||
cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Debug -DOS_FSFW=host ..
|
cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Debug -DFSFW_OSAL=host ..
|
||||||
```
|
```
|
||||||
|
|
||||||
You can also use `-DOS_FSFW=linux` to use the Linux OSAL of the FSFW.
|
You can also use `-DOS_FSFW=linux` to use the Linux OSAL of the FSFW.
|
||||||
@ -183,7 +183,7 @@ as well to have a convenient way to configure the CMake build.
|
|||||||
|
|
||||||
3. Configure the project and generate the native MinGW64 buildsystem
|
3. Configure the project and generate the native MinGW64 buildsystem
|
||||||
```sh
|
```sh
|
||||||
cmake -G "MinGW Makefiles" -DCMAKE_BUILD_TYPE=Debug -DOS_FSFW=host ..
|
cmake -G "MinGW Makefiles" -DCMAKE_BUILD_TYPE=Debug -DFSFW_OSAL=host ..
|
||||||
```
|
```
|
||||||
|
|
||||||
The build configuration can also be performed with the shell scripts located
|
The build configuration can also be performed with the shell scripts located
|
||||||
|
8
automation/Dockerfile
Normal file
8
automation/Dockerfile
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
FROM ubuntu:focal
|
||||||
|
|
||||||
|
RUN apt-get update
|
||||||
|
RUN apt-get --yes upgrade
|
||||||
|
|
||||||
|
#tzdata is a dependency, won't install otherwise
|
||||||
|
ARG DEBIAN_FRONTEND=noninteractive
|
||||||
|
RUN apt-get --yes install gcc g++ cmake make lcov git valgrind nano
|
46
automation/Jenkinsfile
vendored
Normal file
46
automation/Jenkinsfile
vendored
Normal file
@ -0,0 +1,46 @@
|
|||||||
|
pipeline {
|
||||||
|
agent any
|
||||||
|
environment {
|
||||||
|
BUILDDIR = 'build-Debug'
|
||||||
|
}
|
||||||
|
stages {
|
||||||
|
stage('Create Docker') {
|
||||||
|
agent {
|
||||||
|
dockerfile {
|
||||||
|
dir 'automation'
|
||||||
|
additionalBuildArgs '--no-cache'
|
||||||
|
reuseNode true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
steps {
|
||||||
|
sh 'rm -rf $BUILDDIR'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
stage('Configure') {
|
||||||
|
agent {
|
||||||
|
dockerfile {
|
||||||
|
dir 'automation'
|
||||||
|
reuseNode true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
steps {
|
||||||
|
dir(BUILDDIR) {
|
||||||
|
sh 'cmake -DFSFW_OSAL=host ..'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
stage('Build') {
|
||||||
|
agent {
|
||||||
|
dockerfile {
|
||||||
|
dir 'automation'
|
||||||
|
reuseNode true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
steps {
|
||||||
|
dir(BUILDDIR) {
|
||||||
|
sh 'cmake --build . -j'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user