Skip to content
Snippets Groups Projects
Commit 8f7c3407 authored by akiraohgaki's avatar akiraohgaki
Browse files

CI job

parent c0c78ec3
No related branches found
No related tags found
No related merge requests found
......@@ -9,4 +9,7 @@ appimage:
- /^release\-.+/
script:
- ./scripts/package appimage
- cat transfer.log
artifacts:
paths:
- build_*/ocs-manager*.AppImage
expire_in: 2 days
......@@ -14,7 +14,6 @@ appimage() { # docker-image: ubuntu:14.04
install_build_deps_appimage
add_pkguser
su -c "export HOME=/home/${PKGUSER} && source /opt/qt59/bin/qt59-env.sh && "${PKGSCRIPT}" build_appimage" ${PKGUSER}
transfer_file "$(find "${BUILDDIR}" -type f -name "${PKGNAME}*-x86_64.AppImage")"
}
install_build_deps_appimage() {
......@@ -56,16 +55,6 @@ export_srcarchive() {
fi
}
transfer_file() {
if [ -f "${1}" ]; then
filename="$(basename "${1}")"
transferlog="${PROJDIR}/transfer.log"
echo "Uploading ${filename}" >> "${transferlog}"
curl -fsSL -T "${1}" "https://transfer.sh/${filename}" >> "${transferlog}"
echo '' >> "${transferlog}"
fi
}
if [ "${1}" ]; then
${1}
fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment