diff options
| author | Fabrice Desclaux <fabrice.desclaux@cea.fr> | 2015-08-06 00:34:12 +0200 |
|---|---|---|
| committer | Fabrice Desclaux <fabrice.desclaux@cea.fr> | 2015-08-06 01:57:28 +0200 |
| commit | 943990929d4fb669d4e8616d8f5287141ffb4e3e (patch) | |
| tree | 90cd7a88ee7f13d559c4bcaecd9e150cb68254be /.travis.yml | |
| parent | 6df8da744777a55ff6979bc7dc4a5fee20c8f5c0 (diff) | |
| download | focaccia-miasm-943990929d4fb669d4e8616d8f5287141ffb4e3e.tar.gz focaccia-miasm-943990929d4fb669d4e8616d8f5287141ffb4e3e.zip | |
Travis: migrate to container based builds
Diffstat (limited to '.travis.yml')
| -rw-r--r-- | .travis.yml | 35 |
1 files changed, 28 insertions, 7 deletions
diff --git a/.travis.yml b/.travis.yml index 9d7b8c2b..19b64ace 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,16 +1,37 @@ +sudo: false language: python python: - "2.7" addons: -apt_packages: -- make -- gcc -- libpython2.7-dev -- unzip + apt: + packages: + - make + - gcc + - libpython2.7-dev + - python-virtualenv + - unzip before_script: -- "git clone http://repo.or.cz/tinycc.git tinycc && cd tinycc && git checkout d5e22108a0dc48899e44a158f91d5b3215eb7fe6 && ./configure --disable-static && make && sudo make install && sudo ldconfig && cd ..;" +- "cd .." +# make virtual env +- "python /usr/lib/python2.7/dist-packages/virtualenv.py virtualenv;" +- "cd virtualenv;" +- "source bin/activate;" +# install tcc +- "git clone http://repo.or.cz/tinycc.git tinycc && cd tinycc && git checkout d5e22108a0dc48899e44a158f91d5b3215eb7fe6" +- "./configure --disable-static --tccdir=./ --libdir=$(pwd) --includedir=$(pwd)" +- "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 elfesteem - "hg clone https://code.google.com/p/elfesteem/ elfesteem && cd elfesteem && python setup.py install && cd ..;" -- "mkdir z3 && cd z3 && wget -O z3.zip 'http://download-codeplex.sec.s-msft.com/Download/SourceControlFileDownload.ashx?ProjectName=z3&changeSetId=cee7dd39444c9060186df79c2a2c7f8845de415b' && unzip -q z3.zip && rm z3.zip && python scripts/mk_make.py && cd build && make -j 32 && sudo make install && cd ../.." +# install pyparsing - "pip install pyparsing" +# install z3 +- "mkdir z3 && cd z3 && wget -O z3.zip 'http://download-codeplex.sec.s-msft.com/Download/SourceControlFileDownload.ashx?ProjectName=z3&changeSetId=cee7dd39444c9060186df79c2a2c7f8845de415b'" +- "unzip -q z3.zip && rm z3.zip && python scripts/mk_make.py --prefix=$(pwd)/../ && cd build && make -j 32 && make install && cd ../.." +# install miasm +- "cd ..;" +- "cd miasm;" +- "python setup.py build build_ext -I$(pwd)/../virtualenv/include -L$(pwd)/../virtualenv/tinycc" - "python setup.py install" script: "cd test && python test_all.py -m" |