diff options
author | verhoek <30193551+verhoek@users.noreply.github.com> | 2019-12-02 23:30:37 +0300 |
---|---|---|
committer | verhoek <30193551+verhoek@users.noreply.github.com> | 2019-12-02 23:35:39 +0300 |
commit | 49db5035a82a7ae055d9da8bb19aa65b30f77bcf (patch) | |
tree | eaaefcd96d41df1d1981ae8510125f7fb19741ca /pipeline/stage_build | |
parent | 430bf8024161eb83243fdfeb1d93f12c0c056146 (diff) |
Imported duplicatipipeline scripts
Added bash scripts to run the dockerized build and test environment
Diffstat (limited to 'pipeline/stage_build')
-rwxr-xr-x | pipeline/stage_build/job.sh | 33 | ||||
-rwxr-xr-x | pipeline/stage_build/trigger.sh | 7 |
2 files changed, 40 insertions, 0 deletions
diff --git a/pipeline/stage_build/job.sh b/pipeline/stage_build/job.sh new file mode 100755 index 000000000..5c6bd6240 --- /dev/null +++ b/pipeline/stage_build/job.sh @@ -0,0 +1,33 @@ +#!/bin/bash +. /pipeline/docker-run/markers.sh +. /pipeline/shared/duplicati.sh + +function build () { + nuget restore "${DUPLICATI_ROOT}"/Duplicati.sln + + if [ ! -d "${DUPLICATI_ROOT}"/packages/SharpCompress.0.18.2 ]; then + ln -s "${DUPLICATI_ROOT}"/packages/sharpcompress.0.18.2 "${DUPLICATI_ROOT}"/packages/SharpCompress.0.18.2 + fi + + # build version stamper + msbuild -p:Configuration=Release -v:minimal "${DUPLICATI_ROOT}/BuildTools/UpdateVersionStamp/UpdateVersionStamp.csproj" + mono "${DUPLICATI_ROOT}/BuildTools/UpdateVersionStamp/bin/Release/UpdateVersionStamp.exe" --version="${releaseversion}" + + # build autoupdate + nuget restore "${DUPLICATI_ROOT}/BuildTools/AutoUpdateBuilder/AutoUpdateBuilder.sln" + msbuild -p:Configuration=Release -v:minimal "${DUPLICATI_ROOT}/BuildTools/AutoUpdateBuilder/AutoUpdateBuilder.sln" + + # build gpg signing tool + nuget restore "${DUPLICATI_ROOT}/BuildTools/GnupgSigningTool/GnupgSigningTool.sln" + msbuild -p:Configuration=Release -v:minimal "${DUPLICATI_ROOT}/BuildTools/GnupgSigningTool/GnupgSigningTool.sln" + + # build duplicati + msbuild -p:DefineConstants=__MonoCS__ -p:DefineConstants=ENABLE_GTK /p:Configuration=Release "${DUPLICATI_ROOT}/Duplicati.sln" + + msbuild -p:Configuration=Release -v:minimal "${DUPLICATI_ROOT}"/Duplicati.sln + cp -r "${DUPLICATI_ROOT}"/Duplicati/Server/webroot "${DUPLICATI_ROOT}"/Duplicati/GUI/Duplicati.GUI.TrayIcon/bin/Release/webroot +} + +travis_mark_begin "BUILDING BINARIES" +build +travis_mark_end "BUILDING BINARIES"
\ No newline at end of file diff --git a/pipeline/stage_build/trigger.sh b/pipeline/stage_build/trigger.sh new file mode 100755 index 000000000..9fcbb68bb --- /dev/null +++ b/pipeline/stage_build/trigger.sh @@ -0,0 +1,7 @@ +#!/bin/bash +. error_handling.sh + +PACKAGES="libgtk2.0-cil rsync" +docker-run --image mono \ +--packages "$PACKAGES" \ +--command "/pipeline/stage_build/job.sh" "$@"
\ No newline at end of file |