Skip to content

Commit

Permalink
Merge pull request #209 from datalad/enh-flags
Browse files Browse the repository at this point in the history
ENH: test for some expected build flags to be enabled across all platforms
  • Loading branch information
yarikoptic authored Oct 22, 2024
2 parents c11a3c6 + 9d55492 commit 73d4f14
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 5 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/build-macos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,16 @@ jobs:
- name: Install coreutils (for timeout)
run: brew install coreutils


- name: Check git-annex version for some expected build flags
run: |
# apparently order is not alphabetic, so cannot be relied upon for a single grep
flags=$(git annex version | grep 'build flags:')
for f in Assistant MagicMime Servant S3; do
echo -n "Checking for $f: "
echo "$flags" | grep --color "$f" || { echo "FAIL"; exit 1; }
done
- name: Print git-annex version
run: git annex version

Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/build-ubuntu.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,16 @@ jobs:
run: |
sudo dpkg -i git-annex*.deb
- name: Check git-annex version for some expected build flags
run: |
# apparently order is not alphabetic, so cannot be relied upon for a single grep
flags=$(git annex version | grep 'build flags:')
for f in Assistant MagicMime Servant S3; do
echo -n "Checking for $f: "
echo "$flags" | grep --color "$f" || { echo "FAIL"; exit 1; }
done
- name: Print git-annex version
run: git annex version

Expand Down
10 changes: 8 additions & 2 deletions .github/workflows/build-windows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -247,9 +247,15 @@ jobs:
ls "$GIT_ANNEX_DIR"/*magic* "$GIT_ANNEX_DIR"/*gnurx*
ls "$GIT_ANNEX_DIR"/../share/misc/*magic*
- name: Check git-annex version for MagicMime flag
- name: Check git-annex version for some expected build flags
run: |
git annex version | grep 'build flags:.*MagicMime'
# apparently order is not alphabetic, so cannot be relied upon for a single grep
flags=$(git annex version | grep 'build flags:')
for f in Assistant MagicMime Servant S3; do
echo -n "Checking for $f: "
echo "$flags" | grep --color "$f" || { echo "FAIL"; exit 1; }
done
- name: Print git-annex version
run: git annex version
Expand Down
12 changes: 9 additions & 3 deletions .github/workflows/template/build-{{ostype}}.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -427,11 +427,17 @@ jobs:
ls "$GIT_ANNEX_DIR"/*magic* "$GIT_ANNEX_DIR"/*gnurx*
ls "$GIT_ANNEX_DIR"/../share/misc/*magic*

- name: Check git-annex version for MagicMime flag
{% endif %}

- name: Check git-annex version for some expected build flags
run: |
git annex version | grep 'build flags:.*MagicMime'
# apparently order is not alphabetic, so cannot be relied upon for a single grep
flags=$(git annex version | grep 'build flags:')
for f in Assistant MagicMime Servant S3; do
echo -n "Checking for $f: "
echo "$flags" | grep --color "$f" || { echo "FAIL"; exit 1; }
done

{% endif %}
- name: Print git-annex version
run: git annex version

Expand Down

0 comments on commit 73d4f14

Please sign in to comment.