Skip to content
Snippets Groups Projects
Unverified Commit ffa94169 authored by Anjan Momi's avatar Anjan Momi Committed by Oliver Smith
Browse files

Support multiple release channels (MR 1)

parent 3b45fb84
Branches
Tags
1 merge request!1added support for multiple release channels
Pipeline #163500 passed
#!/bin/sh -ex
export BRANCHES="master v20.05"
mkdir -p public
if [ -e upstream-compat.check-passed ]; then
passed=1
for BRANCH in $BRANCHES; do
if ! [ -e upstream-compat-"$BRANCH".check-passed ]; then
passed=0
break
fi
done
if [ "$passed" -eq 1 ]; then
cp badges/upstream-compat-passed.svg public/upstream-compat.svg
else
cp badges/upstream-compat-failed.svg public/upstream-compat.svg
......
......@@ -33,22 +33,28 @@ flake8:
script:
- ".ci/flake8.sh"
upstream-compat:
upstream-compat-master:
stage: check
<<: *only-default
allow_failure: true
script:
- wget "https://gitlab.com/postmarketOS/ci-common/-/raw/master/install_pmbootstrap.sh"
- sh ./install_pmbootstrap.sh pytest
- ln -s /tmp/pmbootstrap/pmb .
- export PMAPORTS="/home/pmos/.local/var/pmbootstrap/cache_git/pmaports"
- pytest -vv test_upstream_compat.py
- touch upstream-compat.check-passed
- ./test_upstream_compat_setup.sh "master"
artifacts:
when: always
paths:
- "*.check-passed"
upstream-compat-v20.05:
stage: check
<<: *only-default
allow_failure: true
script:
- ./test_upstream_compat_setup.sh "v20.05"
artifacts:
when: always
paths:
- "*.check-passed"
pages:
stage: badge
<<: *only-default
......
#!/bin/sh -ex
wget "https://gitlab.com/postmarketOS/ci-common/-/raw/master/install_pmbootstrap.sh"
sh ./install_pmbootstrap.sh pytest
ln -s /tmp/pmbootstrap/pmb .
export PMAPORTS="/home/pmos/.local/var/pmbootstrap/cache_git/pmaports"
git -C "$PMAPORTS" checkout "$1"
pytest -vv test_upstream_compat.py
touch upstream-compat-"$1".check-passed
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment