-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2956 from casperdcl/snap
add snap tests
- Loading branch information
Showing
6 changed files
with
43 additions
and
7 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,7 +29,7 @@ fi | |
|
||
print_error() | ||
{ | ||
echo -e "\e[31m$1\e[0m" | ||
echo -e "\e[31m$1\e[0m" >&2 | ||
} | ||
|
||
if [ ! -d "dvc" ]; then | ||
|
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,30 @@ | ||
#!/bin/bash | ||
set -e | ||
set -x | ||
|
||
if [ ! -d "dvc" ]; then | ||
echo "Please run this script from repository root" | ||
exit 1 | ||
fi | ||
|
||
sudo snapcraft --use-lxd | ||
|
||
pip uninstall -y dvc | ||
if which dvc; then | ||
echo "ERROR: dvc command still exists! Unable to verify dvc version." >&2 | ||
exit 1 | ||
fi | ||
sudo snap install --dangerous --classic dvc_*.snap | ||
if [[ -n "$TRAVIS_TAG" ]]; then | ||
# Make sure we have a correct version | ||
if [[ "$(dvc --version)" != "$TRAVIS_TAG" ]]; then | ||
echo "ERROR: 'dvc --version'$(dvc -V) doesn't match '$TRAVIS_TAG'" >&2 | ||
exit 1 | ||
fi | ||
fi | ||
# ensure basic commands can run | ||
# N.B.: cannot run `dvc get` on travis (#2956) | ||
dvc version | ||
dvc.git status | ||
dvc.git fetch --all | ||
sudo snap remove dvc |
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