Commit 5ff94556 authored by Guillaume Quintard's avatar Guillaume Quintard

[cci] Various fixes and improvements

- fix centos:7 distcheck
- use centos to build the dist tarball
- simplify git cloning with builtin command
- no need for ssh when building
- tar the dsc files with the deb ones
- use the regular pkg repo now that the alpine PR has been merged
parent ddd5df3d
...@@ -47,10 +47,9 @@ commands: ...@@ -47,10 +47,9 @@ commands:
make \ make \
openssh-clients \ openssh-clients \
pcre-devel \ pcre-devel \
python-docutils \ python3 \
python3-sphinx \ python-sphinx \
rst2pdf \ rst2pdf \
ssh \
sudo sudo
alpine_install_build_deps: alpine_install_build_deps:
description: Install build dependencies description: Install build dependencies
...@@ -138,11 +137,12 @@ jobs: ...@@ -138,11 +137,12 @@ jobs:
name: Import the packages into the workspace name: Import the packages into the workspace
command: | command: |
mkdir debs mkdir debs
mv ../*.deb debs/ mv ../*.deb ../*.dsc debs/
- persist_to_workspace: - persist_to_workspace:
root: . root: .
paths: paths:
- debs/varnish*.deb - debs/varnish*.deb
- debs/varnish*.dsc
build_alpine: build_alpine:
description: Build alpine apks description: Build alpine apks
docker: docker:
...@@ -203,23 +203,15 @@ jobs: ...@@ -203,23 +203,15 @@ jobs:
root: . root: .
paths: paths:
- apks/*.apk - apks/*.apk
dist_ubuntu: dist:
docker: docker:
- image: ubuntu:bionic - image: centos:7
steps: steps:
- run: - centos_install_build_deps
command: | - checkout
export DEBIAN_FRONTEND=noninteractive
export DEBCONF_NONINTERACTIVE_SEEN=true
apt-get update
apt-get install -y python3-sphinx autoconf automake libedit-dev make libtool pkg-config git libconfig-dev libpcre3-dev
- run: - run:
name: Create the dist tarball name: Create the dist tarball
command: | command: |
mkdir -p ~/.ssh
ssh-keyscan -H github.com >> ~/.ssh/known_hosts
git clone --branch=${CIRCLE_BRANCH} ${CIRCLE_REPOSITORY_URL} .
git checkout ${CIRCLE_SHA1}
./autogen.des --quiet ./autogen.des --quiet
make dist -j 16 make dist -j 16
- persist_to_workspace: - persist_to_workspace:
...@@ -241,7 +233,7 @@ jobs: ...@@ -241,7 +233,7 @@ jobs:
mkdir -p ~/.ssh mkdir -p ~/.ssh
ssh-keyscan -H github.com >> ~/.ssh/known_hosts ssh-keyscan -H github.com >> ~/.ssh/known_hosts
echo ${CIRCLE_REPOSITORY_URL} echo ${CIRCLE_REPOSITORY_URL}
git clone --branch=alpine https://github.com/gquintard/pkg-varnish-cache.git . git clone --branch=weekly https://github.com/varnishcache/pkg-varnish-cache.git .
git checkout alpine git checkout alpine
tar cvzf debian.tar.gz debian --dereference tar cvzf debian.tar.gz debian --dereference
tar cvzf redhat.tar.gz redhat --dereference tar cvzf redhat.tar.gz redhat --dereference
...@@ -309,9 +301,7 @@ jobs: ...@@ -309,9 +301,7 @@ jobs:
- run: - run:
name: Tar the packages name: Tar the packages
command: | command: |
rm rpms/varnish*.src.rpm tar cvzf packages.tar.gz rpms/*.rpm debs/*.deb debs/*.dsc apks/*.apk
mv rpms/*/*.rpm rpms/
tar cvzf packages.tar.gz rpms/*.rpm debs/*.deb apks/*.apk
- store_artifacts: - store_artifacts:
destination: packages.tar.gz destination: packages.tar.gz
path: packages.tar.gz path: packages.tar.gz
...@@ -401,14 +391,14 @@ jobs: ...@@ -401,14 +391,14 @@ jobs:
pkg_req: &pkg_req pkg_req: &pkg_req
requires: requires:
- dist_ubuntu - dist
- tar_pkg_tools - tar_pkg_tools
workflows: workflows:
version: 2 version: 2
build: build:
jobs: jobs:
- dist_ubuntu - dist
- tar_pkg_tools - tar_pkg_tools
- build_debs: - build_debs:
name: build_debian_stretch name: build_debian_stretch
...@@ -442,23 +432,23 @@ workflows: ...@@ -442,23 +432,23 @@ workflows:
- build_ubuntu_bionic - build_ubuntu_bionic
- build_centos_7 - build_centos_7
- build_alpine - build_alpine
# - distcheck: - distcheck:
# name: distcheck_centos_7 name: distcheck_centos_7
# dist: centos dist: centos
# release: "7" release: "7"
# requires: requires:
# - dist_ubuntu - dist
- distcheck: - distcheck:
name: distcheck_debian_buster name: distcheck_debian_buster
dist: debian dist: debian
release: buster release: buster
extra_conf: --enable-asan --enable-ubsan extra_conf: --enable-asan --enable-ubsan
requires: requires:
- dist_ubuntu - dist
- distcheck: - distcheck:
name: distcheck_alpine_3.10 name: distcheck_alpine_3.10
dist: alpine dist: alpine
release: "latest" release: "latest"
#extra_conf: --without-jemalloc #extra_conf: --without-jemalloc
requires: requires:
- dist_ubuntu - dist
Markdown is supported
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