Compile lxm vs -O0 if arm* 07/72007/1
authorCédric Ollivier <cedric.ollivier@orange.com>
Fri, 12 Feb 2021 11:39:05 +0000 (12:39 +0100)
committerCédric Ollivier <cedric.ollivier@orange.com>
Fri, 12 Feb 2021 11:39:05 +0000 (12:39 +0100)
https://travis-ci.com/github/collivier/functest-xtesting/jobs/482530072

Change-Id: I70004fbd6b695a5e50e330f9d0bfacc755610a65
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
docker/core/Dockerfile

index 5579be4..58c07a5 100644 (file)
@@ -7,6 +7,10 @@ RUN apk -U upgrade && \
     apk --no-cache add --update python py-pip bash git mailcap libxml2 libxslt && \
     apk --no-cache add --virtual .build-deps --update \
         python-dev build-base libxml2-dev libxslt-dev && \
+    case $(uname -m) in aarch*|arm*) CFLAGS="-O0" \
+        pip install --no-cache-dir --src /src \
+            -chttps://opendev.org/openstack/requirements/raw/branch/$OPENSTACK_TAG/upper-constraints.txt \
+            -chttps://git.opnfv.org/functest-xtesting/plain/upper-constraints.txt?h=$BRANCH lxml ;; esac && \
     git init /src/functest-xtesting && \
     (cd /src/functest-xtesting && \
         git fetch --tags https://gerrit.opnfv.org/gerrit/functest-xtesting $BRANCH && \