ci: Parallelize Fedora and Debian PackageKit CI jobs

Rather than having them run one after the other, it makes sense
to have them run independently in parallel. This also makes it
clearer in the job logs, since now each build is an independent
CI job.
This commit is contained in:
Neal Gompa 2020-03-07 09:44:17 -05:00 committed by Neal Gompa (ニール・ゴンパ)
parent 6fcf2e1af3
commit 6160b72064

View File

@ -1,14 +1,15 @@
language: c
sudo: required
dist: trusty
language: minimal
services:
- docker
env:
- DIST=fedora PKGMGR=dnf
- DIST=debian PKGMGR=aptcc
before_script:
- docker build -t packagekit-debian -f tests/ci/Dockerfile-debian .
- docker build -t packagekit-fedora -f tests/ci/Dockerfile-fedora .
- docker build -t packagekit-${DIST} -f tests/ci/Dockerfile-${DIST} .
script:
- docker run -t -v `pwd`:/build packagekit-debian ./tests/ci/build_and_test.sh -Dpackaging_backend=aptcc
- docker run -t -v `pwd`:/build packagekit-fedora ./tests/ci/build_and_test.sh -Dpackaging_backend=dnf
- docker build -t packagekit-${DIST} -f tests/ci/Dockerfile-${DIST} .
- docker run -t -v `pwd`:/build packagekit-${DIST} ./tests/ci/build_and_test.sh -Dpackaging_backend=${PKGMGR}