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

CI job

parent de11772d
No related branches found
No related tags found
No related merge requests found
Pipeline #312 failed
......@@ -9,7 +9,10 @@ ubuntu_deb:
- /^release\-.+/
script:
- ./scripts/package ubuntu_deb
- cat transfer.log
artifacts:
paths:
- build_*/ocs-url*.deb
expire_in: 2 days
fedora_rpm:
stage: build
......@@ -19,7 +22,10 @@ fedora_rpm:
- /^release\-.+/
script:
- ./scripts/package fedora_rpm
- cat transfer.log
artifacts:
paths:
- build_*/ocs-url*.rpm
expire_in: 2 days
opensuse_rpm:
stage: build
......@@ -29,7 +35,10 @@ opensuse_rpm:
- /^release\-.+/
script:
- ./scripts/package opensuse_rpm
- cat transfer.log
artifacts:
paths:
- build_*/ocs-url*.rpm
expire_in: 2 days
archlinux_pkg:
stage: build
......@@ -39,4 +48,7 @@ archlinux_pkg:
- /^release\-.+/
script:
- ./scripts/package archlinux_pkg
- cat transfer.log
artifacts:
paths:
- build_*/ocs-url*.pkg.tar.xz
expire_in: 2 days
......@@ -14,7 +14,6 @@ ubuntu_deb() { # docker-image: ubuntu:14.04
install_build_deps_ubuntu_deb
add_pkguser
su -c "export HOME=/home/${PKGUSER} && "${PKGSCRIPT}" build_ubuntu_deb" ${PKGUSER}
transfer_file "$(find "${BUILDDIR}" -type f -name "${PKGNAME}*.deb")"
}
install_build_deps_ubuntu_deb() {
......@@ -38,7 +37,6 @@ fedora_rpm() { # docker-image: fedora:20
install_build_deps_fedora_rpm
add_pkguser
su -c "export HOME=/home/${PKGUSER} && "${PKGSCRIPT}" build_fedora_rpm" ${PKGUSER}
transfer_file "$(find "${BUILDDIR}" -type f -name "${PKGNAME}*.rpm")"
}
install_build_deps_fedora_rpm() {
......@@ -61,7 +59,6 @@ opensuse_rpm() { # docker-image: opensuse:42.1
install_build_deps_opensuse_rpm
add_pkguser
su -c "export HOME=/home/${PKGUSER} && "${PKGSCRIPT}" build_opensuse_rpm" ${PKGUSER}
transfer_file "$(find "${BUILDDIR}" -type f -name "${PKGNAME}*.rpm")"
}
install_build_deps_opensuse_rpm() {
......@@ -85,7 +82,6 @@ archlinux_pkg() { # docker-image: base/archlinux:latest
install_build_deps_archlinux_pkg
add_pkguser
su -c "export HOME=/home/${PKGUSER} && "${PKGSCRIPT}" build_archlinux_pkg" ${PKGUSER}
transfer_file "$(find "${BUILDDIR}" -type f -name "${PKGNAME}*.pkg.tar.xz")"
}
install_build_deps_archlinux_pkg() {
......@@ -116,16 +112,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