...
 
Commits (2)
  • Enrico Scholz's avatar
    CI: updated to recent template · 05654a71
    Enrico Scholz authored
    05654a71
  • Enrico Scholz's avatar
    updated submodules · 81453a01
    Enrico Scholz authored
    * sources/de.sigma-chemnitz.vm016 d08be59...dfb9771 (7):
      > devel: enabled ccache for barebox
      > fixup! barebox: added config-expansions
      > Revert "barebox: added 2019.01 recipe"
      > barebox: added 2019.01 recipe
      > barebox: added of_camera_selection patch
      > barebox: added config-expansions
      > dtree: disabled our tree
    81453a01
include: https://gitlab-ext.sigma-chemnitz.de/elito/gitlab-ci/raw/master/yml/oe-ci.yml
#include: https://gitlab.intern.sigma-chemnitz.de/elito/gitlab-ci/raw/next/yml/oe-ci.yml
#include: https://gitlab-ext.sigma-chemnitz.de/elito/gitlab-ci/raw/v0.1/yml/oe-ci.yml
variables:
X_PROJECT: "vm016"
GIT_STRATEGY: clone
X_CI_HELPER_REPO: "https://gitlab-ext.sigma-chemnitz.de/elito/gitlab-runner.git"
X_CI_HELPER_REV: "v0.0.5"
stages:
- build
- assemble
- deploy
## generic repository preparation
before_script:
- rm -rf ../gitlab-runner
- git clone -b "${X_CI_HELPER_REV}" --depth 1 "${X_CI_HELPER_REPO}" ../gitlab-runner
- . ../gitlab-runner/scripts/init-env
- . $_CI_DIR/register-gitlab-token
- git submodule sync --recursive
- git submodule update --init --recursive
- git submodule status --recursive
- rm -rf /cache/bld
# REMOVE ME for BSPs
- echo 'IMAGE = phytec-hwtest-image' > ~/.config/openembedded/kspXXXX.mk
## generic build script
.build: &build_generic
stage: build
tags:
- "disk:+50G"
- "mem:+4G"
artifacts:
name: "${X_PROJECT}${X_CI_FLAVOR}${X_CI_EXTRA_ARTIFICAT}"
when: on_success
expire_in: 1 day
paths:
- _deploy${X_CI_FLAVOR}/
extends: .build:oe
script:
- _make() { make CI_FLAVOR="${X_CI_FLAVOR}" CI_DIST="${_CI_BUILD_INFO%%:*}" T="${X_CI_TARGETS}" CI_MACHINE="${X_CI_MACHINE}" CI_DIR="${_CI_DIR}" "$@"; }
- trap "_make ci-clean || true" EXIT
- _make ci-build -k
- rm -f _deploy${X_CI_FLAVOR}/*.ubifs
.build-sdk: &build_sdk
artifacts:
name: "${X_PROJECT}${X_CI_FLAVOR}${X_CI_EXTRA_ARTIFICAT}"
when: on_success
expire_in: 1 day
paths:
- _deploy${X_CI_FLAVOR}/
variables:
X_CI_TARGETS: "sdk"
X_CI_FLAVOR: "-sdk"
- submodule_sync
- _bbinfo
- _make ci-build -k
- rm -f _deploy${X_CI_FLAVOR}/*.ubifs
.build-image: &build_image
variables:
X_CI_TARGETS: "image"
X_CI_FLAVOR: ""
.assemble: &assemble_generic
stage: assemble
.build-sdk: &build_sdk
except:
variables:
- $X_CI_NO_SDK
- $X_CI_SUBMODULE_MODE == "--remote"
variables:
GIT_STRATEGY: none
GIT_SUBMODULE_STRATEGY: none
artifacts:
expire_in: 1 day
paths:
- _files
before_script:
- "true"
X_CI_TARGETS: "sdk"
X_CI_FLAVOR: "-sdk"
## The real builds
build:ubuntu:
<<: *build_generic
<<: *build_image
only:
variables:
- $X_CI_ALL_DISTROS
- $X_CI_DISTRO_UBUNTU_XENIAL
image: $CI_REGISTRY/docker/sigma/ci/elito-ubuntu:xenial
.build:ubuntu:sdk:
sdk:ubuntu:xenial:
<<: *build_generic
<<: *build_sdk
only:
variables:
- $X_CI_ALL_DISTROS
- $X_CI_DISTRO_UBUNTU_XENIAL
image: $CI_REGISTRY/docker/sigma/ci/elito-ubuntu:xenial
build:fedora:
build:fedora:30:
<<: *build_generic
<<: *build_image
image: $CI_REGISTRY/docker/sigma/ci/elito-fedora:29
except:
variables:
- $X_CI_DISTRO_NO_FEDORA_30
image: $CI_REGISTRY/docker/sigma/ci/elito-fedora:30
build:fedora:sdk:
sdk:fedora:30:
<<: *build_generic
<<: *build_sdk
image: $CI_REGISTRY/docker/sigma/ci/elito-fedora:29
except:
variables:
- $X_CI_DISTRO_NO_FEDORA_30
- $X_CI_NO_SDK
image: $CI_REGISTRY/docker/sigma/ci/elito-fedora:30
## assemble
## Assemble results
assemble:fedora:
<<: *assemble_generic
extends: .assemble:oe
dependencies:
- build:fedora
- build:fedora:sdk
- build:fedora:30
- sdk:fedora:30
except:
variables:
- $X_CI_DISTRO_NO_FEDORA_30
- $X_CI_NO_SDK
script:
- M=phyboard-nunki-imx6-1
- mkdir _files _files/image _files/sdk
- install -p -m 0644 _deploy/barebox.* _files/image/
- install -p -m 0644 _deploy/*_vm016.dtb _files/image/
......@@ -113,27 +93,16 @@ assemble:fedora:
- install -p -m 0644 _deploy-sdk/*.sh _files/sdk/fedora-sdk.sh
## pages
## create pages
pages:
stage: deploy
variables:
GIT_STRATEGY: none
GIT_SUBMODULE_STRATEGY: none
environment:
name: deploy/$CI_COMMIT_REF_NAME
extends: .pages:oe
only:
variables:
- $CI_BUILD_REF_NAME == $X_CI_PAGES_REF
except:
variables:
- $X_CI_DISTRO_NO_FEDORA_30
- $X_CI_NO_SDK
- $X_CI_SUBMODULE_MODE == "--remote"
dependencies:
- assemble:fedora
artifacts:
expire_in: 1 week
paths:
- public
before_script:
- "true"
script:
- mkdir -p public/$CI_COMMIT_REF_NAME
- mv _files/* public/$CI_COMMIT_REF_NAME/
- ln -s "$CI_COMMIT_REF_NAME" public/latest
- rm -f public/index.html index.html
- ( cd public && tree -s -F -D --charset=utf-8 -H . ) > index.html
- mv index.html public/
Subproject commit d08be59242b529bd62ea57edb8eb305b2f6bc5f6
Subproject commit dfb97718a16c6d45b9d9380dcfda3cfd06aea0ee