Commit 28c3832e authored by IOhannes m zmölnig's avatar IOhannes m zmölnig
Browse files

CI-definition for packages that don't require building (e.g. arch:all)

parent 74f37f95
#######################################################################
### .git-ci/gitlab-iem.yml for Pd externals: v2.0
###
### this can be used for any external with a build system like:
### - 'make' builds the external
### - 'make install' installs the external to be used by Pd
### the following make variables must be honoured:
### - extension: filename extension for externals
### - DESTDIR: base directory for 'make install'
### - pkglibdir: directory to put externals into (relative to DESTDIR)
### some more expectations:
### - 'make install' will put all relevant files into ${DESTDIR}/${pkglibdir}/${CI_PROJECT_NAME}
###
### one well known build-system that can be used straight away is
### "pd-lib-builder" -> https://github.com/pure-data/pd-lib-builder/
#######################################################################
include:
# define job-templates:
- https://git.iem.at/pd/iem-ci/raw/master/no-build/iem-ci.yml
#######################################################################
### create deken packages and (optionally) upload them;
### if you want to automatically upload a package, you *must* to
### set DEKEN_USERNAME/DEKEN_PASSWORD in the CI-project settings.
### (https://git.iem.at/help/ci/variables/README#variables)
# tagged releases never expire
deken:
only:
- tags
extends:
- .deken
# untagged snapshot builds expire soon
deken_snapshot:
except:
- tags
artifacts:
expire_in: 1 week
extends:
- .deken
#######################################################################
### .git-ci/gitlab-iem.yml for Pd externals: v2.0
###
### this file contains the template definitions for various build/deploy jobs
###
### the jobs found here can be used for any external with a build system like:
### - 'make' builds the external
### - 'make install' installs the external to be used by Pd
### the following make variables must be honoured:
### - extension: filename extension for externals
### - DESTDIR: base directory for 'make install'
### - pkglibdir: directory to put externals into (relative to DESTDIR)
### some more expectations:
### - 'make install' will put all relevant files into ${DESTDIR}/${pkglibdir}/${IEM_CI_PROJECT_NAME}
### with:
### - IEM_CI_PROJECT_NAME: the name of the project (defaults to ${CI_PROJECT_NAME}, but should match
### the Pd-library name (e.g. pd-lib-builder's "lib.name")
###
### one well known build-system that can be used straight away is
### "pd-lib-builder" -> https://github.com/pure-data/pd-lib-builder/
#######################################################################
variables:
PDVERSION: 0.50-2
SRCDIR: .
IEM_CI_TMPDIR: .git-ci/_build/
IEM_CI_PKGLIBDIR: ""
IEM_CI_PROJECT_NAME: ${CI_PROJECT_NAME}
#######################################################################
### create deken packages and (optionally) upload them;
### if you want to automatically upload a package, you need to
### set DEKEN_USERNAME/DEKEN_PASSWORD in the CI-project settings.
### (https://git.iem.at/help/ci/variables/README#variables)
.deken:
stage: deploy
image: debian:buster
variables:
DEKEN_ROOT: "yes"
before_script:
- apt-get update && apt-get --no-install-recommends -y install deken git
script:
- chmod -R go-w .
# create source package
- git archive --format=tar --prefix=tmp/${IEM_CI_PROJECT_NAME}/ HEAD | tar xf -
- deken package --version="${CI_COMMIT_TAG#v}" "tmp/${IEM_CI_PROJECT_NAME}"
# upload deken packages
- test -z "${CI_COMMIT_TAG}" || test -z "${DEKEN_USERNAME}" || test -z "${DEKEN_PASSWORD}" || deken upload --no-source-error ./*.dek
artifacts:
name: deken-package
paths:
- ./*.dek
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