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

Merged branch develop into master

parents 9de99b2e a40e39f0
No related branches found
No related tags found
No related merge requests found
......@@ -14,3 +14,4 @@ script:
- docker run --rm -v $(pwd):${mntdir} base/archlinux:latest /bin/bash -c "sh ${mntdir}/scripts/build-docker.sh archlinux"
#- docker run --rm -v $(pwd):${mntdir} ubuntu:16.04 /bin/bash -c "sh ${mntdir}/scripts/build-docker.sh snap"
#- docker run --rm -v $(pwd):${mntdir} --cap-add SYS_ADMIN --device /dev/fuse ubuntu:14.04 /bin/bash -c "sh ${mntdir}/scripts/build-docker.sh appimage"
- cat transfer.log
......@@ -5,27 +5,32 @@ pipelines:
image: ubuntu:14.04
script:
- sh scripts/build-docker.sh ubuntu
- cat transfer.log
custom:
build-ubuntu:
- step:
image: ubuntu:14.04
script:
- sh scripts/build-docker.sh ubuntu
- cat transfer.log
build-fedora:
- step:
image: fedora:20
script:
- sh scripts/build-docker.sh fedora
- cat transfer.log
build-archlinux:
- step:
image: base/archlinux:latest
script:
- sh scripts/build-docker.sh archlinux
- cat transfer.log
build-snap:
- step:
image: ubuntu:16.04
script:
- sh scripts/build-docker.sh snap
- cat transfer.log
build-appimage:
- step:
image: ubuntu:14.04
......@@ -34,3 +39,4 @@ pipelines:
- echo 'appimage build is disabled currently'
- exit 1
- sh scripts/build-docker.sh appimage
- cat transfer.log
......@@ -17,12 +17,14 @@ PROJDIR="$(cd "$(dirname "${0}")/../" && pwd)"
BUILDSCRIPT="${PROJDIR}/scripts/build.sh"
TRANSFERLOG="${PROJDIR}/transfer.log"
transfer_file() {
filepath="${1}"
if [ -f "${filepath}" ]; then
filename="$(basename "${filepath}")"
echo "Uploading ${filename}"
curl -T "${filepath}" "https://transfer.sh/${filename}"
echo "Uploading ${filename}" >> "${TRANSFERLOG}"
curl -T "${filepath}" "https://transfer.sh/${filename}" >> "${TRANSFERLOG}"
fi
}
......@@ -39,7 +41,7 @@ build_ubuntu() {
su -c "sh "${BUILDSCRIPT}" ${BUILDTYPE}" ${PKGUSER}
transfer_file "$(find "${PROJDIR}/build_*" -type f -name "${PKGNAME}*.deb")"
transfer_file "$(find "${PROJDIR}/build_"* -type f -name "${PKGNAME}*.deb")"
}
build_fedora() {
......@@ -58,7 +60,7 @@ build_fedora() {
su -c "sh "${BUILDSCRIPT}" ${BUILDTYPE}" ${PKGUSER}
transfer_file "$(find "${PROJDIR}/build_*" -type f -name "${PKGNAME}*.rpm")"
transfer_file "$(find "${PROJDIR}/build_"* -type f -name "${PKGNAME}*.rpm")"
}
build_archlinux() {
......@@ -74,7 +76,7 @@ build_archlinux() {
su -c "sh "${BUILDSCRIPT}" ${BUILDTYPE}" ${PKGUSER}
transfer_file "$(find "${PROJDIR}/build_*" -type f -name "${PKGNAME}*.pkg.tar.xz")"
transfer_file "$(find "${PROJDIR}/build_"* -type f -name "${PKGNAME}*.pkg.tar.xz")"
}
build_snap() {
......@@ -90,7 +92,7 @@ build_snap() {
su -c "sh "${BUILDSCRIPT}" ${BUILDTYPE}" ${PKGUSER}
transfer_file "$(find "${PROJDIR}/build_*" -type f -name "${PKGNAME}*.snap")"
transfer_file "$(find "${PROJDIR}/build_"* -type f -name "${PKGNAME}*.snap")"
}
build_appimage() {
......@@ -108,7 +110,7 @@ build_appimage() {
su -c "sh "${BUILDSCRIPT}" ${BUILDTYPE}" ${PKGUSER}
transfer_file "$(find "${PROJDIR}/build_*" -type f -name "${PKGNAME}*.AppImage")"
transfer_file "$(find "${PROJDIR}/build_"* -type f -name "${PKGNAME}*.AppImage")"
}
if [ "${BUILDTYPE}" = 'ubuntu' ]; then
......
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