Skip to content

Commit 6934fe7

Browse files
committed
fixup! Add a build definition for Azure DevOps
Some improvements (suggested via review on the Git mailing list) have not been incorporated into Git for Windows' `master` yet, other changes were left-overs from debugging that need reverting. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 760ff73 commit 6934fe7

File tree

2 files changed

+8
-11
lines changed

2 files changed

+8
-11
lines changed

azure-pipelines.yml

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,11 @@ jobs:
1212
test "$GITFILESHAREPWD" = '$(gitfileshare.pwd)' || ci/mount-fileshare.sh //gitfileshare.file.core.windows.net/test-cache gitfileshare "$GITFILESHAREPWD" "$HOME/test-cache" || exit 1
1313
1414
sudo apt-get update &&
15-
sudo rm /var/lib/apt/lists/lock &&
1615
sudo apt-get -y install git gcc make libssl-dev libcurl4-openssl-dev libexpat-dev tcl tk gettext git-email zlib1g-dev apache2-bin &&
1716
1817
export CC=clang || exit 1
1918
20-
ci/install-dependencies.sh
19+
ci/install-dependencies.sh || exit 1
2120
ci/run-build-and-tests.sh || {
2221
ci/print-test-failures.sh
2322
exit 1
@@ -44,11 +43,11 @@ jobs:
4443
- bash: |
4544
test "$GITFILESHAREPWD" = '$(gitfileshare.pwd)' || ci/mount-fileshare.sh //gitfileshare.file.core.windows.net/test-cache gitfileshare "$GITFILESHAREPWD" "$HOME/test-cache" || exit 1
4645
46+
sudo add-apt-repository ppa:ubuntu-toolchain-r/test &&
4747
sudo apt-get update &&
48-
sudo rm /var/lib/apt/lists/lock &&
49-
sudo apt-get -y install git gcc make libssl-dev libcurl4-openssl-dev libexpat-dev tcl tk gettext git-email zlib1g-dev apache2-bin || exit 1
48+
sudo apt-get -y install git gcc make libssl-dev libcurl4-openssl-dev libexpat-dev tcl tk gettext git-email zlib1g-dev apache2 language-pack-is git-svn gcc-8 || exit 1
5049
51-
ci/install-dependencies.sh
50+
ci/install-dependencies.sh || exit 1
5251
ci/run-build-and-tests.sh || {
5352
ci/print-test-failures.sh
5453
exit 1
@@ -77,7 +76,7 @@ jobs:
7776
7877
export CC=clang
7978
80-
ci/install-dependencies.sh
79+
ci/install-dependencies.sh || exit 1
8180
ci/run-build-and-tests.sh || {
8281
ci/print-test-failures.sh
8382
exit 1
@@ -104,7 +103,7 @@ jobs:
104103
- bash: |
105104
test "$GITFILESHAREPWD" = '$(gitfileshare.pwd)' || ci/mount-fileshare.sh //gitfileshare.file.core.windows.net/test-cache gitfileshare "$GITFILESHAREPWD" "$HOME/test-cache" || exit 1
106105
107-
ci/install-dependencies.sh
106+
ci/install-dependencies.sh || exit 1
108107
ci/run-build-and-tests.sh || {
109108
ci/print-test-failures.sh
110109
exit 1
@@ -132,7 +131,6 @@ jobs:
132131
test "$GITFILESHAREPWD" = '$(gitfileshare.pwd)' || ci/mount-fileshare.sh //gitfileshare.file.core.windows.net/test-cache gitfileshare "$GITFILESHAREPWD" "$HOME/test-cache" || exit 1
133132
134133
sudo apt-get update &&
135-
sudo rm /var/lib/apt/lists/lock &&
136134
sudo apt-get -y install git gcc make libssl-dev libcurl4-openssl-dev libexpat-dev tcl tk gettext git-email zlib1g-dev &&
137135
138136
export jobname=GETTEXT_POISON || exit 1
@@ -157,6 +155,7 @@ jobs:
157155

158156
- job: windows
159157
displayName: Windows
158+
condition: succeeded()
160159
pool: Hosted
161160
timeoutInMinutes: 240
162161
steps:
@@ -275,7 +274,6 @@ jobs:
275274
test "$GITFILESHAREPWD" = '$(gitfileshare.pwd)' || ci/mount-fileshare.sh //gitfileshare.file.core.windows.net/test-cache gitfileshare "$GITFILESHAREPWD" "$HOME/test-cache" || exit 1
276275
277276
sudo apt-get update &&
278-
sudo rm /var/lib/apt/lists/lock &&
279277
sudo apt-get install -y coccinelle &&
280278
281279
export jobname=StaticAnalysis &&
@@ -296,7 +294,6 @@ jobs:
296294
test "$GITFILESHAREPWD" = '$(gitfileshare.pwd)' || ci/mount-fileshare.sh //gitfileshare.file.core.windows.net/test-cache gitfileshare "$GITFILESHAREPWD" "$HOME/test-cache" || exit 1
297295
298296
sudo apt-get update &&
299-
sudo rm /var/lib/apt/lists/lock &&
300297
sudo apt-get install -y asciidoc xmlto asciidoctor &&
301298
302299
export ALREADY_HAVE_ASCIIDOCTOR=yes. &&

ci/mount-fileshare.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ die () {
66
}
77

88
test $# = 4 ||
9-
die "Usage: $0 <share> <username> <password> <mountpoint"
9+
die "Usage: $0 <share> <username> <password> <mountpoint>"
1010

1111
mkdir -p "$4" || die "Could not create $4"
1212

0 commit comments

Comments
 (0)