Commit 1e503107 authored by Peter G. (nephros)'s avatar Peter G. (nephros)

streamline gitlab scripts

parent 70783ff8
......@@ -15,6 +15,7 @@ variables:
cache:
paths:
- /var/cache/zypp/
- "/home/.zypp-cache/"
- ~/src
.build:
......@@ -26,34 +27,26 @@ cache:
- curl -L -o ~/src/${SRCBALL} ${SRCURL}
- mkdir -p ~/build
- file ~/src/${SRCBALL}
- mkdir -p ~/unpack
- mkdir -p ~/unpack
- tar xzf ~/src/${SRCBALL} -C ~/unpack/
- mv -v ~/unpack/*/* ~/build
- if [[ $NEWSPEC = "yes" ]]; then touch rpm/$YAMLNAME; fi
- cp -av rpm ~/build
- mkdir -p output/$SFOS_VERSION
- OUTDIR=$PWD/output
- export OUTDIR=$PWD/output
- mkdir -p $OUTDIR/$SFOS_VERSION
- pushd ~/build
- echo 'mangling minimum CMake version...'
- sed -i -e 's/cmake_minimum_required(VERSION 3.17)/cmake_minimum_required(VERSION 3.11)/' CMakeLists.txt
- mb2 -t SailfishOS-$SFOS_VERSION-$TARGET prepare | tee prepare.log
- mb2 -t SailfishOS-$SFOS_VERSION-$TARGET prepare | tee $OUTDIR/prepare.log
- cp -rv ./*.log rpm/* $OUTDIR/
- mb2 -t SailfishOS-$SFOS_VERSION-$TARGET build -j 5 | tee build.log
- mb2 -t SailfishOS-$SFOS_VERSION-$TARGET build --enable-debug | tee $OUTDIR/build.log
- popd
- cp -rv ~/build/RPMS/* output/$SFOS_VERSION
- cp -rv ~/build/*.log output/
- cp -rv ~/build/rpm/*.yaml ~/build/rpm/*.spec output/
- cp -rv ~/build/*.log output/
- ls -la output/$SFOS_VERSION
- cp -rv ~/build/RPMS/* $OUTDIR/$SFOS_VERSION
cache:
paths:
- /srv/mer/targets/SailfishOS-$SFOS_VERSION-$TARGET/var/cache/zypp/
- ~/src
artifacts:
paths:
- "output/*.log"
- "output/*.yaml"
- "output/*.spec"
- "output/*"
when: always
......
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