Commit fdd8f101 authored by Rye Mutt's avatar Rye Mutt 🍞

Change to templated CI config and change version to be compliant with our policy

parent dc993573
Pipeline #526 passed with stages
in 1 minute and 12 seconds
stages:
- build
- deploy
variables:
AUTOBUILD_PACKAGE_DIR: zlib
AUTOBUILD_PACKAGE_NAME: zlib
AUTOBUILD_BUILD_ID: $CI_PIPELINE_ID
build:windows:
stage: build
tags:
- autobuild
- windows
before_script:
- virtualenv .venv
- .\.venv\Scripts\activate.ps1
- pip install autobuild -i https://pkg.alchemyviewer.org/repository/autobuild/simple
script:
- autobuild install -A32
- autobuild build -A32
- autobuild package -A32
artifacts:
paths:
- ${env:AUTOBUILD_PACKAGE_NAME}-*windows*.tar.bz2
build:windows64:
stage: build
tags:
- autobuild
- windows
before_script:
- virtualenv .venv
- .\.venv\Scripts\activate.ps1
- pip install autobuild -i https://pkg.alchemyviewer.org/repository/autobuild/simple
script:
- autobuild install -A64
- autobuild build -A64
- autobuild package -A64
artifacts:
paths:
- ${env:AUTOBUILD_PACKAGE_NAME}-*windows64*.tar.bz2
build:linux64:
stage: build
image: r.alchemyviewer.org/alchemy/infrastructure/debian-build-image:latest
tags:
- linux
- docker
script:
- autobuild install -A64
- autobuild build -A64
- autobuild package -A64
artifacts:
paths:
- $AUTOBUILD_PACKAGE_NAME-*linux64*.tar.bz2
deploy:nexus:
stage: deploy
tags:
- autobuild
- windows
when: manual
script:
- $FileNameLnx64 = Get-ChildItem -Path . -Name -Include ${env:AUTOBUILD_PACKAGE_NAME}-*-linux64-${env:AUTOBUILD_BUILD_ID}*.tar.bz2
- curl.exe -v --user "${env:AUTOBUILD_HTTP_USER}:${env:AUTOBUILD_HTTP_PASS}" --upload-file .\$FileNameLnx64 "https://pkg.alchemyviewer.org/repository/autobuild-external/${env:AUTOBUILD_PACKAGE_DIR}/linux64/${FileNameLnx64}"
- $FileNameWin32 = Get-ChildItem -Path . -Name -Include ${env:AUTOBUILD_PACKAGE_NAME}-*-windows-${env:AUTOBUILD_BUILD_ID}*.tar.bz2
- curl.exe -v --user "${env:AUTOBUILD_HTTP_USER}:${env:AUTOBUILD_HTTP_PASS}" --upload-file .\$FileNameWin32 "https://pkg.alchemyviewer.org/repository/autobuild-external/${env:AUTOBUILD_PACKAGE_DIR}/windows/${FileNameWin32}"
- $FileNameWin64 = Get-ChildItem -Path . -Name -Include ${env:AUTOBUILD_PACKAGE_NAME}-*-windows64-${env:AUTOBUILD_BUILD_ID}*.tar.bz2
- curl.exe -v --user "${env:AUTOBUILD_HTTP_USER}:${env:AUTOBUILD_HTTP_PASS}" --upload-file .\$FileNameWin64 "https://pkg.alchemyviewer.org/repository/autobuild-external/${env:AUTOBUILD_PACKAGE_DIR}/windows64/${FileNameWin64}"
\ No newline at end of file
include:
- project: 'alchemy/infrastructure/gitlab-ci-config'
file: '3p-library.yml'
......@@ -30,7 +30,7 @@ source_environment_tempfile="$stage/source_environment.sh"
VERSION_HEADER_FILE="$ZLIB_SOURCE_DIR/zlib.h"
version=$(sed -n -E 's/#define ZLIB_VERSION "([0-9.]+)"/\1/p' "${VERSION_HEADER_FILE}")
build=${AUTOBUILD_BUILD_ID:=0}
echo "${version}.${build}" > "${stage}/VERSION.txt"
echo "${version}" > "${stage}/VERSION.txt"
pushd "$ZLIB_SOURCE_DIR"
case "$AUTOBUILD_PLATFORM" in
......
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