Skip to content
Snippets Groups Projects
Commit 30bb10bd authored by Pavel Vondruska's avatar Pavel Vondruska
Browse files

Initial commit

parents
Branches
No related tags found
No related merge requests found
Pipeline #6020 failed
image: debian:bookworm
# Is performed before the scripts in the stages step
before_script:
- source /etc/profile
variables:
DEBEMAIL: "Pavel Vondruska <dexter.cz@gmail.com>"
# Defines stages which are to be executed
stages:
- build
# Stage "build"
run-build:
stage: build
script:
- ./make.sh
# This stage is only executed if commited to master
only:
- master
# The files which are to be made available in GitLab
artifacts:
paths:
- build/*
make.sh 0 → 100755
#!/bin/bash -x
# Nacteni promennych o bezicim systemu vcetne verzi
. /etc/os-release
# Od Debian 11 Bullseye ma debian-security trochu jinou cestu, abychom mohli pouzit heredoc, rozskocime si pres funkci
function get_debian_security() {
if [ "${VERSION_ID}" -lt "11" ]; then echo "${VERSION_CODENAME}/updates"; else echo "${VERSION_CODENAME}-security"; fi
}
# Vygenerovani sources.list podle verze Debianu
cat > /etc/apt/sources.list << EOSOURCES
deb http://ftp.zcu.cz/pub/linux/debian ${VERSION_CODENAME} main contrib non-free
deb http://ftp.zcu.cz/pub/linux/debian ${VERSION_CODENAME}-updates main contrib non-free
deb http://ftp.zcu.cz/pub/linux/debian-security $(get_debian_security) main contrib non-free
deb-src http://ftp.zcu.cz/pub/linux/debian ${VERSION_CODENAME} main contrib non-free
deb-src http://ftp.zcu.cz/pub/linux/debian ${VERSION_CODENAME}-updates main contrib non-free
deb-src http://ftp.zcu.cz/pub/linux/debian-security $(get_debian_security) main contrib non-free
EOSOURCES
apt update -qqq
apt install git devscripts build-essential python3 dh-autoreconf libssl-dev libxt-dev libhwloc-dev heimdal-multidev python3-dev -yqqq
git clone https://github.com/CESNET/pbspro -b release_20231127
cd pbspro
git clone https://github.com/CESNET/pbspro.build build
mv build/openpbs.build .
mv build/release.sh .
mk-build-deps --install --tool='apt-get -o Debug::pkgProblemResolver=yes --yes' openpbsbuild/control.deb12
./release.sh
cd ..
mkdir build
mv *.deb build/
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment