File tree Expand file tree Collapse file tree 2 files changed +32
-1
lines changed Expand file tree Collapse file tree 2 files changed +32
-1
lines changed Original file line number Diff line number Diff line change @@ -29,11 +29,12 @@ RUN cd /usr/src/kasper && \
29
29
mkdir -p build && \
30
30
pushd build && \
31
31
cmake -DCMAKE_BUILD_TYPE=Release \
32
+ -DCMAKE_CXX_STANDARD=14 \
32
33
-DCMAKE_INSTALL_PREFIX=/usr/local \
33
34
-DBUILD_UNIT_TESTS=ON \
34
35
-DKASPER_USE_ROOT=ON \
35
36
-DKASPER_USE_VTK=ON \
36
- -DKASPER_USE_TBB=ON \
37
+ -DKASPER_USE_TBB=OFF \
37
38
-DKEMField_USE_OPENCL=OFF \
38
39
.. && \
39
40
make -j $((($(nproc)+1)/2)) && \
Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+
3
+ VERSION=" ${1:- testing} "
4
+ IMAGE=" katrinexperiment/kassiopeia"
5
+
6
+ RELEASE=" $( git describe --tags --exact-match || git symbolic-ref -q --short HEAD) "
7
+
8
+ if [ " ${VERSION} " != " ${RELEASE} " -a " v${VERSION} " != " ${RELEASE} " ]; then
9
+ echo " ERROR: Provided image version $VERSION does not match git branch/tag: $RELEASE "
10
+ exit 1
11
+ fi
12
+
13
+ shift 1
14
+
15
+ echo " -- building $IMAGE :$VERSION ..."
16
+ sudo docker build -t $IMAGE $@ . || exit $?
17
+ sudo docker run -it katrinexperiment/kassiopeia UnitTestKasper || exit $?
18
+
19
+ # #####
20
+ # exit 0
21
+ # #####
22
+
23
+ echo " -- pushing to DockerHub ..."
24
+ sudo docker tag $IMAGE :latest katrinexperiment/kassiopeia:$VERSION
25
+ sudo docker push katrinexperiment/kassiopeia:$VERSION
26
+ sudo docker push katrinexperiment/kassiopeia:latest
27
+
28
+ echo " -- pushing to GitHub ..."
29
+ sudo docker tag $IMAGE :latest docker.pkg.github.com/katrin-experiment/kassiopeia/kassiopeia:$VERSION
30
+ sudo docker push docker.pkg.github.com/katrin-experiment/kassiopeia/kassiopeia:$VERSION
You can’t perform that action at this time.
0 commit comments