Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnish-cache
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
varnishcache
varnish-cache
Commits
02867d93
Commit
02867d93
authored
Dec 20, 2019
by
Guillaume Quintard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[cci] build rpms for centos:8
parent
513ae61b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
12 deletions
+34
-12
config.yml
.circleci/config.yml
+34
-12
No files found.
.circleci/config.yml
View file @
02867d93
...
...
@@ -26,7 +26,6 @@ commands:
make \
pkg-config \
python3-sphinx \
rst2pdf \
sudo
centos_install_build_deps
:
description
:
Install build dependencies
...
...
@@ -35,6 +34,13 @@ commands:
name
:
Install build dependencies
command
:
|
yum install -y epel-release
if [ `rpm -E %{rhel}` = 8 ]; then
dnf install -y 'dnf-command(config-manager)'
dnf config-manager --set-enabled PowerTools
PSPHINX=python3-sphinx
else
PSPHINX=python-sphinx
fi
yum install -y \
automake \
jemalloc-devel \
...
...
@@ -48,8 +54,7 @@ commands:
openssh-clients \
pcre-devel \
python3 \
python-sphinx \
rst2pdf \
$PSPHINX \
sudo
alpine_install_build_deps
:
description
:
Install build dependencies
...
...
@@ -305,17 +310,24 @@ jobs:
-
store_artifacts
:
destination
:
packages.tar.gz
path
:
packages.tar.gz
build_centos_7
:
build_rpms
:
parameters
:
release
:
description
:
the release number
type
:
string
description
:
Build centos:<< parameters.release >> debs
docker
:
-
image
:
centos:
7
-
image
:
centos:
<< parameters.release >>
environment
:
DIST_DIR
:
build
DIST
:
el7
steps
:
-
run
:
name
:
Install packaging tools
command
:
|
yum install -y rpm-build yum-utils epel-release
if [ `rpm -E %{rhel}` = 8 ]; then
dnf config-manager --set-enabled PowerTools
fi
# XXX: we should NOT have to do that here, they should be in the
# spec as BuildRequires
yum install -y make gcc
...
...
@@ -340,15 +352,14 @@ jobs:
# use python3
sed -i '1 i\%global __python %{__python3}' "$DIST_DIR"/redhat/varnish.spec
[ -n "$DIST" ]
VERSION=$("$DIST_DIR"/configure --version | awk 'NR == 1 {print $NF}')
# VERSION looks like 5.2.1 or 5.2.0-rc1
MAJOR=${VERSION%.*}
# 5.2
MAJOR=${VERSION%.*} # 5.2
MINOR=${VERSION##*.} # 1 or 0-rc1
MINOR=${MINOR%%-*} # 1 or 0
RELEASE=${VERSION#*-} # 5.2.1 or rc1
RELEASE=${RELEASE#$VERSION}
# '' or rc1
RELEASE=${RELEASE#$VERSION}
# '' or rc1
cp -r -L "$DIST_DIR"/redhat/* "$DIST_DIR"/
tar zcf "$DIST_DIR.tgz" --exclude "$DIST_DIR/redhat" "$DIST_DIR"/
...
...
@@ -369,13 +380,12 @@ jobs:
fi
command rpmbuild \
--define "_smp_mflags -j10" \
--define "dist $DIST" \
--define "_topdir $HOME/rpmbuild" \
--define "_sourcedir $CUR_DIR" \
--define "_srcrpmdir $CUR_DIR/${RESULT_DIR}" \
--define "_rpmdir $CUR_DIR/${RESULT_DIR}" \
--define "versiontag ${RPMVERSION}" \
--define "releasetag 0.0
.
" \
--define "releasetag 0.0" \
--define "srcname $DIST_DIR" \
--define "nocheck 1" \
"$@"
...
...
@@ -420,7 +430,13 @@ workflows:
dist
:
ubuntu
release
:
bionic
<<
:
*pkg_req
-
build_centos_7
:
-
build_rpms
:
name
:
build_centos_7
release
:
"
7"
<<
:
*pkg_req
-
build_rpms
:
name
:
build_centos_8
release
:
"
8"
<<
:
*pkg_req
-
build_alpine
:
<<
:
*pkg_req
...
...
@@ -438,6 +454,12 @@ workflows:
release
:
"
7"
requires
:
-
dist
-
distcheck
:
name
:
distcheck_centos_8
dist
:
centos
release
:
"
8"
requires
:
-
dist
-
distcheck
:
name
:
distcheck_debian_buster
dist
:
debian
...
...
Write
Preview
Markdown
is supported
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