[CI] Upgrade to GCC 5.3.1, CMake 3.6.0 (#4306)
* Upgrade to GCC 5.3.1, CMake 3.6.0 * <regex> is now okay
This commit is contained in:
parent
8c8021dfa7
commit
7aed8f3d48
@ -7,15 +7,16 @@ ENV DEBIAN_FRONTEND noninteractive
|
|||||||
# Install all basic requirements
|
# Install all basic requirements
|
||||||
RUN \
|
RUN \
|
||||||
yum -y update && \
|
yum -y update && \
|
||||||
yum install -y tar unzip wget xz git && \
|
yum install -y tar unzip wget xz git centos-release-scl yum-utils && \
|
||||||
wget http://people.centos.org/tru/devtools-2/devtools-2.repo -O /etc/yum.repos.d/devtools-2.repo && \
|
yum-config-manager --enable centos-sclo-rh-testing && \
|
||||||
yum install -y devtoolset-2-gcc devtoolset-2-binutils devtoolset-2-gcc-c++ && \
|
yum -y update && \
|
||||||
|
yum install -y devtoolset-4-gcc devtoolset-4-binutils devtoolset-4-gcc-c++ && \
|
||||||
# Python
|
# Python
|
||||||
wget https://repo.continuum.io/miniconda/Miniconda2-4.3.27-Linux-x86_64.sh && \
|
wget https://repo.continuum.io/miniconda/Miniconda2-4.3.27-Linux-x86_64.sh && \
|
||||||
bash Miniconda2-4.3.27-Linux-x86_64.sh -b -p /opt/python && \
|
bash Miniconda2-4.3.27-Linux-x86_64.sh -b -p /opt/python && \
|
||||||
# CMake
|
# CMake
|
||||||
wget -nv -nc https://cmake.org/files/v3.5/cmake-3.5.2-Linux-x86_64.sh --no-check-certificate && \
|
wget -nv -nc https://cmake.org/files/v3.6/cmake-3.6.0-Linux-x86_64.sh --no-check-certificate && \
|
||||||
bash cmake-3.5.2-Linux-x86_64.sh --skip-license --prefix=/usr
|
bash cmake-3.6.0-Linux-x86_64.sh --skip-license --prefix=/usr
|
||||||
|
|
||||||
# NCCL2 (License: https://docs.nvidia.com/deeplearning/sdk/nccl-sla/index.html)
|
# NCCL2 (License: https://docs.nvidia.com/deeplearning/sdk/nccl-sla/index.html)
|
||||||
RUN \
|
RUN \
|
||||||
@ -34,9 +35,9 @@ RUN \
|
|||||||
rm -f nvidia-machine-learning-repo-rhel7-1.0.0-1.x86_64.rpm; fi
|
rm -f nvidia-machine-learning-repo-rhel7-1.0.0-1.x86_64.rpm; fi
|
||||||
|
|
||||||
ENV PATH=/opt/python/bin:$PATH
|
ENV PATH=/opt/python/bin:$PATH
|
||||||
ENV CC=/opt/rh/devtoolset-2/root/usr/bin/gcc
|
ENV CC=/opt/rh/devtoolset-4/root/usr/bin/gcc
|
||||||
ENV CXX=/opt/rh/devtoolset-2/root/usr/bin/c++
|
ENV CXX=/opt/rh/devtoolset-4/root/usr/bin/c++
|
||||||
ENV CPP=/opt/rh/devtoolset-2/root/usr/bin/cpp
|
ENV CPP=/opt/rh/devtoolset-4/root/usr/bin/cpp
|
||||||
|
|
||||||
# Install Python packages
|
# Install Python packages
|
||||||
RUN \
|
RUN \
|
||||||
|
|||||||
@ -11,11 +11,6 @@ if [ ${TASK} == "lint" ]; then
|
|||||||
(cat logclean.txt|grep warning) && exit -1
|
(cat logclean.txt|grep warning) && exit -1
|
||||||
(cat logclean.txt|grep error) && exit -1
|
(cat logclean.txt|grep error) && exit -1
|
||||||
|
|
||||||
if grep -R '<regex>' src include tests/cpp plugin jvm-packages amalgamation; then
|
|
||||||
echo 'Do not use std::regex, since it is not supported by GCC 4.8.x'
|
|
||||||
exit -1
|
|
||||||
fi
|
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user