Commit da2c28b4 authored by Thibault Saunier's avatar Thibault Saunier 🌵
Browse files

TEST

parent 83a61bf6
Pipeline #11356 passed with stage
in 19 seconds
......@@ -14,126 +14,8 @@ test manifest:
image: "registry.freedesktop.org/gstreamer/gst-ci/amd64/test-manifest:5856b05f3010136cebcaa9a90058572e008ae3f6"
stage: "preparation"
script:
- pytest-3 --junitxml=junit.xml --cov=build_manifest gitlab/build_manifest.py
coverage: '/TOTAL.*\s+(\d+%)$/'
- echo "Nothing"
artifacts:
reports:
junit:
- "junit.xml"
only:
changes:
- 'gitlab/build_manifest.py'
- 'docker/test_manifest/*'
.base:
image: "docker:stable"
services:
- docker:dind
variables:
# When using dind, it's wise to use the overlayfs driver for
# improved performance.
DOCKER_DRIVER: "overlay2"
GIT_STRATEGY: fetch
script:
- export IMAGE="${CI_REGISTRY_IMAGE}/${ARCH}/${TAG}"
- export REF="${IMAGE}:${CI_COMMIT_SHA}"
- export LATEST="${IMAGE}:latest"
- docker build --pull -f ${DOCKERFILE} -t ${LATEST} ${CONTEXT_DIR}
# If we are in a fork, push the image to the reigstry regardless the branch
- |
if [ "$CI_PROJECT_NAMESPACE" != "gstreamer" ]; then
docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
docker push ${LATEST}
fi
# Push the images to the upstream registry
- |
if [ "$CI_COMMIT_REF_NAME" = "master" -a "$CI_PROJECT_NAMESPACE" = "gstreamer" ]; then
# Tag the image with the git ref
docker image tag ${LATEST} ${REF}
# Push the tags
docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
docker push ${REF}
docker push ${LATEST}
fi
alpine amd64 manifest builder docker:
stage: "build docker"
variables:
ARCH: "amd64"
TAG: "build-manifest"
CONTEXT_DIR: "docker/build_manifest/"
DOCKERFILE: "docker/build_manifest/Dockerfile"
extends: .base
only:
changes:
- 'docker/build_manifest/*'
- 'gitlab/build_manifest.py'
test manifest amd64 docker:
stage: "build docker"
variables:
ARCH: "amd64"
TAG: "test-manifest"
CONTEXT_DIR: "docker/test_manifest/"
DOCKERFILE: "docker/test_manifest/Dockerfile"
extends: .base
only:
changes:
- 'docker/test_manifest/*'
gst-indent amd64 docker:
stage: "build docker"
variables:
ARCH: "amd64"
TAG: "gst-indent"
CONTEXT_DIR: "docker/indent/"
DOCKERFILE: "docker/indent/Dockerfile"
extends: .base
only:
changes:
- 'docker/indent/*'
fedora amd64 docker:
stage: "build docker"
variables:
ARCH: "amd64"
TAG: "fedora"
CONTEXT_DIR: "docker/fedora/"
DOCKERFILE: "docker/fedora/Dockerfile"
extends: .base
only:
changes:
- 'docker/fedora/*'
# Cross compile image
android 28 amd64 docker:
stage: "build docker"
variables:
ARCH: "amd64"
TAG: "android_28"
CONTEXT_DIR: "docker/android/"
DOCKERFILE: "docker/android/Dockerfile"
extends: .base
only:
changes:
- 'docker/android/*'
include: "gitlab/ci_template.yml"
# Test the build job against the latest build image tag and the local manifest
build fedora x86_64 local:
extends: '.build'
stage: 'build'
image: "${CI_REGISTRY_IMAGE}/amd64/fedora:latest"
build android 28 local:
extends: '.build'
variables:
MESON_ARGS: >
-Dbad=enabled
-Dbad:androidmedia=enabled
--cross-file /android_arm64_28.txt
image: "${CI_REGISTRY_IMAGE}/amd64/android_28:latest"
- "test.xml"
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<testsuite errors="0" failures="1" name="pytest" skips="0" tests="2" time="2.817">
<testcase classname="gst-ci.gitlab.build_manifest" file="gst-ci/gitlab/build_manifest.py" line="94" name="test_find_repository_sha" time="2.69242525100708"></testcase>
<testcase classname="gst-ci.gitlab.build_manifest" file="gst-ci/gitlab/build_manifest.py" line="94" name="test_get_project_branch" time="0.006042957305908203">
<failure message="assert False">def wrapper():
try:
url = os.environ[&quot;CI_PROJECT_URL&quot;]
user = os.environ[&quot;CI_PROJECT_NAMESPACE&quot;]
except KeyError:
url = &quot;invalid&quot;
user = &quot;&quot;
private = os.getenv(&quot;READ_PROJECTS_TOKEN&quot;, default=None)
if not private:
os.environ[&quot;READ_PROJECTS_TOKEN&quot;] = &quot;FOO&quot;
&gt; func()
gitlab/build_manifest.py:107:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
@preserve_ci_vars
def test_get_project_branch():
&gt; assert False
E assert False
gitlab/build_manifest.py:149: AssertionError</failure></testcase></testsuite>
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment