Thanks to bitrise, we now have a solution for building only changed code. In the future, the shell script will go away in favor of first class mono repo support.
build_changed_code.sh
#!/bin/bash
set -ex
if [ -z "$BITRISEIO_GIT_BRANCH_DEST" ]
then
echo "No PR detected. Skipping selective builds."
exit 0
fi
git fetch origin "$BITRISEIO_GIT_BRANCH_DEST" --depth 1
This file has been truncated. show original
jest_set_timezone.sh
#!/usr/bin/env bash -e
rm /etc/timezone
rm /etc/localtime
TIMEZONE="America/Denver"
export TZ="$TIMEZONE"
echo "$TIMEZONE" > /etc/timezone
cp "/usr/share/zoneinfo/${TIMEZONE}" /etc/localtime
dpkg-reconfigure -f noninteractive tzdata
This file has been truncated. show original
paths_to_rgx.rb
paths = [
'rn/Teacher/',
'CanvasCore/',
'Podfile.lock',
'Frameworks/SoAnnotated/',
'Frameworks/Attendance/',
'Frameworks/CanvasKeymaster/'
]
puts paths.map { |e| e.gsub("/", "\\/") }.join '|'
1 Like