diff --git a/appveyor.yml b/appveyor.yml index 3eb57227..519c9452 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -5,6 +5,10 @@ environment: - MSYSTEM: MINGW32 PATH: C:\msys64\usr\bin;C:\msys64\mingw32\bin;C:\Windows\System32;C:\Windows;%PATH% +clone_script: + - bash -lc "git clone -q --branch=$APPVEYOR_REPO_BRANCH https://github.com/${APPVEYOR_REPO_NAME}.git $APPVEYOR_BUILD_FOLDER" + - bash -lc "cd $APPVEYOR_BUILD_FOLDER && git checkout -qf $APPVEYOR_REPO_COMMIT" + - bash -lc "cd $APPVEYOR_BUILD_FOLDER && git submodule update --init --recursive" install: # update mysy2 @@ -12,12 +16,10 @@ install: - C:\msys64\usr\bin\bash -lc "pacman --noconfirm -Sy" - C:\msys64\usr\bin\bash -lc "pacman --noconfirm -S autoconf automake bison flex" - C:\msys64\usr\bin\bash -lc "pacman --noconfirm -S git" - - git submodule update --init --recursive - build_script: - bash -lc "exec 0 jq.html" - 7z a jq-package.zip jq.1 jq.html jq.exe @@ -27,9 +29,9 @@ build_script: test_script: # tests/optionaltest and tests/shtest fail on Windows; run them # anyways but ignore their failures. Also, trace shtest. - - bash -lc "exec 0