Commit 157c7799 authored by Rye Mutt's avatar Rye Mutt 🍞
Browse files

Add templated CI config

parent 0529ec76
Pipeline #548 passed with stages
in 4 minutes
stages:
- build
- deploy
include:
- project: 'alchemy/infrastructure/gitlab-ci-config'
file: '3p-library.yml'
variables:
AUTOBUILD_PACKAGE_DIR: vlc-bin
AUTOBUILD_PACKAGE_NAME: vlc_bin
AUTOBUILD_BUILD_ID: $CI_PIPELINE_ID
build:windows:
stage: build
tags:
- autobuild
- windows
before_script:
- pipenv install
script:
- pipenv run autobuild install -A32
- pipenv run autobuild build -A32
- pipenv run autobuild package -A32
artifacts:
paths:
- ${env:AUTOBUILD_PACKAGE_NAME}-*windows*.tar.bz2
build:windows64:
stage: build
tags:
- autobuild
- windows
before_script:
- pipenv install
script:
- pipenv run autobuild install -A64
- pipenv run autobuild build -A64
- pipenv run autobuild package -A64
artifacts:
paths:
- ${env:AUTOBUILD_PACKAGE_NAME}-*windows64*.tar.bz2
deploy:nexus:
stage: deploy
tags:
- autobuild
- windows
script:
- $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
BUILD_COMMON: 0
BUILD_WINDOWS: 1
BUILD_WINDOWS64: 1
BUILD_LINUX64: 0
BUILD_MACOS: 1
syntax: glob
*.DS_Store
0d9a9e40a65001a93fe76592e8e4070148ef751f current
0d9a9e40a65001a93fe76592e8e4070148ef751f current
5ba6995d3f992285f22710a5b5e7081bdd04e4b2 current
5ba6995d3f992285f22710a5b5e7081bdd04e4b2 current
8def9d13faac92bb15d11b24e3f06a5ae6ba49d4 current
8def9d13faac92bb15d11b24e3f06a5ae6ba49d4 current
fd1996ec1b09ecd0b4361f15b05305461dfead60 current
fd1996ec1b09ecd0b4361f15b05305461dfead60 current
47c7c1223c9bc9e801a25c391e7ba13b21263da2 current
47c7c1223c9bc9e801a25c391e7ba13b21263da2 current
7a61dd16be923e9c308bec61a37b421bae9ab56f current
# BuildParams
#
# Please refer to:
# https://wiki.secondlife.com/wiki/Automated_Build_System
public_build = true
build_Linux = false
build_Darwin = false
# Need viewer-build-variables as well as other shared repositories
buildscripts_shared_more_NAMEs="build_variables"
build_variables_repostory_url = "https://bitbucket.org/lindenlab/viewer-build-variables"
[[source]]
url = "https://pypi.org/simple"
verify_ssl = true
name = "pypi"
[dev-packages]
[packages]
llbase = "*"
certifi = "*"
autobuild = {git = "https://git.alchemyviewer.org/alchemy/autobuild.git"}
[requires]
python_version = "2.7"
......@@ -35,9 +35,6 @@ VLC_SOURCE_DIR_WIN32="vlc-win32"
VLC_SOURCE_DIR_WIN64="vlc-win64"
VLC_SOURCE_DIR_DARWIN64="vlc-darwin64"
# used in VERSION.txt but common to all bit-widths and platforms
build=${AUTOBUILD_BUILD_ID:=0}
case "$AUTOBUILD_PLATFORM" in
windows*)
# choose VLC source dir - different for 32/64 bit versions
......@@ -53,7 +50,6 @@ case "$AUTOBUILD_PLATFORM" in
/DVERSION_MAJOR_MACRO="LIBVLC_VERSION_MAJOR" \
/DVERSION_MINOR_MACRO="LIBVLC_VERSION_MINOR" \
/DVERSION_REVISION_MACRO="LIBVLC_VERSION_REVISION" \
/DVERSION_BUILD_MACRO="\"${build}\"" \
/Fo"$(cygpath -w "$stage/version.obj")" \
/Fe"$(cygpath -w "$stage/version.exe")" \
"$(cygpath -w "$top/version.c")"
......@@ -92,7 +88,6 @@ case "$AUTOBUILD_PLATFORM" in
-DVERSION_MAJOR_MACRO="LIBVLC_VERSION_MAJOR" \
-DVERSION_MINOR_MACRO="LIBVLC_VERSION_MINOR" \
-DVERSION_REVISION_MACRO="LIBVLC_VERSION_REVISION" \
-DVERSION_BUILD_MACRO="\"${build}\"" \
-o "$stage/version" "$top/version.c"
"$stage/version" > "$stage/version.txt"
rm "$stage/version"
......
......@@ -19,6 +19,6 @@
int main(int argc, char *argv[])
{
printf("%d.%d.%d.%s\n", VERSION_MAJOR_MACRO, VERSION_MINOR_MACRO, VERSION_REVISION_MACRO, VERSION_BUILD_MACRO);
printf("%d.%d.%d\n", VERSION_MAJOR_MACRO, VERSION_MINOR_MACRO, VERSION_REVISION_MACRO);
return 0;
}
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