File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22# files detected as binary untouched.
33* text =auto
44
5+ # Shell scripts used in Linux containers must stay LF in the working tree.
6+ /docker /* .sh text eol =lf
7+ /docker /xvfb text eol =lf
8+ /sbin /* .sh text eol =lf
9+
510# Files and directories with the attribute export-ignore won’t be added to
611# archive files. See http://git-scm.com/docs/gitattributes for details.
712
813# Git
9- /.gitattributes export-ignore
1014/.github / export-ignore
1115/.gitignore export-ignore
1216
Original file line number Diff line number Diff line change 55BASEDIR=` dirname $0 `
66
77UNITTESTING_SOURCE=${UNITTESTING_SOURCE:-/ unittesting}
8- CISH=" $UNITTESTING_SOURCE /sbin/ci.sh"
9- if [ ! -f " $CISH " ]; then
10- CISH=" /tmp/ci.sh"
11- if [ ! -f " $CISH " ]; then
12- curl -s -L https://raw.githubusercontent.com/SublimeText/UnitTesting/master/sbin/ci.sh -o " $CISH "
13- fi
8+ SOURCE_CISH=" $UNITTESTING_SOURCE /sbin/ci.sh"
9+ CISH=" /tmp/ci.sh"
10+ if [ -f " $SOURCE_CISH " ]; then
11+ # Normalize CRLF from mounted Windows checkouts.
12+ sed ' s/\r$//' " $SOURCE_CISH " > " $CISH "
13+ elif [ ! -f " $CISH " ]; then
14+ curl -s -L https://raw.githubusercontent.com/SublimeText/UnitTesting/master/sbin/ci.sh -o " $CISH "
1415fi
1516
1617if [ -z " $PACKAGE " ]; then
Original file line number Diff line number Diff line change @@ -10,10 +10,22 @@ BOOTSTRAP_MARKER="$HOME/.cache/unittesting/bootstrap.done"
1010sudo sh -e /etc/init.d/xvfb start
1111
1212UNITTESTING_SOURCE=${UNITTESTING_SOURCE:-/ unittesting}
13+ SUBLIME_TEXT_VERSION=${SUBLIME_TEXT_VERSION:- 4}
14+ if [ " $SUBLIME_TEXT_VERSION " -ge 4 ]; then
15+ ST_PACKAGES_DIR=" $HOME /.config/sublime-text/Packages"
16+ else
17+ ST_PACKAGES_DIR=" $HOME /.config/sublime-text-$SUBLIME_TEXT_VERSION /Packages"
18+ fi
19+
1320if [ -d " $UNITTESTING_SOURCE /sbin" ]; then
1421 # Ensure UnitTesting comes from the local checkout running this script,
1522 # so first runs do not depend on tagged upstream releases.
1623 (cd " $UNITTESTING_SOURCE " && PACKAGE=UnitTesting /docker.sh copy_tested_package overwrite)
24+
25+ # Normalize CRLF in shell scripts copied from Windows workspaces.
26+ if [ -d " $ST_PACKAGES_DIR /UnitTesting/sbin" ]; then
27+ find " $ST_PACKAGES_DIR /UnitTesting/sbin" -type f -name " *.sh" -exec sed -i ' s/\r$//' {} +
28+ fi
1729fi
1830
1931if [ ! -f " $BOOTSTRAP_MARKER " ]; then
You can’t perform that action at this time.
0 commit comments