Merge pull request #81 from ret2libc/fixtravis5

Fix travis
This commit is contained in:
Yan 2016-09-23 18:50:05 -07:00 committed by GitHub
commit 1fec4f0ae9
12 changed files with 51 additions and 20 deletions

View file

@ -1,8 +1,11 @@
language: python
python: 2.7
language: bash
sudo: required
dist: xenial
dist: trusty
env:
- PATH=$TRAVIS_BUILD_DIR/bin:$PATH
install: (sudo apt-get update || true) && bin/manage-tools -s setup
script: manage-tools -s test all
script:
- VIRTUALENVWRAPPER_SCRIPT=/usr/share/virtualenvwrapper/virtualenvwrapper.sh manage-tools -s -v test z3
- VIRTUALENVWRAPPER_SCRIPT=/usr/share/virtualenvwrapper/virtualenvwrapper.sh manage-tools -s -v test qemu
- VIRTUALENVWRAPPER_SCRIPT=/usr/share/virtualenvwrapper/virtualenvwrapper.sh manage-tools -s -v test qira
- VIRTUALENVWRAPPER_SCRIPT=/usr/share/virtualenvwrapper/virtualenvwrapper.sh manage-tools -s -v test all

View file

@ -1,7 +1,10 @@
#!/bin/bash
# it's z3!
pip install https://github.com/zardus/z3/archive/pypy-and-setup.zip
ctf-tools-pip install https://github.com/zardus/z3/archive/pypy-and-setup.zip
source ${VIRTUALENVWRAPPER_SCRIPT}
workon ctftools
# pybfd can't be installed with pip
git clone --depth 1 https://github.com/Groundworkstech/pybfd
@ -9,11 +12,16 @@ cd pybfd/
python setup.py install
cd ..
# install pyasmjit
git clone --depth 1 https://github.com/programa-stic/pyasmjit.git
cd pyasmjit
python setup.py install
cd ..
# install barf
git clone --depth 1 https://github.com/programa-stic/barf-project
cd barf-project/
pip install -e pyasmjit/
pip install -e barf/
python setup.py install
cd ..
mkdir -p bin

View file

@ -1,4 +1,4 @@
#!/bin/bash
pip uninstall -y barf pyasmjit
ctf-tools-pip uninstall -y barf pyasmjit
rm -f $VIRTUAL_ENV/bin/BARFgadgets

View file

@ -5,10 +5,11 @@ set -eu -o pipefail
function usage()
{
cat <<END
Usage: $(basename $0) [-s] (list|setup|install|uninstall|bin|search) tool
Usage: $(basename $0) [-sv] (list|setup|install|uninstall|bin|search) tool
Where:
-s allow running things with sudo (i.e., to install debs)
-v verbose mode. print log while installing
tool the name of the tool. if "all", does the action on all tools
Actions:
@ -158,6 +159,9 @@ do
-s)
export ALLOW_SUDO=1
;;
-v)
export VERBOSE_OUTPUT=1
;;
*)
usage
exit
@ -167,6 +171,7 @@ do
done
[[ -z ${ALLOW_SUDO+x} ]] && export ALLOW_SUDO=0
[[ -z ${VERBOSE_OUTPUT+x} ]] && export VERBOSE_OUTPUT=0
if [[ $# -ge 1 ]]; then
ACTION="$1"
@ -246,8 +251,12 @@ case $ACTION in
fi
# execute install script
if env DISTRI=$DISTRI ./install >>install.log 2>&1
then
if [ "$VERBOSE_OUTPUT" -eq 1 ]; then
env DISTRI=$DISTRI ./install 2>&1 | tee -a install.log
else
env DISTRI=$DISTRI ./install >>install.log 2>&1
fi
if [ "$?" -eq 0 ]; then
tool_log "install finished"
else
tool_log "INSTALL FAILED"

View file

@ -1,7 +1,7 @@
#!/bin/bash -e
git clone --depth 1 https://github.com/devttys0/binwalk.git
pip install -e binwalk
ctf-tools-pip install -e binwalk
mkdir -p bin
ln -s $VIRTUAL_ENV/bin/binwalk bin

View file

@ -1,4 +1,4 @@
#!/bin/bash
ctf-tools-pip install -U capstone
ctf-tools-pip3 install -U capstone
ctf-tools-pip install --no-use-wheel -U capstone
ctf-tools-pip3 install --no-use-wheel -U capstone

View file

@ -11,7 +11,7 @@ cp distorm3/make/linux/*.so distorm3/*.a lib
mkdir -p include
cp distorm3/include/*.h include
pip install -U pycparser
ctf-tools-pip install -U pycparser
sed -i -e "s|/usr/local|$PWD|" panda/qemu/build.sh
export QEMU_CFLAGS="-I $PWD/include -L $PWD/lib"

View file

@ -2,6 +2,6 @@
[ -e ropper ] || git clone --depth 1 https://github.com/sashs/Ropper.git ropper
pip install --no-use-wheel --no-cache-dir -I capstone
pip install filebytes
pip install -e ropper
ctf-tools-pip install --no-use-wheel --no-cache-dir -I capstone
ctf-tools-pip install filebytes
ctf-tools-pip install -e ropper

View file

@ -1,4 +1,9 @@
#!/bin/bash -e
set +e
source ${VIRTUALENVWRAPPER_SCRIPT}
workon ctftools
set -e
[ $(ropper --file /bin/false | wc -l) -gt 400 ] || exit 1
exit 0

View file

@ -2,6 +2,11 @@
git clone https://github.com/b3mb4m/shellsploit-framework.git
cd shellsploit-framework
set +e
source ${VIRTUALENVWRAPPER_SCRIPT}
workon ctftools
set -e
python easyinstall.py install
cd ..
@ -9,3 +14,4 @@ mkdir -p bin
cd bin
ln -sf $VIRTUAL_ENV/bin/shellsploit .
cd ..
deactivate

View file

@ -1,7 +1,7 @@
#!/bin/bash
git clone --depth 1 https://github.com/sqlmapproject/sqlmap.git
pip install pymysql psycopg2 pysqlite2 python-ntlm
ctf-tools-pip install pymysql psycopg2 pysqlite2 python-ntlm
mkdir bin
cd bin
ln -s ../sqlmap/sqlmap.py .

View file

@ -1,3 +1,3 @@
git clone --depth 1 https://github.com/antoniobianchi333/virtualsocket.git
pip install -e virtualsocket/
ctf-tools-pip install -e virtualsocket/