about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorCamille Mougey <commial@gmail.com>2019-02-12 15:53:56 +0100
committerGitHub <noreply@github.com>2019-02-12 15:53:56 +0100
commit9b53aa5f888c84c069809ffae752ecb80c51c738 (patch)
tree749f1f0541795a2ceae9cd865b01f17d01f073a3
parent9ffed7e967dc0a458a1f370de6bf738592056047 (diff)
parentd666a0649928fe331980e9aef64d22f48fe4c17e (diff)
downloadmiasm-9b53aa5f888c84c069809ffae752ecb80c51c738.tar.gz
miasm-9b53aa5f888c84c069809ffae752ecb80c51c738.zip
Merge pull request #967 from serpilliere/ci_warning_error
CI: transform warnings into error
-rw-r--r--.appveyor.yml2
-rw-r--r--.travis.yml4
2 files changed, 2 insertions, 4 deletions
diff --git a/.appveyor.yml b/.appveyor.yml
index 5a6b3b38..fb565570 100644
--- a/.appveyor.yml
+++ b/.appveyor.yml
@@ -33,7 +33,7 @@ build_script:
 
 test_script:
   - cmd: cd c:\projects\miasm\test
-  - "%PYTHON%\\python.exe test_all.py"
+  - "%PYTHON%\\python.exe -W error test_all.py"
 
 after_test:
   - cmd: chdir
diff --git a/.travis.yml b/.travis.yml
index f5c55368..ee4f0ed5 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -26,9 +26,7 @@ before_script:
 - pip install -r optional_requirements.txt
 # codespell
 - "pip install codespell && git ls-files | xargs codespell --ignore-words=.codespell_ignore 2>/dev/null"
-# turn deprecation warning into RuntimeError
-- "find . -name '*.py' | xargs sed -i 's/warnings\\.warn(/raise RuntimeError(/g'"
 # install
 - python setup.py build build_ext
 - python setup.py install
-script: cd test && python test_all.py $MIASM_TEST_EXTRA_ARG && git ls-files -o --exclude-standard
+script: cd test && python -W error test_all.py $MIASM_TEST_EXTRA_ARG && git ls-files -o --exclude-standard