diff --git a/.travis.yml b/.travis.yml index 9c87f26996..616a30d8ed 100644 --- a/.travis.yml +++ b/.travis.yml @@ -106,6 +106,7 @@ jobs: - sudo /snap/bin/lxd.migrate -yes - sudo /snap/bin/lxd waitready - sudo /snap/bin/lxd init --auto + - git fetch --tags script: - ./scripts/build_snap.sh after_failure: diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml index e88338a3e9..15aacae6cf 100644 --- a/snap/snapcraft.yaml +++ b/snap/snapcraft.yaml @@ -29,7 +29,7 @@ parts: - git override-pull: | snapcraftctl pull - snapcraftctl set-version `cd $SNAPCRAFT_PART_SRC && git describe --tags` + snapcraftctl set-version $(cd $SNAPCRAFT_PART_SRC && git describe --tags) git diff --quiet || error_dirty_build echo 'PKG = "snap"' > $SNAPCRAFT_PART_SRC/dvc/utils/build.py # install all optional extras