Ensure that aarch64 patch can be applied
authorCédric Ollivier <cedric.ollivier@orange.com>
Wed, 23 Aug 2017 10:03:51 +0000 (12:03 +0200)
committerCédric Ollivier <cedric.ollivier@orange.com>
Wed, 23 Aug 2017 18:41:03 +0000 (20:41 +0200)
It simply creates a new testenv.

Change-Id: I2675d1b3240a59fa985bd91f979efe1896c3d605
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
tox.ini

diff --git a/tox.ini b/tox.ini
index 94063c2..9fc18b3 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -1,5 +1,5 @@
 [tox]
-envlist = docs,pep8,pylint,py35,py27,perm
+envlist = docs,pep8,pylint,py35,py27,perm,aarch64
 
 [testenv]
 usedevelop = True
@@ -60,3 +60,12 @@ commands =
     -exec ls -l \{\} + | grep '.' && exit 1 || exit 0"
   bash -c "\
     find {[testenv:perm]path} -exec file \{\} + | grep CRLF && exit 1 || exit 0"
+
+[testenv:aarch64]
+basepython = python2.7
+whitelist_externals =
+  bash
+  git
+commands =
+  bash -c "patch -f -p1 < docker/Dockerfile.aarch64.patch"
+  git checkout docker/Dockerfile