aboutsummaryrefslogtreecommitdiffstats
path: root/.travis.yml
diff options
context:
space:
mode:
authorbloodstalker <thabogre@gmail.com>2018-11-25 18:34:53 +0000
committerbloodstalker <thabogre@gmail.com>2018-11-25 18:34:53 +0000
commit285ca5f1c57967df09a19f2872f719b10d6b34b3 (patch)
tree329fb2cf2506e45ee3e672f8769472f1bb2eedee /.travis.yml
parentlgtm (diff)
downloadcgrep-285ca5f1c57967df09a19f2872f719b10d6b34b3.tar.gz
cgrep-285ca5f1c57967df09a19f2872f719b10d6b34b3.zip
travis
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml19
1 files changed, 19 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 0000000..cc99edd
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,19 @@
+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 -j2