代码拉取完成,页面将自动刷新
同步操作将从 kibaamor/knet 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
language: cpp
jobs:
include:
- os: linux
dist: bionic
env: GCC_VERSION=5
- os: linux
dist: bionic
env: GCC_VERSION=6
- os: linux
dist: bionic
env: GCC_VERSION=7
- os: linux
dist: bionic
env: GCC_VERSION=8
- os: linux
dist: bionic
env: GCC_VERSION=9
- os: linux
dist: bionic
env: GCC_VERSION=10
- os: linux
dist: bionic
env: GCC_VERSION=11
- os: linux
dist: bionic
env: CLANG_VERSION=5.0
- os: linux
dist: bionic
env: CLANG_VERSION=6.0
- os: linux
dist: bionic
env: CLANG_VERSION=7
- os: linux
dist: bionic
env: CLANG_VERSION=8
- os: linux
dist: bionic
env: CLANG_VERSION=9
- os: linux
dist: bionic
env: CLANG_VERSION=10
- os: linux
dist: bionic
env: CLANG_VERSION=11
- os: linux
dist: bionic
env: CLANG_VERSION=12
- os: linux
dist: bionic
env: CLANG_VERSION=13
# osx image list https://docs.travis-ci.com/user/reference/osx/#macos-version
- os: osx
osx_image: xcode9.4
- os: osx
osx_image: xcode10.3
- os: osx
osx_image: xcode11.6
- os: osx
osx_image: xcode12.5
# - os: osx
# osx_image: xcode12.5
# env: GCC_VERSION=5
# - os: osx
# osx_image: xcode12.5
# env: GCC_VERSION=6
# - os: osx
# osx_image: xcode12.5
# env: GCC_VERSION=7
# - os: osx
# osx_image: xcode12.5
# env: GCC_VERSION=8
# - os: osx
# osx_image: xcode12.5
# env: GCC_VERSION=9
# - os: osx
# osx_image: xcode12.5
# env: GCC_VERSION=10
# - os: osx
# osx_image: xcode12.5
# env: GCC_VERSION=11
- os: freebsd
# https://www.freshports.org/
# - os: freebsd
# env: GCC_VERSION=8
# - os: freebsd
# env: GCC_VERSION=10
# - os: freebsd
# env: GCC_VERSION=11
# - os: freebsd
# env: CLANG_VERSION=70
# - os: freebsd
# env: CLANG_VERSION=80
# - os: freebsd
# env: CLANG_VERSION=90
# - os: freebsd
# env: CLANG_VERSION=10
# - os: freebsd
# env: CLANG_VERSION=11
# - os: freebsd
# env: CLANG_VERSION=12
# - os: freebsd
# env: CLANG_VERSION=13
ubuntu_prepare: &ubuntu_prepare
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
CMAKE_URL="https://cmake.org/files/v3.15/cmake-3.15.7-Linux-x86_64.sh"
wget -qO /tmp/cmake.sh $CMAKE_URL
sh /tmp/cmake.sh --prefix=/tmp/ --exclude-subdir --skip-license
echo "export PATH=/tmp/bin/:/usr/local/bin:/usr/bin:$PATH" >> /tmp/knet.env
if [[ "$GCC_VERSION" != "" ]]; then
sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
sudo apt-get -q update
sudo apt-get -yq install g++-$GCC_VERSION
echo "export CC=gcc-$GCC_VERSION CXX=g++-$GCC_VERSION" >> /tmp/knet.env
fi
if [[ "$CLANG_VERSION" != "" ]]; then
curl -sSL "https://apt.llvm.org/llvm-snapshot.gpg.key" | sudo apt-key add -
echo "deb https://apt.llvm.org/bionic/ llvm-toolchain-bionic-$CLANG_VERSION main" | sudo tee -a ${TRAVIS_ROOT}/etc/apt/sources.list >/dev/null
sudo apt-get -q update
sudo apt-get -yq install clang-$CLANG_VERSION
echo "export CC=clang-$CLANG_VERSION CXX=clang++-$CLANG_VERSION" >> /tmp/knet.env
fi
fi
osx_prepare: &osx_prepare
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
if [[ "$GCC_VERSION" != "" ]]; then
brew install gcc@$GCC_VERSION
echo "export CC=gcc-$GCC_VERSION CXX=g++-$GCC_VERSION" >> /tmp/knet.env
fi
fi
freebsd_prepare: &freebsd_prepare
if [[ "$TRAVIS_OS_NAME" == "freebsd" ]]; then
if [[ "$GCC_VERSION" != "" ]]; then
su -m root -c "pkg install -y gcc$GCC_VERSION"
echo "export CC=gcc$GCC_VERSION CXX=g++$GCC_VERSION" >> /tmp/knet.env
fi
if [[ "$CLANG_VERSION" != "" ]]; then
su -m root -c "pkg install -y llvm$GCC_VERSION"
echo "export CC=/usr/local/bin/clang$CLANG_VERSION CXX=/usr/local/bin/clang++$CLANG_VERSION" >> /tmp/knet.env
fi
fi
before_install:
- echo > /tmp/knet.env
- *ubuntu_prepare
- *osx_prepare
- *freebsd_prepare
before_script:
- cat /tmp/knet.env
- source /tmp/knet.env
- printenv
- ${CC} --version
- ${CXX} --version
- cmake --version
script:
# Generate project
- cmake . -B build
# Debug
- cmake --build build --clean-first --config Debug
- (cd build && ctest --output-on-failure)
# Release
- cmake --build build --clean-first --config Release
- (cd build && ctest --output-on-failure)
# MinSizeRel
- cmake --build build --clean-first --config MinSizeRel
- (cd build && ctest --output-on-failure)
# RelWithDebInfo
- cmake --build build --clean-first --config RelWithDebInfo
- (cd build && ctest --output-on-failure)
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。