File tree 2 files changed +7
-1
lines changed
2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 43
43
ci/incremental/install_miniconda.sh
44
44
ci/incremental/setup_conda_environment.sh
45
45
displayName: 'Set up environment'
46
+ condition: true
46
47
47
48
# Do not require pandas
48
49
- script : |
Original file line number Diff line number Diff line change @@ -158,7 +158,12 @@ if [[ -z "$CHECK" || "$CHECK" == "patterns" ]]; then
158
158
# RET=$(($RET + $?)) ; echo $MSG "DONE"
159
159
160
160
MSG=' Check that no file in the repo contains tailing whitespaces' ; echo $MSG
161
- invgrep --exclude=" *.svg" -RI " \s$" *
161
+ set -o pipefail
162
+ if [[ " $AZURE " == " true" ]]; then
163
+ ! grep -n --exclude=" *.svg" -RI " \s$" * | awk -F " :" ' {print "##vso[task.logissue type=error;sourcepath=" $1 ";linenumber=" $2 ";] Tailing whitespaces found: " $3}'
164
+ else
165
+ ! grep -n --exclude=" *.svg" -RI " \s$" * | awk -F " :" ' {print $1 ":" $2 ":Tailing whitespaces found: " $3}'
166
+ fi
162
167
RET=$(( $RET + $? )) ; echo $MSG " DONE"
163
168
fi
164
169
You can’t perform that action at this time.
0 commit comments