Skip to content

Commit

Permalink
Make matrix with different python versions and also separate one wher…
Browse files Browse the repository at this point in the history
…e we do pre-remove busybox (on linux only)

I believe some coverage dropage while removing travis config is because there we did matrix across many python versions
but also what is important, we had travis and appveyor contributing. I guess on travis we did not have that busybox
pre-fetched and on appveyor we did have it prefetched. As a result we had both scenarios.  Hopefully we regain more of
coverage here now
  • Loading branch information
yarikoptic committed Sep 13, 2023
1 parent 3e4f5e7 commit c069243
Showing 1 changed file with 20 additions and 8 deletions.
28 changes: 20 additions & 8 deletions .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,18 +56,30 @@ environment:
# what tests run on which platform
# The ID variable had no impact, but sorts first in the CI run overview
# an intelligible name can help to locate a specific test run

# All of these are common to all matrix runs ATM, so pre-defined here and to be overloaded if needed
DTS: datalad_container
APPVEYOR_BUILD_WORKER_IMAGE: Ubuntu2004
INSTALL_SYSPKGS: python3-venv xz-utils jq
# system git-annex is way too old, use better one
INSTALL_GITANNEX: git-annex -m deb-url --url http://snapshot.debian.org/archive/debian/20210906T204127Z/pool/main/g/git-annex/git-annex_8.20210903-1_amd64.deb
CODECOV_BINARY: https://uploader.codecov.io/latest/linux/codecov

matrix:
# List a CI run for each platform first, to have immediate access when there
# is a need for debugging

# Ubuntu core tests
- ID: Ubu20
DTS: datalad_container
APPVEYOR_BUILD_WORKER_IMAGE: Ubuntu2004
INSTALL_SYSPKGS: python3-venv xz-utils jq
# system git-annex is way too old, use better one
INSTALL_GITANNEX: git-annex -m deb-url --url http://snapshot.debian.org/archive/debian/20210906T204127Z/pool/main/g/git-annex/git-annex_8.20210903-1_amd64.deb
CODECOV_BINARY: https://uploader.codecov.io/latest/linux/codecov
- ID: Ubu

# The same but with the oldest supported Python.
- ID: Ubu-3.8
PY: '3.8'

# The same but removing busybox first - triggers different code paths in the tests
- ID: Ubu-nobusybox
BEFORE_CMD: docker rmi busybox:latest

# Windows core tests
#- ID: WinP39core
# # ~35 min
Expand Down Expand Up @@ -190,7 +202,7 @@ before_test:
# simple call to see if datalad and git-annex are installed properly
- datalad wtf
# remove busybox:latest so tests could fetch/drop it as needed
- docker rmi busybox:latest
- sh: [ -n \"${BEFORE_CMD}\" ] && ${BEFORE_CMD}


test_script:
Expand Down

0 comments on commit c069243

Please sign in to comment.