CI update

This commit is contained in:
infactum 2019-02-08 18:08:59 +05:00
parent 8a39f6020e
commit 00b3168275
3 changed files with 12 additions and 2 deletions

View File

@ -37,7 +37,7 @@ build_script:
mkdir build;
docker run --rm -v "$(pwd)":/src "$docker_image" /bin/bash -c "
mkdir build && cd build;
cmake -DCMAKE_BUILD_TYPE=Release /src;
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig && cmake -DCMAKE_BUILD_TYPE=Release /src
cmake --build .;
chmod +x tg2sip;
chmod +x gen_db;

View File

@ -50,4 +50,8 @@ RUN source /opt/rh/devtoolset-7/enable \
&& cmake -DCMAKE_BUILD_TYPE=Release -DSPDLOG_BUILD_EXAMPLES=OFF -DSPDLOG_BUILD_TESTING=OFF .. \
&& cmake --build . --target install \
&& cd / \
&& rm -rf spdlog
&& rm -rf spdlog
COPY centos_entrypoint.sh /
ENTRYPOINT ["/centos_entrypoint.sh"]

6
buildenv/centos_entrypoint.sh Executable file
View File

@ -0,0 +1,6 @@
#!/bin/sh
set -e
source /opt/rh/devtoolset-7/enable
exec "$@"