summaryrefslogtreecommitdiff
path: root/.travis.yml
diff options
context:
space:
mode:
authorAkim Demaille <akim.demaille@gmail.com>2019-10-02 17:54:54 +0200
committerAkim Demaille <akim.demaille@gmail.com>2019-10-03 07:56:42 +0200
commitbe92ad1eb4fc3b665b1bb4eda82e4c744e501765 (patch)
treeefe40e16dd06a459f1f35280e46ff922da8d7619 /.travis.yml
parentff2f02815b24332cb4ea9dcef806fdbc1ed8e81a (diff)
downloadbison-be92ad1eb4fc3b665b1bb4eda82e4c744e501765.tar.gz
CI: remove the symlink before creating it
Currently we fail if we rerun a job that succeeded to push the tarball.
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml4
1 files changed, 3 insertions, 1 deletions
diff --git a/.travis.yml b/.travis.yml
index be396eaf..e51ebc4a 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -68,7 +68,9 @@ jobs:
# tarball on a name that only depends on the Travis build number.
#
# Without -b -, exit status is always 0.
- - sftp -b - bison@sftp.lrde.epita.fr <<< "put $dist"$'\n'"ln -s $dist bison-$TRAVIS_BUILD_NUMBER.tar.xz"
+ #
+ # If we rerun a job that was already uploaded, 'ln -s' will fail: remove beforehand.
+ - sftp -b - bison@sftp.lrde.epita.fr <<< "put $dist"$'\n'"-rm bison-$TRAVIS_BUILD_NUMBER.tar.xz"$'\n'"ln -s $dist bison-$TRAVIS_BUILD_NUMBER.tar.xz"
## ------- ##
## First. ##