Compare commits

...

6 Commits

Author SHA1 Message Date
Alejandro R. Mosteo 440b95005c Check that direct dependencies exist 2021-09-16 16:40:27 +02:00
Alejandro R. Mosteo 64013fc279 Use alr test instead of alr build
This way, test actions will get executed when they are appropriate instead of a
plain build.
2021-09-16 16:40:16 +02:00
Alejandro R. Mosteo d918e18e56 Merge stable-1.0 into devel-1.1 2021-09-16 16:30:30 +02:00
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 72 additions and 1 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"
+24 -1
View File
@@ -6,6 +6,26 @@ trap 'echo "Interrupted" >&2 ; exit 1' INT
set -o errexit
set -o nounset
function check_dependencies_exist() {
for dep in $(alr with | tail +1); do
if [[ $dep =~ ([a-z0-9_]+)[^a-z0-9_] ]]; then # this should always match the crate name
local crate=${BASH_REMATCH[1]}
if alr list | cut -f1 -d' ' | grep -qw $crate; then
return 0 # found
else
echo "Direct dependency is unknown: $dep (crate name: $crate)"
return 1
fi
else
echo Could not identify dependency crate name in: $dep
return 1
fi
done
return 0
}
# See whats happening
git log --graph --decorate --pretty=oneline --abbrev-commit --all | head -30
@@ -38,7 +58,7 @@ for file in $CHANGES; do
continue
fi
if ! [ -f ./$file ]; then
if ! [ -f ./"$file" ]; then
echo Skipping deleted file: $file
continue
fi
@@ -76,6 +96,9 @@ for file in $CHANGES; do
alr show --solve --detail --external-detect $milestone
solution=$(alr show --solve --detail --external-detect $milestone)
# Check that no direct dependency is unknown
check_dependencies_exist()
# Skip on explicit unavailability
if alr show --system $milestone | grep -q 'Available when: False'; then
echo SKIPPING crate build: $milestone UNAVAILABLE on system