提交 f1f20c0b 编写于 作者: 朔-望's avatar 朔-望

update .travis.yml conf

上级 913da3d0
...@@ -6,23 +6,14 @@ dist: trusty ...@@ -6,23 +6,14 @@ dist: trusty
os: os:
- linux - linux
env: env:
global:
- CMAKE_URL=https://cmake.org/files/v3.11/cmake-3.11.1-Linux-x86_64.tar.gz
addons: addons:
apt: apt:
sources:
- llvm-toolchain-trusty-6.0
- ubuntu-toolchain-r-test
packages: packages:
- git - git
- python - python
- python-pip - python-pip
- python2.7-dev - python2.7-dev
- libc6-i386 - libc6-i386
- clang-6.0
- libclang-6.0
- llvm-6.0
- llvm-6.0-dev
- curl - curl
compiler: compiler:
...@@ -31,24 +22,7 @@ compiler: ...@@ -31,24 +22,7 @@ compiler:
before_install: before_install:
- sudo pip install -U virtualenv pre-commit pip - sudo pip install -U virtualenv pre-commit pip
# Download and install recent cmake # Download and install recent cmake
- |
if [[ ${TRAVIS_OS_NAME} == "linux" ]]; then
CMAKE_URL=${CMAKE_URL}
mkdir -p ${DEPS_DIR}/cmake
travis_retry wget --no-check-certificate --quiet -O - ${CMAKE_URL} | tar --strip-components=1 -xz -C ${DEPS_DIR}/cmake
export PATH=${DEPS_DIR}/cmake/bin:${PATH}
fi
#install:
# - if [ "$CXX" = "g++" ]; then export CXX="g++-5" CC="gcc-5"; fi
# - if [ "$CXX" = "clang++" ]; then export CXX="clang++-6.0" CC="clang-6.0"; fi
before_script:
- |
echo "cmake generate compile_commands.json for clang-tidy"
ls -l -a
clang-tidy -version
clang-format -version
script: script:
- | - |
function timeout() { perl -e 'alarm shift; exec @ARGV' "$@"; } function timeout() { perl -e 'alarm shift; exec @ARGV' "$@"; }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册