diff options
Diffstat (limited to '')
| -rw-r--r-- | .travis.yml | 57 | ||||
| -rw-r--r-- | optional_requirements.txt | 2 | ||||
| -rw-r--r-- | requirements.txt | 3 |
3 files changed, 21 insertions, 41 deletions
diff --git a/.travis.yml b/.travis.yml index 6aa9eb63..4b05b65f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,50 +1,25 @@ sudo: false -dist: trusty language: python -python: -- "2.7" +python: 2.7 addons: - apt: - sources: ['llvm-toolchain-trusty-6.0', 'ubuntu-toolchain-r-test'] - packages: - - make - - gcc - - python-virtualenv - - unzip - - llvm-6.0 - - llvm-6.0-dev - - g++-5 + apt: + sources: ['llvm-toolchain-trusty-6.0', 'ubuntu-toolchain-r-test'] + packages: + - make + - gcc + - python-virtualenv + - unzip + - llvm-6.0 + - llvm-6.0-dev + - g++-5 +env: CXX=g++-5 LLVM_CONFIG=llvm-config-6.0 before_script: +- pip install -r optional_requirements.txt # codespell - "pip install codespell && git ls-files | xargs codespell --ignore-words=.codespell_ignore 2>/dev/null" -- "cd .." -- "export LLVM_CONFIG=$(which llvm-config-6.0)" -- "export CXX=$(which g++-5)" -# make virtual env -- "python /usr/lib/python2.7/dist-packages/virtualenv.py virtualenv;" -- "cd virtualenv;" -- "source bin/activate;" -# install llvmlite -- "pip install enum34" -- "pip install llvmlite" -# install elfesteem -- "git clone https://github.com/serpilliere/elfesteem elfesteem && cd elfesteem && python setup.py install && cd ..;" -# install pyparsing -- "pip install pyparsing" -# install pycparser -- "pip install pycparser" -# install z3 with a known to working version -- "wget https://github.com/serpilliere/z3-prebuild/raw/master/z3.tgz" -- "tar xzf z3.tgz" -- "cd z3/build" -- "make install" -- "cd ../.." -# Miasm -- "cd ..;" -- "cd miasm;" # turn deprecation warning into RuntimeError - "find . -name '*.py' | xargs sed -i 's/warnings\\.warn(/raise RuntimeError(/g'" # install -- "python setup.py build build_ext -I$(pwd)/../virtualenv/include -L$(pwd)/../virtualenv/tinycc" -- "python setup.py install" -script: "python -c 'import z3; x = z3.BitVec(chr(0x41), 32)' && cd test && python test_all.py && git ls-files -o --exclude-standard" +- python setup.py build build_ext +- python setup.py install +script: cd test && python test_all.py && git ls-files -o --exclude-standard diff --git a/optional_requirements.txt b/optional_requirements.txt new file mode 100644 index 00000000..e9a2d09f --- /dev/null +++ b/optional_requirements.txt @@ -0,0 +1,2 @@ +pycparser +z3-solver diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 00000000..acdef10b --- /dev/null +++ b/requirements.txt @@ -0,0 +1,3 @@ +pyparsing +git+https://github.com/serpilliere/elfesteem@master#egg=elfesteem-0.1 +llvmlite==0.26.0 |