New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
update install script #411
Conversation
.ci/linux/install-clang.sh
Outdated
set -e | ||
|
||
if [ -z ${CLANG_VERSION+x} ]; then | ||
echo "CLANG_VERSOIN is empty. skip install clang..." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[Misspell] "VERSOIN" is a misspelling of "VERSION" (view)
Rule |
---|
"VERSOIN" is a misspelling of "VERSION" |
You can mark this issue as closed if you should not tackle it. (see our document about issues)
.ci/linux/install-clang.sh
Outdated
|
||
. /etc/os-release | ||
wget -qO - http://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add - | ||
add-apt-repository -y 'deb http://apt.llvm.org/${VERSION_CODENAME}/ llvm-toolchain-${VERSION_CODENAME}-${CLANG_VERSION} main' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.ci/linux/install-clang.sh
Outdated
wget -qO - http://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add - | ||
add-apt-repository -y 'deb http://apt.llvm.org/${VERSION_CODENAME}/ llvm-toolchain-${VERSION_CODENAME}-${CLANG_VERSION} main' | ||
apt-get -y --allow-unauthenticated update | ||
apt-get -qq install clang-${CLANG_VERSION} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.ci/linux/install-clang.sh
Outdated
|
||
|
||
if $INSATLL_CLANG_TOOLS; then | ||
apt-get -y --force-yes -qq install clang-$CLANG_VERSION clang-tools-$CLANG_VERSION |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.ci/linux/install-clang.sh
Outdated
|
||
|
||
if $INSATLL_CLANG_TOOLS; then | ||
apt-get -y --force-yes -qq install clang-$CLANG_VERSION clang-tools-$CLANG_VERSION |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fi | ||
|
||
update-alternatives --install /usr/bin/clang clang \ | ||
/usr/bin/clang-${CLANG_VERSION} 360 \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
||
update-alternatives --install /usr/bin/clang clang \ | ||
/usr/bin/clang-${CLANG_VERSION} 360 \ | ||
--slave /usr/bin/clang++ clang++ /usr/bin/clang++-${CLANG_VERSION} \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
update-alternatives --install /usr/bin/clang clang \ | ||
/usr/bin/clang-${CLANG_VERSION} 360 \ | ||
--slave /usr/bin/clang++ clang++ /usr/bin/clang++-${CLANG_VERSION} \ | ||
${CLANG_SLAVES} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.ci/linux/install-gcc.sh
Outdated
|
||
add-apt-repository -y ppa:ubuntu-toolchain-r/test | ||
apt-get -y --allow-unauthenticated update | ||
apt-get -qq install g++-${GCC_VERSION} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
apt-get -y --allow-unauthenticated update | ||
apt-get -qq install g++-${GCC_VERSION} | ||
update-alternatives --install /usr/bin/gcc gcc \ | ||
/usr/bin/gcc-${GCC_VERSION} 90 \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
apt-get -qq install g++-${GCC_VERSION} | ||
update-alternatives --install /usr/bin/gcc gcc \ | ||
/usr/bin/gcc-${GCC_VERSION} 90 \ | ||
--slave /usr/bin/g++ g++ /usr/bin/g++-${GCC_VERSION} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.ci/linux/install-clang.sh
Outdated
wget -qO - http://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add - | ||
sudo add-apt-repository -y "deb http://apt.llvm.org/${VERSION_CODENAME}/ llvm-toolchain-${VERSION_CODENAME}-${CLANG_VERSION} main" | ||
sudo apt-get -y --allow-unauthenticated update | ||
sudo apt-get -qq install clang-${CLANG_VERSION} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.ci/linux/install-clang.sh
Outdated
|
||
|
||
if $INSATLL_CLANG_TOOLS; then | ||
sudo apt-get -y --force-yes -qq install clang-$CLANG_VERSION clang-tools-$CLANG_VERSION |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.ci/linux/install-clang.sh
Outdated
|
||
|
||
if $INSATLL_CLANG_TOOLS; then | ||
sudo apt-get -y --force-yes -qq install clang-$CLANG_VERSION clang-tools-$CLANG_VERSION |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.ci/linux/install-gcc.sh
Outdated
|
||
sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test | ||
sudo apt-get -y --allow-unauthenticated update | ||
sudo apt-get -qq install g++-${GCC_VERSION} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.ci/linux/install-gcc.sh
Outdated
. /etc/os-release | ||
MAJOR_VERSION=$(echo ${VERSION_ID} | cut -d '.' -f1) | ||
|
||
if [[ ${MAJOR_VERSION} -lt 19 ]]; then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.ci/linux/install-gcc.sh
Outdated
. /etc/os-release | ||
MAJOR_VERSION=$(echo ${VERSION_ID} | cut -d '.' -f1) | ||
|
||
if [ ${MAJOR_VERSION} -lt 19 ]; then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Codecov Report
@@ Coverage Diff @@
## develop #411 +/- ##
========================================
Coverage 96.70% 96.70%
========================================
Files 210 210
Lines 10532 10532
========================================
Hits 10185 10185
Misses 347 347 Continue to review full report at Codecov.
|
No description provided.