Compare commits

...

3 Commits

Author SHA1 Message Date
Fabien Chouteau 889ce5b21e Create clic-0.1.1.toml (#357) 2021-09-16 15:43:42 +02:00
Gustavo A. Hoffmann 26d9147abf audio_base 1.0.0 (#355)
* audio_base 1.0.0

* Converting license to SPDX string
2021-09-16 11:05:38 +02:00
Alejandro R Mosteo ffd49df662 Backport improvements to build script (#350)
In the stable branch we are still testing the newest release, while sometimes
we get fixes to older release manifests.
2021-09-14 09:59:47 +02:00
3 changed files with 101 additions and 26 deletions
+18
View File
@@ -0,0 +1,18 @@
description = "Basic Ada packages for audio applications"
long-description = """
# Audio Base
This crate contains basic Ada packages for audio applications.
"""
name = "audio_base"
version = "1.0.0"
website="https://github.com/Ada-Audio/audio_base"
licenses = "MIT"
authors=["Gustavo A. Hoffmann"]
maintainers = ["gusthoff@gusthoff.com"]
maintainers-logins = ["gusthoff"]
project-files = ["audio_base.gpr"]
tags = ["audio", "riff"]
[origin]
commit = "8646d0adc2be09c57dd16952a329c4342e5ddb3b"
url = "git+https://github.com/Ada-Audio/audio_base.git"
+30
View File
@@ -0,0 +1,30 @@
name = "clic"
description = "Command Line Interface Components"
version = "0.1.1"
authors = ["Alejandro R. Mosteo", "Fabien Chouteau"]
maintainers = ["alejandro@mosteo.com", "Fabien Chouteau <fabien.chouteau@gmail.com>"]
maintainers-logins = ["mosteo", "Fabien-Chouteau"]
licenses = "MIT"
tags = ["cli", "command-line", "user-input", "tty"]
website = "https://github.com/alire-project/clic"
long-description = """
Command Line Interface Components:
- "git like" subcommand handling
- TTY color and formatting
- User input queries
"""
# TODO: uncomment for alr 1.1.0
# [configuration]
# disabled = true # CLIC is an Alire dependency using git submodule, so we can't
# # use the crate configuration here.
[[depends-on]]
aaa = "~0.2.3"
simple_logging = "^1.2.0"
ansiada = "~0.1.0"
[origin]
commit = "32a93777a3e1796534e07c59966075a3d6f4f503"
url = "git+https://github.com/alire-project/clic.git"
+53 -26
View File
@@ -43,34 +43,45 @@ for file in $CHANGES; do
is_system=false
crate=$(basename $file .toml | cut -f1 -d-)
echo Testing crate: $crate
version=$(basename $file .toml | cut -f2- -d-)
milestone="$crate=$version"
echo Testing crate: $milestone
# Remember that version can be "external", in which case we do not know the
# actual version, and indeed the test will only work if the external is the
# newest version. This probably merits a way of being tested properly, but
# that will require changes in alr.
if [[ $version = external ]]; then
echo Downgrading milestone to plain crate name
milestone=$crate
fi
# Show info for the record
echo PLATFORM-INDEPENDENT CRATE INFO $crate
alr show $crate
alr show --external $crate
alr show --external-detect $crate
echo PLATFORM-INDEPENDENT CRATE INFO $milestone
alr show $milestone
alr show --external $milestone
alr show --external-detect $milestone
echo PLATFORM-DEPENDENT CRATE INFO $crate
alr show --system $crate
alr show --external --system $crate
alr show --external-detect --system $crate
crateinfo=$(alr show --external-detect --system $crate)
echo PLATFORM-DEPENDENT CRATE INFO $milestone
alr show --system $milestone
alr show --external --system $milestone
alr show --external-detect --system $milestone
crateinfo=$(alr show --external-detect --system $milestone)
echo CRATE DEPENDENCIES $crate
alr show --solve --detail --external-detect $crate
solution=$(alr show --solve --detail --external-detect $crate)
echo CRATE DEPENDENCIES $milestone
alr show --solve --detail --external-detect $milestone
solution=$(alr show --solve --detail --external-detect $milestone)
# Skip on explicit unavailability
if alr show --system $crate | grep -q 'Available when: False'; then
echo SKIPPING crate build: $crate UNAVAILABLE on system
if alr show --system $milestone | grep -q 'Available when: False'; then
echo SKIPPING crate build: $milestone UNAVAILABLE on system
continue
fi
# In unsupported platforms, externals are properly reported as missing. We
# can skip testing of such a crate since it will likely fail.
if grep -q 'Dependencies (external):' <<< $solution ; then
echo SKIPPING build for crate $crate with MISSING external dependencies
echo SKIPPING build for crate $milestone with MISSING external dependencies
continue
fi
@@ -84,13 +95,20 @@ for file in $CHANGES; do
echo No need to update system repositories
fi
# Detect whether the crate is binary to skip build
is_binary=false
if grep -iq 'binary archive' <<< $crateinfo; then
echo Crate is BINARY
is_binary=true
fi
# Alternatives for when the crate itself comes from an external. Only system
# externals should be tested.
if grep -q 'Origin: external path' <<< $crateinfo ; then
echo SKIPPING detected external crate $crate
echo SKIPPING detected external crate $milestone
continue
elif grep -q 'Origin: system package' <<< $crateinfo ; then
echo INSTALLING detected system crate $crate
echo INSTALLING detected system crate $milestone
is_system=true
elif grep -q 'Not found:' <<< $crateinfo && \
grep -q 'There are external definitions' <<< $crateinfo
@@ -101,23 +119,32 @@ for file in $CHANGES; do
# Detect missing dependencies for clearer error
if grep -q 'Dependencies cannot be met' <<< $solution ; then
echo FAIL: crate $crate dependencies cannot be met
echo FAIL: crate $milestone dependencies cannot be met
exit 1
fi
# Actual checks
echo DEPLOYING CRATE $crate
alr get -d --build -n $crate
echo DEPLOYING CRATE $milestone
if $is_binary; then
echo SKIPPING BUILD for BINARY crate, FETCHING only
build_flag=""
else
build_flag="--build"
fi
alr get -d $build_flag -n $milestone
if $is_system; then
echo DETECTING INSTALLED PACKAGE via crate $crate
alr show -d --external-detect $crate
echo DETECTING INSTALLED PACKAGE via crate $milestone
alr show -d --external-detect $milestone
elif $is_binary; then
echo FETCHED BINARY crate OK
else
echo LISTING EXECUTABLES of crate $crate
cd ${crate}_*
echo LISTING EXECUTABLES of crate $milestone
cd ${crate}_${version}_*
alr run -d --list
cd ..
fi
echo CRATE $crate TEST ENDED SUCCESSFULLY
echo CRATE $milestone TEST ENDED SUCCESSFULLY
done