Commit ab9b156a by jovimon Committed by GitHub

Update travis for yara 3.5.0

parent 726c8a68
......@@ -3,12 +3,12 @@ sudo: required
#dist: trusty
before_install:
# Yara
- wget https://github.com/plusvic/yara/archive/v3.4.0.tar.gz -O yara.tar.gz
- wget https://github.com/plusvic/yara/archive/v3.5.0.tar.gz -O yara.tar.gz
- tar -xzvf yara.tar.gz
# Androguard for Yara
- wget https://raw.githubusercontent.com/Koodous/androguard-yara/master/androguard.c -O yara-3.4.0/libyara/modules/androguard.c
- wget https://raw.githubusercontent.com/Koodous/androguard-yara/master/dist/yara-3.4.0/libyara/modules/module_list -O yara-3.4.0/libyara/modules/module_list
- wget https://raw.githubusercontent.com/Koodous/androguard-yara/master/dist/yara-3.4.0/libyara/Makefile.am -O yara-3.4.0/libyara/Makefile.am
- wget https://raw.githubusercontent.com/Koodous/androguard-yara/master/androguard.c -O yara-3.5.0/libyara/modules/androguard.c
- wget https://raw.githubusercontent.com/Koodous/androguard-yara/master/dist/yara-3.5.0/libyara/modules/module_list -O yara-3.5.0/libyara/modules/module_list
- wget https://raw.githubusercontent.com/Koodous/androguard-yara/master/dist/yara-3.5.0/libyara/Makefile.am -O yara-3.5.0/libyara/Makefile.am
# libjansson
- wget http://www.digip.org/jansson/releases/jansson-2.7.tar.gz
- tar -xzvf jansson-2.7.tar.gz
......@@ -18,7 +18,8 @@ before_install:
- sudo make install
# Compile Yara
- cd ../yara-3.4.0
- cd ../yara-3.5.0
- sed -i 's/#define RE_MAX_SPLIT_ID 128/#define RE_MAX_SPLIT_ID 255/g' libyara/re.c
- ./bootstrap.sh
- ./configure --enable-cuckoo
- make
......@@ -30,6 +31,5 @@ script:
- echo "test" > testfile
- echo "{}" > androguard_report.json
- FALLO=0
# - for i in $(find . -type f -name "*.yara" ; find . -type f -name "*.yar"); do echo $i; yara -x androguard=androguard_report.json $i testfile; if [[ $? -ne 0 ]]; then FALLO=1; fi; done
- for j in $(ls -d */); do for i in $(find $j -type f -name "*.yara" ; find $j -type f -name "*.yar"); do echo $i; yara -x androguard=androguard_report.json $i testfile; if [[ $? -ne 0 ]]; then FALLO=1; fi; done; done
- exit $FALLO
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment