Skip to content

Commit 5c36e66

Browse files
committed
skip running tests, set default NPROCS to 4 for running in CI
1 parent ec5915f commit 5c36e66

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

Dockerfile

+6-10
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ ARG ARCH
22
FROM quay.io/pypa/manylinux_2_28_${ARCH}:2025.02.02-1 as builder
33

44
ARG ARCH
5-
ARG NPROCS=24
5+
ARG NPROCS=4
66
ARG BUILD_DIR=/opt/smelibs
77
ARG TMP_DIR=/opt/tmpwd
88

@@ -92,7 +92,6 @@ RUN mkdir -p $TMP_DIR && cd $TMP_DIR \
9292
--with-pic \
9393
--enable-cxx \
9494
&& make -j$NPROCS \
95-
&& make check \
9695
&& make install \
9796
&& rm -rf $TMP_DIR
9897

@@ -112,7 +111,6 @@ RUN mkdir -p $TMP_DIR && cd $TMP_DIR \
112111
--with-gmp-lib=$BUILD_DIR/lib \
113112
--with-gmp-include=$BUILD_DIR/include \
114113
&& make -j$NPROCS \
115-
&& make check \
116114
&& make install \
117115
&& rm -rf $TMP_DIR
118116

@@ -169,9 +167,9 @@ RUN mkdir -p $TMP_DIR && cd $TMP_DIR \
169167
-DEXPAT_BUILD_EXAMPLES=OFF \
170168
-DEXPAT_BUILD_TOOLS=OFF \
171169
-DEXPAT_SHARED_LIBS=OFF \
170+
-DEXPAT_BUILD_TESTS:BOOL=OFF \
172171
../expat \
173172
&& ninja \
174-
&& ninja test \
175173
&& ninja install \
176174
&& rm -rf $TMP_DIR
177175

@@ -205,11 +203,11 @@ RUN mkdir -p $TMP_DIR && cd $TMP_DIR \
205203
-Dmdi=OFF \
206204
-Dwebp=OFF \
207205
-Dzlib=OFF \
206+
-Dtiff-tests=OFF \
208207
-DGLUT_INCLUDE_DIR=GLUT_INCLUDE_DIR-NOTFOUND \
209208
-DOPENGL_INCLUDE_DIR=OPENGL_INCLUDE_DIR-NOTFOUND \
210209
.. \
211210
&& ninja \
212-
&& ninja test \
213211
&& ninja install \
214212
&& rm -rf $TMP_DIR
215213

@@ -543,9 +541,9 @@ RUN mkdir -p $TMP_DIR && cd $TMP_DIR \
543541
-DCMAKE_INSTALL_PREFIX=$BUILD_DIR \
544542
-DCMAKE_CXX_STANDARD=17 \
545543
-DFMT_DOC=OFF \
544+
-DFMT_TEST:BOOL=OFF \
546545
.. \
547546
&& ninja \
548-
&& ninja test \
549547
&& ninja install \
550548
&& rm -rf $TMP_DIR
551549

@@ -565,15 +563,14 @@ RUN mkdir -p $TMP_DIR && cd $TMP_DIR \
565563
-DCMAKE_C_FLAGS="-fPIC -fvisibility=hidden" \
566564
-DCMAKE_CXX_FLAGS="-fPIC -fvisibility=hidden" \
567565
-DCMAKE_INSTALL_PREFIX=$BUILD_DIR \
568-
-DSPDLOG_BUILD_TESTS=ON \
566+
-DSPDLOG_BUILD_TESTS=OFF \
569567
-DSPDLOG_BUILD_EXAMPLE=OFF \
570568
-DSPDLOG_FMT_EXTERNAL=ON \
571569
-DSPDLOG_NO_THREAD_ID=ON \
572570
-DSPDLOG_NO_ATOMIC_LEVELS=ON \
573571
-DCMAKE_PREFIX_PATH=$BUILD_DIR \
574572
.. \
575573
&& ninja \
576-
&& ninja test \
577574
&& ninja install \
578575
&& rm -rf $TMP_DIR
579576

@@ -631,9 +628,9 @@ RUN mkdir -p $TMP_DIR && cd $TMP_DIR \
631628
-DUSE_BZ2=ON \
632629
-DBZIP2_INCLUDE_DIR=${BUILD_DIR}/include \
633630
-DBZIP2_LIBRARY_RELEASE=${BUILD_DIR}/lib/libbz2.a \
631+
-DENABLE_TESTS=OFF \
634632
.. \
635633
&& ninja \
636-
&& ninja test \
637634
&& ninja install \
638635
&& rm -rf $TMP_DIR
639636

@@ -727,7 +724,6 @@ RUN mkdir -p $TMP_DIR && cd $TMP_DIR \
727724
-DZLIB_LIBRARY=$BUILD_DIR/lib/libz.a \
728725
.. \
729726
&& ninja \
730-
&& ninja test \
731727
&& ninja install \
732728
&& rm -rf $TMP_DIR
733729

0 commit comments

Comments
 (0)