-
Notifications
You must be signed in to change notification settings - Fork 326
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
59afe3a
commit d03bc47
Showing
8 changed files
with
47 additions
and
43 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#!/bin/bash | ||
|
||
|
||
set -eux | ||
|
||
mkdir -p $HOME/.local/bin; | ||
|
||
travis_retry() { | ||
cmd=$* | ||
$cmd || (sleep 2 && $cmd) || (sleep 10 && $cmd) | ||
} | ||
|
||
fetch_cvc5_linux() { | ||
VER="$1" | ||
wget "https://github.com/cvc5/cvc5/releases/download/$VER/cvc5-$VER-x86_64-linux-opt" | ||
chmod +x "cvc5-$VER-x86_64-linux-opt" | ||
mv "cvc5-$VER-x86_64-linux-opt" "$HOME/.local/bin/cvc5" | ||
echo "Downloaded cvc5 $VER" | ||
} | ||
|
||
fetch_cvc5_macos() { | ||
VER="$1" | ||
wget "https://github.com/cvc5/cvc5/releases/download/$VER/cvc5-$VER-macos-opt" | ||
chmod +x "cvc5-$VER-macos-opt" | ||
mv "cvc5-$VER-macos-opt" "$HOME/.local/bin/cvc5" | ||
echo "Downloaded cvc5 $VER" | ||
} | ||
|
||
if [ "$HOST_OS" = "Linux" ]; then | ||
travis_retry fetch_cvc5_linux "1.8" | ||
else | ||
travis_retry fetch_cvc5_macos "1.8" | ||
fi |
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
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
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