Commit fc77e919 authored by Enrico Scholz's avatar Enrico Scholz

CI: updated to recent template

Signed-off-by: Enrico Scholz's avatarEnrico Scholz <enrico.scholz@sigma-chemnitz.de>
parent 560f9458
Pipeline #197 passed with stages
in 2 minutes and 13 seconds
......@@ -3,6 +3,7 @@ include: https://gitlab-ext.sigma-chemnitz.de/elito/gitlab-ci/raw/master/yml/oe-
variables:
X_PROJECT: "vm016-mx8m"
X_CI_DISTRO_FEDORA_30: "t"
stages:
- build
......@@ -10,76 +11,85 @@ stages:
- deploy
## generic build script
.build: &build_generic
.build:generic:
extends: .build:oe
script:
### Legacy support; fedora:25 docker images are not recreated anymore
- test -d ~/.config/openembedded || ln -s elito ~/.config/openembedded
- submodule_branch_dot
- submodule_sync
- |
submodule_override sources/de.sigma-chemnitz.core \
https://gitlab.intern.sigma-chemnitz.de/elito-meta/de.sigma-chemnitz.git \
"${CI_COMMIT_REF_NAME}" "${X_CI_SIGMA_CORE_REF}"
- _bbinfo
- _make ci-build -k
.build-image: &build_image
variables:
X_CI_TARGETS: "image"
X_CI_FLAVOR: ""
.build-sdk: &build_sdk
variables:
X_CI_TARGETS: "sdk"
X_CI_FLAVOR: "-sdk"
## The real builds
build:ubuntu:xenial:
<<: *build_generic
<<: *build_image
only:
variables:
- $X_CI_ALL_DISTROS
- $X_CI_DISTRO_UBUNTU_XENIAL
image: $CI_REGISTRY/docker/sigma/ci/elito-ubuntu:xenial
extends:
- .distro:ubuntu:xenial
- .build-image:oe
sdk:ubuntu:xenial:
<<: *build_generic
<<: *build_sdk
only:
variables:
- $X_CI_ALL_DISTROS
- $X_CI_DISTRO_UBUNTU_XENIAL
except:
variables:
- $X_CI_NO_SDK
image: $CI_REGISTRY/docker/sigma/ci/elito-ubuntu:xenial
extends:
- .distro:ubuntu:xenial
- .build-sdk:oe
##
#
build:fedora:25:
<<: *build_generic
<<: *build_image
except:
variables:
- $X_CI_DISTRO_NO_FEDORA_25
image: $CI_REGISTRY/docker/sigma/ci/elito-fedora:25
build:ubuntu:trusty:
extends:
- .distro:ubuntu:trusty
- .build-image:oe
sdk:fedora:25:
<<: *build_generic
<<: *build_sdk
except:
variables:
- $X_CI_DISTRO_NO_FEDORA_25
- $X_CI_NO_SDK
image: $CI_REGISTRY/docker/sigma/ci/elito-fedora:25
sdk:ubuntu:trusty:
extends:
- .distro:ubuntu:trusty
- .build-sdk:oe
#
build:debian:jessie:
extends:
- .distro:debian:jessie
- .build-image:oe
sdk:debian:jessie:
extends:
- .distro:debian:jessie
- .build-sdk:oe
#
build:debian:sid:
extends:
- .distro:debian:sid
- .build-image:oe
sdk:debian:sid:
extends:
- .distro:debian:sid
- .build-sdk:oe
#
build:fedora:30:
extends:
- .distro:fedora:30
- .build-image:oe
sdk:fedora:30:
extends:
- .distro:fedora:30
- .build-sdk:oe
## Assemble results
assemble:fedora:
extends: .assemble:oe
extends:
- .assemble:oe
dependencies:
- build:fedora:25
- sdk:fedora:25
except:
variables:
- $X_CI_DISTRO_NO_FEDORA_25
- $X_CI_NO_SDK
- build:fedora:30
- sdk:fedora:30
script:
- M='phyboard-polaris-imx8m-2'
......@@ -99,13 +109,10 @@ assemble:fedora:
## create pages
pages:
extends: .pages:oe
extends:
- .pages:oe
only:
variables:
- $CI_BUILD_REF_NAME == $X_CI_PAGES_REF
except:
variables:
- $X_CI_DISTRO_NO_FEDORA_25
- $X_CI_NO_SDK
dependencies:
- assemble:fedora
Markdown is supported
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