From: Niels Möller Date: Wed, 24 Mar 2021 18:40:03 +0000 (+0100) Subject: gitlab-ci: Add remote tests for s390x. X-Git-Tag: nettle_3.8_release_20220602~128 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c25774e230985a625fa5112f3f19e03302e49e7f;p=thirdparty%2Fnettle.git gitlab-ci: Add remote tests for s390x. --- diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a136b4a1..88fcbb26 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -4,6 +4,7 @@ variables: FEDORA_BUILD: buildenv-fedora31 DEBIAN_X86_CROSS_BUILD: buildenv-debian-x86-cross GET_SOURCES_ATTEMPTS: "3" + S390X_HOST: nettle-ci@148.100.78.99 # remove any pre-installed headers from nettle before_script: @@ -173,3 +174,33 @@ Debian.cross.powerpc64-linux-gnu: <<: *Debian_cross_template Debian.cross.powerpc64le-linux-gnu: <<: *Debian_cross_template + +remote/s390x: + image: $CI_REGISTRY/$BUILD_IMAGES_PROJECT:$FEDORA_BUILD + before_script: + # File created as world-readable by gitlab ci machinery. + - chmod 0600 $SSH_PRIVATE_KEY + - ssh -o 'StrictHostKeyChecking no' -i $SSH_PRIVATE_KEY $S390X_HOST + "mkdir -p ci-work/$CI_PIPELINE_IID" + script: + - echo $CI_PIPELINE_IID + - ./.bootstrap && + ./configure && make PACKAGE_VERSION=snapshot dist && + ls -l *.tar.gz + - cat nettle-snapshot.tar.gz | + ssh -o 'StrictHostKeyChecking no' -i $SSH_PRIVATE_KEY $S390X_HOST + "cd ci-work/$CI_PIPELINE_IID && tar xzf -" + - ssh -o 'StrictHostKeyChecking no' -i $SSH_PRIVATE_KEY $S390X_HOST + "cd ci-work/$CI_PIPELINE_IID/nettle-snapshot && ./configure --disable-documentation" + - ssh -o 'StrictHostKeyChecking no' -i $SSH_PRIVATE_KEY $S390X_HOST + "cd ci-work/$CI_PIPELINE_IID/nettle-snapshot && make" + - ssh -o 'StrictHostKeyChecking no' -i $SSH_PRIVATE_KEY $S390X_HOST + "cd ci-work/$CI_PIPELINE_IID/nettle-snapshot && make check" + after_script: + - ssh -o 'StrictHostKeyChecking no' -i $SSH_PRIVATE_KEY $S390X_HOST + "rm -rf ci-work/$CI_PIPELINE_IID" + tags: + - shared + - linux + except: + - tags diff --git a/ChangeLog b/ChangeLog index de66aba3..c122d40d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2021-03-24 Niels Möller + + * .gitlab-ci.yml: Add remote tests for s390x. + 2021-03-22 Niels Möller Arm64 improvements, including fat build support. Contributed by