37552c184b
This is the start of a release script. The idea is to automate a whole bunch of the steps documented in ci/RELEASE.md, so that a release becomes more straightforward. Assumptions abound: basically this is going to work on my workstation, and not on any other.
24 lines
773 B
Bash
24 lines
773 B
Bash
#! /bin/sh
|
|
#
|
|
# Release script for Calamares
|
|
#
|
|
# This attempts to perform the different steps of the RELEASE.md
|
|
# document automatically. It's not tested on other machines or
|
|
# setups other than [ade]'s development VM.
|
|
#
|
|
# Assumes that the version in CMakeLists.txt has been bumped,
|
|
# and that a release of that version is desired.
|
|
|
|
test -d .git || { echo "Not at top-level." ; exit 1 ; }
|
|
test -d src/modules || { echo "No src/modules." ; exit 1 ; }
|
|
|
|
which cmake > /dev/null 2>&1 || { echo "No cmake(1) available." ; exit 1 ; }
|
|
|
|
rm -rf build
|
|
mkdir build || { echo "Could not create build directory." ; exit 1 ; }
|
|
( cd build && cmake .. && make -j4 ) || { echo "Could not perform test-build." ; exit 1 ; }
|
|
( cd build && make test ) || { echo "Tests failed." ; exit 1 ; }
|
|
|
|
|
|
|