Skip to content

Commit

Permalink
update basic-cli and parser deps
Browse files Browse the repository at this point in the history
  • Loading branch information
lukewilliamboswell committed Feb 24, 2024
1 parent 03fb5d1 commit 0002703
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@ jobs:
- run: expect -v

# Run all tests
- run: ./ci/all_tests.sh
- run: ROC=./roc_nightly/roc ./ci/all_tests.sh
20 changes: 14 additions & 6 deletions ci/all_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,37 +3,45 @@
# https://vaneyckt.io/posts/safer_bash_scripts_with_set_euxo_pipefail/
set -euxo pipefail

roc='./roc_nightly/roc'
if [ -z "${ROC}" ]; then
echo "ERROR: The ROC environment variable is not set.
Set it to something like:
/home/username/Downloads/roc_nightly-linux_x86_64-2023-10-30-cb00cfb/roc
or
/home/username/gitrepos/roc/target/build/release/roc" >&2

exit 1
fi

examples_dir='./examples/'
package_dir='./package/'

# roc check
echo "Checking examples files..."
for roc_file in $examples_dir*.roc; do
$roc check $roc_file
$ROC check $roc_file
done

# roc build
echo "Checking examples builds..."
for roc_file in $examples_dir*.roc; do
$roc build $roc_file --linker=legacy
$ROC build $roc_file --linker=legacy
done

# roc check
echo "Checking package files..."
for roc_file in $package_dir*.roc; do
$roc check $roc_file
$ROC check $roc_file
done

# roc test
echo "Running test for package... (only files containing expect)"
for roc_file in $package_dir*.roc; do
if grep -q '^expect' "$roc_file" >/dev/null; then
echo "Running tests for $roc_file"
$roc test $roc_file
$ROC test $roc_file
fi
done

# test building docs website
$roc docs package/main.roc
$ROC docs package/main.roc
2 changes: 1 addition & 1 deletion examples/simple.roc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
app "example"
packages {
cli: "https://github.com/roc-lang/basic-cli/releases/download/0.7.0/bkGby8jb0tmZYsy2hg1E_B2QrCgcSTxdUlHtETwm5m4.tar.br",
cli: "https://github.com/roc-lang/basic-cli/releases/download/0.8.1/x8URkvfyi9I0QhmVG98roKBUs_AZRkLFwFJVJ3942YA.tar.br",
unicode: "../package/main.roc", # use release URL (ends in tar.br) for local example, see github.com/roc/unicode/releases
}
imports [
Expand Down
4 changes: 2 additions & 2 deletions package/GraphemeTestGen.roc
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
## parse it and then generate the individual tests.
app "gen"
packages {
pf: "https://github.com/roc-lang/basic-cli/releases/download/0.7.0/bkGby8jb0tmZYsy2hg1E_B2QrCgcSTxdUlHtETwm5m4.tar.br",
parser: "https://github.com/lukewilliamboswell/roc-parser/releases/download/0.3.0/-e3ebWWmlFPfe9fYrr2z1urfslzygbtQQsl69iH1qzQ.tar.br",
pf: "https://github.com/roc-lang/basic-cli/releases/download/0.8.1/x8URkvfyi9I0QhmVG98roKBUs_AZRkLFwFJVJ3942YA.tar.br",
parser: "https://github.com/lukewilliamboswell/roc-parser/releases/download/0.5.2/9VrPjwfQQ1QeSL3CfmWr2Pr9DESdDIXy97pwpuq84Ck.tar.br",
}
imports [
pf.Stdout,
Expand Down
2 changes: 1 addition & 1 deletion package/InternalEmojiGen.roc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
## parse it and then generate the implementation for each of the Emoji properties.
app "gen"
packages {
pf: "https://github.com/roc-lang/basic-cli/releases/download/0.7.0/bkGby8jb0tmZYsy2hg1E_B2QrCgcSTxdUlHtETwm5m4.tar.br",
pf: "https://github.com/roc-lang/basic-cli/releases/download/0.8.1/x8URkvfyi9I0QhmVG98roKBUs_AZRkLFwFJVJ3942YA.tar.br",
}
imports [
pf.Stdout,
Expand Down
2 changes: 1 addition & 1 deletion package/InternalGBPGen.roc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
## parse it and then generate the implementation for each of the GBP properties.
app "gen"
packages {
pf: "https://github.com/roc-lang/basic-cli/releases/download/0.7.0/bkGby8jb0tmZYsy2hg1E_B2QrCgcSTxdUlHtETwm5m4.tar.br",
pf: "https://github.com/roc-lang/basic-cli/releases/download/0.8.1/x8URkvfyi9I0QhmVG98roKBUs_AZRkLFwFJVJ3942YA.tar.br",
}
imports [
pf.Stdout,
Expand Down

0 comments on commit 0002703

Please sign in to comment.