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

Merge branch 'develop'

parents 9372786c a0676010
No related branches found
No related tags found
No related merge requests found
Pipeline #46 failed
...@@ -8,5 +8,5 @@ appimage: ...@@ -8,5 +8,5 @@ appimage:
- master - master
- /^release\-.+/ - /^release\-.+/
script: script:
- ./scripts/package ci_appimage - ./scripts/package appimage
- cat transfer.log - cat transfer.log
dist: trusty
sudo: required
services:
- docker
branches:
only:
- master
- /^release\-.+/
script:
- mntdir='/mnt/ocs-manager'
- docker run --rm -v $(pwd):${mntdir} ubuntu:14.04 /bin/bash -c "${mntdir}/scripts/package ci_appimage"
- cat transfer.log
#!/bin/bash #!/bin/sh
PKGNAME='ocs-manager' PKGNAME='ocs-manager'
PKGVER='0.6.5' PKGVER='0.6.5'
......
#!/bin/bash #!/bin/sh
PKGNAME='ocs-manager' PKGNAME='ocs-manager'
...@@ -10,7 +10,7 @@ PROJDIR="$(cd "$(dirname "${0}")/../" && pwd)" ...@@ -10,7 +10,7 @@ PROJDIR="$(cd "$(dirname "${0}")/../" && pwd)"
BUILDDIR="${PROJDIR}/build_${PKGNAME}" BUILDDIR="${PROJDIR}/build_${PKGNAME}"
ci_appimage() { # docker-image: ubuntu:14.04 appimage() { # docker-image: ubuntu:14.04
apt update -qq apt update -qq
apt -y install curl git apt -y install curl git
#apt -y install build-essential qt5-default libqt5websockets5-dev #apt -y install build-essential qt5-default libqt5websockets5-dev
...@@ -24,7 +24,7 @@ ci_appimage() { # docker-image: ubuntu:14.04 ...@@ -24,7 +24,7 @@ ci_appimage() { # docker-image: ubuntu:14.04
apt update -qq apt update -qq
apt -y install build-essential mesa-common-dev libglu1-mesa-dev qt59base qt59websockets apt -y install build-essential mesa-common-dev libglu1-mesa-dev qt59base qt59websockets
curl -fsSL https://cmake.org/files/v3.11/cmake-3.11.4-Linux-x86_64.tar.gz | tar -xz --strip-components=1 -C / curl -fsSL https://cmake.org/files/v3.12/cmake-3.12.1-Linux-x86_64.tar.gz | tar -xz --strip-components=1 -C /
apt -y install libssl-dev libcurl3 libcurl3-gnutls libcurl4-gnutls-dev libxpm-dev apt -y install libssl-dev libcurl3 libcurl3-gnutls libcurl4-gnutls-dev libxpm-dev
useradd -m ${PKGUSER} useradd -m ${PKGUSER}
...@@ -46,13 +46,13 @@ build_appimage() { ...@@ -46,13 +46,13 @@ build_appimage() {
} }
export_srcarchive() { export_srcarchive() {
if [[ "${1}" ]]; then if [ "${1}" ]; then
$(cd "${PROJDIR}" && git archive --prefix="${PKGNAME}/" --output="${1}" HEAD) $(cd "${PROJDIR}" && git archive --prefix="${PKGNAME}/" --output="${1}" HEAD)
fi fi
} }
transfer_file() { transfer_file() {
if [[ -f "${1}" ]]; then if [ -f "${1}" ]; then
filename="$(basename "${1}")" filename="$(basename "${1}")"
transferlog="${PROJDIR}/transfer.log" transferlog="${PROJDIR}/transfer.log"
echo "Uploading ${filename}" >> "${transferlog}" echo "Uploading ${filename}" >> "${transferlog}"
...@@ -61,6 +61,6 @@ transfer_file() { ...@@ -61,6 +61,6 @@ transfer_file() {
fi fi
} }
if [[ "${1}" = 'ci_'* || "${1}" = 'build_'* ]]; then if [ "${1}" ]; then
${1} ${1}
fi fi
#!/bin/bash #!/bin/sh
PROJDIR="$(cd "$(dirname "${0}")/../" && pwd)" PROJDIR="$(cd "$(dirname "${0}")/../" && pwd)"
if [[ ! -d "${PROJDIR}/lib/qtil" ]]; then if [ ! -d "${PROJDIR}/lib/qtil" ]; then
git clone https://github.com/akiraohgaki/qtil.git -b release-0.4.0 --single-branch --depth=1 "${PROJDIR}/lib/qtil" git clone https://github.com/akiraohgaki/qtil.git -b release-0.4.0 --single-branch --depth=1 "${PROJDIR}/lib/qtil"
fi fi
if [[ ! -d "${PROJDIR}/lib/AppImageUpdate" ]]; then if [ ! -d "${PROJDIR}/lib/AppImageUpdate" ]; then
git clone https://github.com/AppImage/AppImageUpdate.git -b continuous --single-branch --depth=1 "${PROJDIR}/lib/AppImageUpdate" git clone https://github.com/AppImage/AppImageUpdate.git -b continuous --single-branch --depth=1 "${PROJDIR}/lib/AppImageUpdate"
git -C "${PROJDIR}/lib/AppImageUpdate" submodule update --init --recursive #--depth=1 git -C "${PROJDIR}/lib/AppImageUpdate" submodule update --init --recursive #--depth=1
fi fi
if [[ ! -d "${PROJDIR}/lib/AppImageUpdate-prebuilt" ]]; then if [ ! -d "${PROJDIR}/lib/AppImageUpdate-prebuilt" ]; then
mkdir "${PROJDIR}/lib/AppImageUpdate-prebuilt" mkdir "${PROJDIR}/lib/AppImageUpdate-prebuilt"
cd "${PROJDIR}/lib/AppImageUpdate-prebuilt" cd "${PROJDIR}/lib/AppImageUpdate-prebuilt"
cmake "${PROJDIR}/lib/AppImageUpdate" -DUSE_SYSTEM_CURL=ON -DBUILD_CPR_TESTS=OFF -DCMAKE_BUILD_TYPE=RelWithDebInfo cmake "${PROJDIR}/lib/AppImageUpdate" -DBUILD_QT_UI=OFF -DCMAKE_BUILD_TYPE=RelWithDebInfo
make libappimageupdate_static make libappimageupdate_static
fi 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