Skip to content

Commit

Permalink
Merge pull request datalad#7692 from datalad/bf-appveyor-inst
Browse files Browse the repository at this point in the history
BF: use datalad/packages method of installing git-annex
  • Loading branch information
yarikoptic authored Dec 14, 2024
2 parents bfeb0a8 + 6c5b628 commit 042f58e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
15 changes: 9 additions & 6 deletions .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ environment:
INSTALL_SYSPKGS: python3-virtualenv
CODECOV_BINARY: https://uploader.codecov.io/latest/linux/codecov
# system git-annex is way too old, use better one
INSTALL_GITANNEX: git-annex -m snapshot
INSTALL_GITANNEX: git-annex -m datalad/packages
# Windows core tests
- ID: WinP39core
# ~35 min
Expand All @@ -98,7 +98,7 @@ environment:
DTS: datalad.core datalad.dataset datalad.runner datalad.support
APPVEYOR_BUILD_WORKER_IMAGE: macos-monterey
PY: 3.9
# does not give a functional installation
# does not give a functional installation - needs env/PATH adjustment
# INSTALL_GITANNEX: git-annex -m snapshot
#INSTALL_GITANNEX: git-annex=8.20201129
INSTALL_GITANNEX: git-annex -m datalad/packages
Expand All @@ -121,7 +121,7 @@ environment:
INSTALL_SYSPKGS: python3-virtualenv
CODECOV_BINARY: https://uploader.codecov.io/latest/linux/codecov
# system git-annex is way too old, use better one
INSTALL_GITANNEX: git-annex -m snapshot
INSTALL_GITANNEX: git-annex -m datalad/packages
- ID: WinP39a1
# ~40min
DTS: >
Expand Down Expand Up @@ -184,7 +184,7 @@ environment:
INSTALL_SYSPKGS: python3-virtualenv
CODECOV_BINARY: https://uploader.codecov.io/latest/linux/codecov
# system git-annex is way too old, use better one
INSTALL_GITANNEX: git-annex -m snapshot
INSTALL_GITANNEX: git-annex -m datalad/packages
- ID: Ubu22P311b
# ~25min
PY: 3.11
Expand All @@ -200,7 +200,7 @@ environment:
INSTALL_SYSPKGS: python3-virtualenv
CODECOV_BINARY: https://uploader.codecov.io/latest/linux/codecov
# system git-annex is way too old, use better one
INSTALL_GITANNEX: git-annex -m snapshot
INSTALL_GITANNEX: git-annex -m datalad/packages

matrix:
allow_failures:
Expand Down Expand Up @@ -308,13 +308,16 @@ install:
)
- sh: python -m pip install datalad-installer${DATALAD_INSTALLER_VERSION:-}
# Missing system software
- sh: "[ -n \"$INSTALL_SYSPKGS\" ] && ( [ \"x${APPVEYOR_BUILD_WORKER_IMAGE}\" = \"xmacOS\" ] && brew install -q ${INSTALL_SYSPKGS} || { sudo apt-get update -y && sudo apt-get install --no-install-recommends -y ${INSTALL_SYSPKGS}; } ) || true"
- sh: "[ -n \"$INSTALL_SYSPKGS\" ] && ( [ \"x${APPVEYOR_BUILD_WORKER_IMAGE}\" = \"xmacos-monterey\" ] && brew install -q ${INSTALL_SYSPKGS} || { sudo apt-get update -y && sudo apt-get install --no-install-recommends -y ${INSTALL_SYSPKGS}; } ) || true"
# Install git-annex on windows, otherwise INSTALL_SYSPKGS can be used
# deploy git-annex, if desired
- cmd: IF DEFINED INSTALL_GITANNEX datalad-installer --sudo ok %INSTALL_GITANNEX%
- sh: "[ -n \"${INSTALL_GITANNEX}\" ] && datalad-installer --sudo ok ${INSTALL_GITANNEX}"
# TODO remove when datalad-installer can handle this
- cmd: tools\ci\appveyor_install_git-annex.bat
# "package" installation does not place git-annex into the PATH, and for
# compatibility etc, we just symlink also git itself
- sh: "[ \"x${APPVEYOR_BUILD_WORKER_IMAGE}\" = \"xmacos-monterey\" ] && ln -sf /Applications/git-annex.app/Contents/MacOS/git* /usr/local/bin/ || true"


#before_build:
Expand Down
3 changes: 3 additions & 0 deletions changelog.d/pr-7692.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
### 🧪 Tests

- BF: use datalad/packages method of installing git-annex. [PR #7692](https://github.com/datalad/datalad/pull/7692) (by [@yarikoptic](https://github.com/yarikoptic))

0 comments on commit 042f58e

Please sign in to comment.