mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-06-26 10:54:28 +02:00
Persist activation of scl package
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
This commit is contained in:
parent
8189652bbc
commit
5c1e037abc
1 changed files with 7 additions and 6 deletions
|
@ -12,7 +12,9 @@ RUN yum install -y \
|
|||
python36 \
|
||||
python36-dateutil
|
||||
|
||||
RUN source scl_source enable devtoolset-7; gcc --version; cmake3 --version
|
||||
RUN echo "#!/bin/bash" >> /etc/profile.d/enable_env.sh ; \
|
||||
echo "source scl_source enable devtoolset-7" >> /etc/profile.d/enable_env.sh ;
|
||||
|
||||
RUN ln -s /usr/bin/cmake3 /usr/bin/cmake
|
||||
RUN ln -sf /usr/bin/python3 /usr/bin/python
|
||||
|
||||
|
@ -27,13 +29,12 @@ WORKDIR /root/code/
|
|||
RUN git clean -dfx
|
||||
RUN git submodule init
|
||||
RUN git submodule update
|
||||
RUN source scl_source enable devtoolset-7; cmake -DCMAKE_BUILD_TYPE=debug .
|
||||
RUN source scl_source enable devtoolset-7; make -j2
|
||||
RUN source scl_source enable devtoolset-7; make install
|
||||
RUN timew --version
|
||||
RUN cmake -DCMAKE_BUILD_TYPE=debug .
|
||||
RUN make -j2
|
||||
RUN make install
|
||||
|
||||
# Setup tests
|
||||
RUN make test -j2 || true
|
||||
WORKDIR /root/code/test/
|
||||
RUN source scl_source enable devtoolset-7; make
|
||||
|
||||
CMD ["bash", "-c", "cat all.log | grep 'not ok' ; ./problems ; echo timew $( timew --version ) ; python --version ; cmake --version ; gcc --version"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue