Skip to content

Commit

Permalink
test: add failing build for test
Browse files Browse the repository at this point in the history
Will be removed after testing, due revert

Signed-off-by: Stephan Wendel <me@stephanwe.de>
  • Loading branch information
KwadFan committed May 26, 2024
1 parent 07796e5 commit 2829fe2
Show file tree
Hide file tree
Showing 3 changed files with 61 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflow_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ buildtest:
- raspberry/rpi64
# rpi 64 with KS
- raspberry/rpi64-ks
# Fail Test (Will be removed)
- raspberry/rpi32-build-fail-test

# This is used to setup release build chain.
# Each entry will be used in setup matrix for releases
Expand Down
23 changes: 23 additions & 0 deletions config/raspberry/rpi32-build-fail-test
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#!/usr/bin/env bash
# Shebang for better file detection

# Declare Variables before exporting.
# See https://www.shellcheck.net/wiki/SC2155

# New locations after Bullseye turned into 'oldstable'
DOWNLOAD_BASE_URL="https://downloads.raspberrypi.org/raspios_oldstable_lite_armhf/images/raspios_oldstable_lite_armhf-2023-12-06/2023-12-05-raspios-bullseye-armhf-lite.img.xz"
DOWNLOAD_URL_CHECKSUM="${DOWNLOAD_BASE_URL}.sha256"
DOWNLOAD_URL_IMAGE="${DOWNLOAD_BASE_URL}.torrent"


MODULES="base(fail_test)"


export DOWNLOAD_BASE_URL
export DOWNLOAD_URL_CHECKSUM
export DOWNLOAD_URL_IMAGE

### JSON sniplet Setup
### NOTE: Please see all config files for setup variables!!!
# shellcheck disable=SC2034
JSON_SUPPORTED_SBC="pi1-32bit pi2-32bit"
36 changes: 36 additions & 0 deletions src/modules/fail_test/start_chroot_script
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
#!/usr/bin/env bash
#### Klipper Install Module
####
#### Based on work done by Raymond Himle and Stefan Dej
####
#### Written by Stephan Wendel aka KwadFan <me@stephanwe.de>
#### Copyright 2022
#### https://github.com/mainsail-crew/MainsailOS
####
#### This File is distributed under GPLv3
####

# shellcheck enable=require-variable-braces

### For easier maintainability look to klipper/config.

## Source error handling, leave this in place
set -Eex

## Set LC_ALL to prevent errors
export LC_ALL=C

# Set DEBIAN_FRONTEND to noninteractive
if [[ "${DEBIAN_FRONTEND}" != "noninteractive" ]]; then
export DEBIAN_FRONTEND=noninteractive
fi

## Source CustomPIOS common.sh
# shellcheck disable=SC1091
source /common.sh
install_cleanup_trap

### This module will be removed! Only to have a failing run to test build chain


exit 1

0 comments on commit 2829fe2

Please sign in to comment.