From 4ccd3d2ef10e0ed72bf133a0d0b77149c1fb94e0 Mon Sep 17 00:00:00 2001 From: KtorZ Date: Mon, 28 Sep 2020 15:04:39 +0200 Subject: [PATCH] bundle auto-completion scripts with *nix release artifacts MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ``` cardano-wallet-linux64 ├── auto-completion │   ├── bash │   │   └── cardano-wallet.sh │   ├── fish │   │   └── cardano-wallet.fish │   └── zsh │   └── _cardano-wallet └── cardano-wallet ``` So that users can simply copy-paste them into whatever shell they use. --- .travis.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.travis.yml b/.travis.yml index e03dd426964..13c91181ebb 100644 --- a/.travis.yml +++ b/.travis.yml @@ -62,12 +62,18 @@ jobs: - "tar xzf cardano-wallet-20*-linux64.tar.gz" - "mv cardano-wallet-20*/ cardano-wallet-linux64" - "./cardano-wallet-linux64/cardano-wallet version | grep -q $TRAVIS_COMMIT" + - "mkdir -p auto-completion auto-completion/bash auto-completion/zsh auto-completion/fish" + - "./cardano-wallet-linux64/cardano-wallet --bash-completion-script cardano-wallet > auto-completion/bash/cardano-wallet.sh" + - "./cardano-wallet-linux64/cardano-wallet --zsh-completion-script cardano-wallet > auto-completion/zsh/_cardano-wallet" + - "./cardano-wallet-linux64/cardano-wallet --fish-completion-script cardano-wallet > auto-completion/fish/cardano-wallet.fish" + - "cp -r auto-completion cardano-wallet-linux64" - "tar czf cardano-wallet-$TRAVIS_TAG-linux64.tar.gz cardano-wallet-linux64" - "rm -rf cardano-wallet-linux64 cardano-wallet-20*-linux64.tar.gz" # Unpack and rename stuff for the MacOS archive - "tar xzf cardano-wallet-20*-macos64.tar.gz" - "mv cardano-wallet-20*/ cardano-wallet-macos64" + - "cp -r auto-completion cardano-wallet-macos64" - "tar czf cardano-wallet-$TRAVIS_TAG-macos64.tar.gz cardano-wallet-macos64" - "rm -rf cardano-wallet-macos64 cardano-wallet-20*-macos64.tar.gz" @@ -84,6 +90,10 @@ jobs: - "tar xzf cardano-wallet-jormungandr-*-linux64.tar.gz" - "mv cardano-wallet-jormungandr-*/ cardano-wallet-jormungandr-linux64" - "mv cardano-wallet-jormungandr-linux64/cardano-wallet-jormungandr cardano-wallet-jormungandr-linux64/cardano-wallet" + - "./cardano-wallet-jormungandr-linux64/cardano-wallet --bash-completion-script cardano-wallet > auto-completion/bash/cardano-wallet.sh" + - "./cardano-wallet-jormungandr-linux64/cardano-wallet --zsh-completion-script cardano-wallet > auto-completion/zsh/_cardano-wallet" + - "./cardano-wallet-jormungandr-linux64/cardano-wallet --fish-completion-script cardano-wallet > auto-completion/fish/cardano-wallet.fish" + - "cp -r auto-completion cardano-wallet-jormungandr-linux64" - "./cardano-wallet-jormungandr-linux64/cardano-wallet version | grep -q $TRAVIS_COMMIT" - "tar czf cardano-wallet-itn-$TRAVIS_TAG-linux64.tar.gz cardano-wallet-jormungandr-linux64" - "rm -rf cardano-wallet-jormungandr-linux64 cardano-wallet-jormungandr-*-linux64.tar.gz" @@ -92,6 +102,7 @@ jobs: - "tar xzf cardano-wallet-jormungandr-*-macos64.tar.gz" - "mv cardano-wallet-jormungandr-*/ cardano-wallet-jormungandr-macos64" - "mv cardano-wallet-jormungandr-macos64/cardano-wallet-jormungandr cardano-wallet-jormungandr-macos64/cardano-wallet" + - "cp -r auto-completion cardano-wallet-jormungandr-macos64" - "tar czf cardano-wallet-itn-$TRAVIS_TAG-macos64.tar.gz cardano-wallet-jormungandr-macos64" - "rm -rf cardano-wallet-jormungandr-macos64 cardano-wallet-jormungandr-*-macos64.tar.gz"