about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--.travis.yml11
1 files changed, 11 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml
index a0bf7d06..ca4ca8ce 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -4,13 +4,19 @@ python:
 - "2.7"
 addons:
     apt:
+        sources: ['llvm-toolchain-precise-3.8', 'ubuntu-toolchain-r-test']
         packages:
             - make
             - gcc
             - python-virtualenv
             - unzip
+            - llvm-3.8
+            - llvm-3.8-dev
+            - g++-5
 before_script:
 - "cd .."
+- "export LLVM_CONFIG=$(which llvm-config-3.8)"
+- "export CXX=$(which g++-5)"
 # make virtual env
 - "python /usr/lib/python2.7/dist-packages/virtualenv.py virtualenv;"
 - "cd virtualenv;"
@@ -21,6 +27,11 @@ before_script:
 - "make && export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$(pwd);cd ..;"
 - "cp tinycc/libtcc.h include"
 - "cp tinycc/libtcc.so.1.0 tinycc/libtcc.so"
+# install llvmlite, using the system libdtc++ instead of statically linking it
+- "pip install enum34"
+- "git clone https://github.com/numba/llvmlite llvmlite && cd llvmlite"
+- "sed -i 's/-static-libstdc++ //' ffi/Makefile.linux"
+- "python setup.py install && cd .."
 # install elfesteem
 - "git clone https://github.com/serpilliere/elfesteem elfesteem && cd elfesteem && python setup.py install && cd ..;"
 # install pyparsing