@@ -15,16 +15,26 @@ steps:
15
15
- bash : git config --global core.autocrlf false
16
16
displayName : " Disable git automatic line ending conversion"
17
17
18
+ - bash : |
19
+ set -x
20
+ git config --list --show-origin
21
+ displayName : git config pre checkout
22
+
18
23
- checkout : self
19
24
fetchDepth : 2
20
25
26
+ - bash : git config --list --show-origin
27
+ displayName : git config post checkout
28
+
21
29
# Spawn a background process to collect CPU usage statistics which we'll upload
22
30
# at the end of the build. See the comments in the script here for more
23
31
# information.
24
32
- bash : python src/ci/cpu-usage-over-time.py &> cpu-usage.csv &
25
33
displayName : " Collect CPU-usage statistics in the background"
26
34
27
- - bash : printenv | sort
35
+ - bash : |
36
+ printenv | sort
37
+ git config --list --show-origin
28
38
displayName : Show environment variables
29
39
30
40
- bash : |
@@ -84,6 +94,16 @@ steps:
84
94
condition : and(succeeded(), eq(variables['Agent.OS'], 'Windows_NT'))
85
95
displayName : Check out submodules (Windows)
86
96
97
+ # See also the disable for autocrlf above, this just checks that it worked
98
+ #
99
+ # If matches for '\r' are found, we should immediately exit the build.
100
+ - bash : |
101
+ set -x
102
+ git config --list
103
+ bash -c 'egrep -q $"\r"\$ src/tools/rust-installer/install-template.sh'
104
+ if [ $? = 0 ]; then exit 1 ; fi
105
+ displayName : Verify line endings are LF
106
+
87
107
# Ensure the `aws` CLI is installed so we can deploy later on, cache docker
88
108
# images, etc.
89
109
- bash : |
0 commit comments