aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCédric Ollivier <cedric.ollivier@orange.com>2021-02-12 12:39:05 +0100
committerCédric Ollivier <cedric.ollivier@orange.com>2021-02-12 12:39:05 +0100
commitb6b64ee92fb8872670b6cec1fde14f6bbe175ab8 (patch)
treea959526bd89431f571746a03c5e1ffb5b483bbd2
parent8bd1849f2f1a8fb81e560ca01de5570e45d50414 (diff)
Compile lxm vs -O0 if arm*
https://travis-ci.com/github/collivier/functest-xtesting/jobs/482530072 Change-Id: I70004fbd6b695a5e50e330f9d0bfacc755610a65 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
-rw-r--r--docker/core/Dockerfile4
1 files changed, 4 insertions, 0 deletions
diff --git a/docker/core/Dockerfile b/docker/core/Dockerfile
index 5579be4c..58c07a5e 100644
--- a/docker/core/Dockerfile
+++ b/docker/core/Dockerfile
@@ -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 && \