From 1d190eb4039194d049cfc97b456978853d0d77d1 Mon Sep 17 00:00:00 2001 From: Cédric Ollivier Date: Sun, 14 Apr 2019 01:00:55 +0200 Subject: Speed up lxml build MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It allows cross-compiling it via travis-ci (benchmarking) [1][2] [1] https://lxml.de/installation.html [2] https://travis-ci.org/collivier/functest/jobs/519737041 Change-Id: I31609268d77405f036924a010cfb3dab520e9ea3 Signed-off-by: Cédric Ollivier --- .travis.yml | 8 +++++++- docker/benchmarking/Dockerfile | 1 + 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index e4dd4985e..39bab9dcc 100644 --- a/.travis.yml +++ b/.travis.yml @@ -116,6 +116,12 @@ jobs: - amd64_dirs="docker/benchmarking" - arm64_dirs="" - arm_dirs="" + - script: sudo -E bash build.sh + env: + - REPO="${DOCKER_USERNAME}" + - amd64_dirs="" + - arm64_dirs="docker/benchmarking" + - arm_dirs="" - script: sudo -E bash build.sh env: - REPO="${DOCKER_USERNAME}" @@ -159,7 +165,7 @@ jobs: --target ${DOCKER_USERNAME}/functest-smoke:latest - script: > sudo manifest-tool push from-args \ - --platforms linux/amd64,linux/arm \ + --platforms linux/amd64,linux/arm,linux/arm64 \ --template ${DOCKER_USERNAME}/functest-benchmarking:ARCH-latest \ --target ${DOCKER_USERNAME}/functest-benchmarking:latest - script: > diff --git a/docker/benchmarking/Dockerfile b/docker/benchmarking/Dockerfile index b3f842564..17dc0fc0c 100644 --- a/docker/benchmarking/Dockerfile +++ b/docker/benchmarking/Dockerfile @@ -12,6 +12,7 @@ RUN apk --no-cache add --update libxml2 libxslt && \ sed -i -E s/^tempest==+.*$/-e\ git+https:\\/\\/git.openstack.org\\/openstack\\/tempest#egg=tempest/ upper-constraints.txt && \ wget -q -O- https://git.opnfv.org/functest/plain/upper-constraints.txt?h=$BRANCH > upper-constraints.opnfv.txt && \ sed -i -E /#egg=functest/d upper-constraints.opnfv.txt && \ + CFLAGS="-O0" pip install --no-cache-dir -cupper-constraints.txt -cupper-constraints.opnfv.txt lxml && \ git init /src/vmtp && \ (cd /src/vmtp && \ git fetch --tags https://git.openstack.org/openstack/vmtp.git $VMTP_TAG && \ -- cgit 1.2.3-korg