diff options
author | bloodstalker <thabogre@gmail.com> | 2019-10-12 15:56:28 +0000 |
---|---|---|
committer | bloodstalker <thabogre@gmail.com> | 2019-10-12 15:56:28 +0000 |
commit | 6b58fde32b71d0bf172bf3af8f2516d9b0377552 (patch) | |
tree | ae3bdeba8331f7826c8a78671ede2b1198f2308c | |
parent | Merge pull request #7 from yeger00/readme-update (diff) | |
download | cgrep-6b58fde32b71d0bf172bf3af8f2516d9b0377552.tar.gz cgrep-6b58fde32b71d0bf172bf3af8f2516d9b0377552.zip |
added a little example to run, hopefully correctly added a travis build matrix for different llvm/clang versions...
-rw-r--r-- | .travis.yml | 59 | ||||
-rwxr-xr-x | run.sh | 3 |
2 files changed, 47 insertions, 15 deletions
diff --git a/.travis.yml b/.travis.yml index 7830b5c..02dd166 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,18 +2,47 @@ dist: trusty sudo: required language: cpp -before_script: - - sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y - - sudo add-apt-repository ppa:fkrull/deadsnakes -y - - sudo apt-get update -y - - wget -O - http://llvm.org/apt/llvm-snapshot.gpg.key|sudo apt-key add - - - echo "deb http://apt.llvm.org/trusty/ llvm-toolchain-trusty-5.0 main" | sudo tee -a /etc/apt/sources.list - - sudo apt-get update -qq - - travis_retry sudo apt-get install clang-5.0 libclang-5.0-dev libclang-common-5.0-dev libllvm5.0 llvm-5.0-dev llvm-5.0 llvm-5.0-runtime libclang1-5.0-dbg libllvm5.0-dbg lldb-5.0 -y - - sudo apt-get install gcc-4.9 g++-4.9 - - sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.9 60 --slave /usr/bin/g++ g++ /usr/bin/g++-4.9 - - git submodule init - - git submodule update - -script: - - make CXX=clang-5.0 LLVM_CONF=llvm-config-5.0 +matrix: + include: + - before_script: + - sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y + - sudo add-apt-repository ppa:fkrull/deadsnakes -y + - sudo apt-get update -y + - wget -O - http://llvm.org/apt/llvm-snapshot.gpg.key|sudo apt-key add - + - echo "deb http://apt.llvm.org/trusty/ llvm-toolchain-trusty-5.0 main" | sudo tee -a /etc/apt/sources.list + - sudo apt-get update -qq + - travis_retry sudo apt-get install clang-5.0 libclang-5.0-dev libclang-common-5.0-dev libllvm5.0 llvm-5.0-dev llvm-5.0 llvm-5.0-runtime libclang1-5.0-dbg libllvm5.0-dbg lldb-5.0 -y + - sudo apt-get install gcc-4.9 g++-4.9 + - sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.9 60 --slave /usr/bin/g++ g++ /usr/bin/g++-4.9 + - git submodule init + - git submodule update + script: + - make CXX=clang-5.0 LLVM_CONF=llvm-config-5.0 + - before_script: + - sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y + - sudo add-apt-repository ppa:fkrull/deadsnakes -y + - sudo apt-get update -y + - wget -O - http://llvm.org/apt/llvm-snapshot.gpg.key|sudo apt-key add - + - echo "deb http://apt.llvm.org/trusty/ llvm-toolchain-trusty-6.0 main" | sudo tee -a /etc/apt/sources.list + - sudo apt-get update -qq + - travis_retry sudo apt-get install clang-6.0 libclang-6.0-dev libclang-common-6.0-dev libllvm6.0 llvm-6.0-dev llvm-6.0 llvm-6.0-runtime libclang1-6.0-dbg libllvm6.0-dbg lldb-6.0 -y + - sudo apt-get install gcc-4.9 g++-4.9 + - sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.9 60 --slave /usr/bin/g++ g++ /usr/bin/g++-4.9 + - git submodule init + - git submodule update + script: + - make CXX=clang-6.0 LLVM_CONF=llvm-config-6.0 + - before_script: + - sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y + - sudo add-apt-repository ppa:fkrull/deadsnakes -y + - sudo apt-get update -y + - wget -O - http://llvm.org/apt/llvm-snapshot.gpg.key|sudo apt-key add - + - echo "deb http://apt.llvm.org/trusty/ llvm-toolchain-trusty-8.0 main" | sudo tee -a /etc/apt/sources.list + - sudo apt-get update -qq + - travis_retry sudo apt-get install clang-8.0 libclang-8.0-dev libclang-common-8.0-dev libllvm8.0 llvm-8.0-dev llvm-8.0 llvm-8.0-runtime libclang1-8.0-dbg libllvm8.0-dbg lldb-8.0 -y + - sudo apt-get install gcc-4.9 g++-4.9 + - sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.9 60 --slave /usr/bin/g++ g++ /usr/bin/g++-4.9 + - git submodule init + - git submodule update + script: + - make CXX=clang-8.0 LLVM_CONF=llvm-config-8.0 @@ -0,0 +1,3 @@ +#!/usr/bin/sh + +"cgrep" -A 1 -B 1 --func --var --regex n[aA]m ./cgrep.cpp |