From cce37be939fc2d89e536699f3f99bebc8c04032a Mon Sep 17 00:00:00 2001 From: Anton Kochkov Date: Tue, 23 Jul 2019 21:52:12 +0800 Subject: [PATCH] Create .travis.yml --- .travis.yml | 22 ++++++++++++++++++++++ requirements.txt | 3 +++ 2 files changed, 25 insertions(+) create mode 100644 .travis.yml create mode 100644 requirements.txt diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..55ebae4 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,22 @@ +language: python +python: + - "2.7" + - "3.5" + - "3.6" + - "3.7" + +install: + - pip install --upgrade pip + - pip install flake8 + - pip install -r requirements.txt + - python setup.py install + +before_script: + # stop the build if there are Python syntax errors or undefined names + - flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics + # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide + - flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics + +# command to run tests +script: + - python test.py diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..9096c06 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,3 @@ +capstone==4.0.1 +filebytes==0.9.21 +keystone-engine==0.9.1.post3