Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
df16de69c0 | |||
0e7201d993 |
18
Dockerfile
18
Dockerfile
@ -1,18 +0,0 @@
|
|||||||
FROM ubuntu:latest
|
|
||||||
# FROM alpine:latest
|
|
||||||
|
|
||||||
RUN apt-get update && apt-get install -y cmake g++
|
|
||||||
# RUN apk add cmake make g++
|
|
||||||
|
|
||||||
WORKDIR /usr/src/app
|
|
||||||
COPY . .
|
|
||||||
|
|
||||||
RUN set -ex; \
|
|
||||||
rm -rf build-hosted; \
|
|
||||||
mkdir build-hosted; \
|
|
||||||
cd build-hosted; \
|
|
||||||
cmake -DCMAKE_BUILD_TYPE=Release -DOS_FSFW=host ..;
|
|
||||||
|
|
||||||
ENTRYPOINT ["cmake", "--build", "build-hosted"]
|
|
||||||
CMD ["-j"]
|
|
||||||
# CMD ["bash"]
|
|
@ -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'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Reference in New Issue
Block a user