A rewrite in C++ and wxWidgets of a minimalistic pEp Linux Setup for Thuderbird.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

96 lines
3.7 KiB

kind: pipeline
type: docker
name: default
steps:
- name: submodules
image: alpine/git
commands:
- env
- git submodule update --init --recursive --remote
- name: build-image-1
image: plugins/docker
environment:
PLUGIN_DEBUG: true
settings:
# username: test
# password: n0t-This-1
repo: hub.pep.oneon.ch/plugins/docker
build_args:
- DRONE_IMAGE_BUILD_BRANCH=${DRONE_BRANCH#build-image/*}
tags:
- "${DRONE_BRANCH#build-image/*}"
- latest
# - "${DRONE_BRANCH}-${DRONE_COMMIT}"
registry: hub.pep.oneon.ch
dockerfile: parts/build/Dockerfile.dind
cache_from:
- "hub.pep.oneon.ch/plugins/docker:master"
- "hub.pep.oneon.ch/plugins/docker:${DRONE_BRANCH#build-image/*}"
when:
branch:
- build-image/*
- name: build-image-2
image: hub.pep.oneon.ch/plugins/docker
privileged: true
# environment:
# PLUGIN_DEBUG: true
settings:
# username: test
# password: n0t-This-1
repo: hub.pep.oneon.ch/pe_p/linux-tb-install-alpine-build
build_args:
- DRONE_IMAGE_BUILD_BRANCH=${DRONE_BRANCH#build-image/*}
tags:
- "${DRONE_BRANCH#build-image/*}"
# - "${DRONE_BRANCH}-${DRONE_COMMIT}"
registry: hub.pep.oneon.ch
dockerfile: parts/build/Dockerfile
cache_from:
- "hub.pep.oneon.ch/pe_p/linux-tb-install-alpine-build:master"
- "hub.pep.oneon.ch/pe_p/linux-tb-install-alpine-build:${DRONE_BRANCH#build-image/*}"
when:
branch:
- build-image/*
- name: installer
image: "hub.pep.oneon.ch/pe_p/linux-tb-install-alpine-build:${DRONE_BRANCH:-master}"
pull: always
commands:
- /install/bin/wx-config --static --cppflags
- /install/bin/wx-config --static --libs
- _ver_mk=$$(awk '$1 == "VERSION" {print $3}' GNUmakefile)
- export _ver=${DRONE_TAG#Release_}
- export _ver=$${_ver:-$${_ver_mk}}
- export _pEp4Tb_rel=$$(git --git-dir .git/modules/contrib/pEp/pEpForThunderbird describe --tags)
- "cp -f /install/bin/pEp-mini-json-adapter-local plat/lnx/pEp-mini-json-adapter-local 2>/dev/null || true"
- "cp -f plat/lnx/pEp-mini-json-adapter-local plat/lnx/pEp-mini-json-adapter.user 2>/dev/null || true"
- "cp -f /install/bin/pEp-mini-json-adapter plat/lnx/pEp-mini-json-adapter 2>/dev/null || true"
- make OS=lnx VARIANT=unreleased pEp4Tb_release="$${_pEp4Tb_rel}" VERSION="$${_ver}" download-parts
- "[ ! -e plat/lnx/tb_setup ] || touch plat/lnx/tb_setup"
- "[ -e plat/lnx/tb_setup ] || make -C src all wx_config=/usr/bin/wx-config"
- "[ -e plat/lnx/tb_setup ] || cp -v src/tb_setup plat/lnx/tb_setup"
- make -C src/launcher
- cp -v src/launcher/install.run plat/lnx/install.run
#- CPPFLAGS="-L/install/lib" make all STATIC=yes OS=lnx VARIANT=unreleased pEp4Tb_release="$${_pEp4Tb_rel}" VERSION="$${_ver}" wx_config=/install/bin/wx-config
- CPPFLAGS="-L/install/lib" make all STATIC=no OS=lnx VARIANT=unreleased pEp4Tb_release="$${_pEp4Tb_rel}" VERSION="$${_ver}" wx_config=/install/bin/wx-config
# - make webinstall OS=lnx VARIANT=unreleased pEp4Tb_release="$${_pEp4Tb_rel}" VERSION="$${_ver}"
when:
branch:
exclude:
- build-image/*
- name: upload
image: "hub.pep.oneon.ch/pe_p/drone-upload:master"
commands:
- _ver_mk=$$(awk '$1 == "VERSION" {print $3}' GNUmakefile)
- export _ver=${DRONE_TAG#Release_}
- export _ver=$${_ver:-$${_ver_mk}}
- /root/upload.sh dist/pEp_Setup_Thunderbird_unreleased-lnx+$${_ver}-x86_64.zip
- /root/upload.sh --publish
when:
branch:
exclude:
- build-image/*