Commit e9b34b39 authored by akiraohgaki's avatar akiraohgaki
Browse files

CI job

parent de11772d
...@@ -9,7 +9,10 @@ ubuntu_deb: ...@@ -9,7 +9,10 @@ ubuntu_deb:
- /^release\-.+/ - /^release\-.+/
script: script:
- ./scripts/package ubuntu_deb - ./scripts/package ubuntu_deb
- cat transfer.log artifacts:
paths:
- build_*/ocs-url*.deb
expire_in: 2 days
fedora_rpm: fedora_rpm:
stage: build stage: build
...@@ -19,7 +22,10 @@ fedora_rpm: ...@@ -19,7 +22,10 @@ fedora_rpm:
- /^release\-.+/ - /^release\-.+/
script: script:
- ./scripts/package fedora_rpm - ./scripts/package fedora_rpm
- cat transfer.log artifacts:
paths:
- build_*/ocs-url*.rpm
expire_in: 2 days
opensuse_rpm: opensuse_rpm:
stage: build stage: build
...@@ -29,7 +35,10 @@ opensuse_rpm: ...@@ -29,7 +35,10 @@ opensuse_rpm:
- /^release\-.+/ - /^release\-.+/
script: script:
- ./scripts/package opensuse_rpm - ./scripts/package opensuse_rpm
- cat transfer.log artifacts:
paths:
- build_*/ocs-url*.rpm
expire_in: 2 days
archlinux_pkg: archlinux_pkg:
stage: build stage: build
...@@ -39,4 +48,7 @@ archlinux_pkg: ...@@ -39,4 +48,7 @@ archlinux_pkg:
- /^release\-.+/ - /^release\-.+/
script: script:
- ./scripts/package archlinux_pkg - ./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 ...@@ -14,7 +14,6 @@ ubuntu_deb() { # docker-image: ubuntu:14.04
install_build_deps_ubuntu_deb install_build_deps_ubuntu_deb
add_pkguser add_pkguser
su -c "export HOME=/home/${PKGUSER} && "${PKGSCRIPT}" build_ubuntu_deb" ${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() { install_build_deps_ubuntu_deb() {
...@@ -38,7 +37,6 @@ fedora_rpm() { # docker-image: fedora:20 ...@@ -38,7 +37,6 @@ fedora_rpm() { # docker-image: fedora:20
install_build_deps_fedora_rpm install_build_deps_fedora_rpm
add_pkguser add_pkguser
su -c "export HOME=/home/${PKGUSER} && "${PKGSCRIPT}" build_fedora_rpm" ${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() { install_build_deps_fedora_rpm() {
...@@ -61,7 +59,6 @@ opensuse_rpm() { # docker-image: opensuse:42.1 ...@@ -61,7 +59,6 @@ opensuse_rpm() { # docker-image: opensuse:42.1
install_build_deps_opensuse_rpm install_build_deps_opensuse_rpm
add_pkguser add_pkguser
su -c "export HOME=/home/${PKGUSER} && "${PKGSCRIPT}" build_opensuse_rpm" ${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() { install_build_deps_opensuse_rpm() {
...@@ -85,7 +82,6 @@ archlinux_pkg() { # docker-image: base/archlinux:latest ...@@ -85,7 +82,6 @@ archlinux_pkg() { # docker-image: base/archlinux:latest
install_build_deps_archlinux_pkg install_build_deps_archlinux_pkg
add_pkguser add_pkguser
su -c "export HOME=/home/${PKGUSER} && "${PKGSCRIPT}" build_archlinux_pkg" ${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() { install_build_deps_archlinux_pkg() {
...@@ -116,16 +112,6 @@ export_srcarchive() { ...@@ -116,16 +112,6 @@ export_srcarchive() {
fi 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 if [ "${1}" ]; then
${1} ${1}
fi fi
Supports Markdown
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