-
Notifications
You must be signed in to change notification settings - Fork 119
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add --require-version flag, and refactor version handling logic sligh…
…tly (#544) * Add --require-version flag This adds a flag that lets you require a minimum version of the Sail compiler. If the version doesn't meet the requirements it exits with exit code 1. Otherwise it continues as normal. This means you can use it as a standalone check (`sail --require-version 0.17.2`) or as an additional flag to your existing commands. * Some more version handling logic --------- Co-authored-by: Tim Hutt <[email protected]>
- Loading branch information
Showing
4 changed files
with
58 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,8 @@ | |
|
||
set -eu | ||
|
||
echo "sail --version: $(sail --version)" | ||
|
||
export TEST_PAR=4 | ||
|
||
test/run_core_tests.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
let dir = "%{sail:share}%" | ||
|
||
let commit = "opam-v%{opam-version}%" | ||
let commit = "opam-v%{opam-version}% %{sail:version}%" | ||
|
||
let branch = "%{sail:name}%" | ||
|
||
let version = "%{sail:version}%" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters