Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
violethaze74
ocs-url
Commits
e9b34b39
Commit
e9b34b39
authored
Mar 10, 2019
by
akiraohgaki
Browse files
CI job
parent
de11772d
Changes
2
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
e9b34b39
...
...
@@ -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
scripts/package
View file @
e9b34b39
...
...
@@ -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
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment