Skip to content

Commit

Permalink
bundle auto-completion scripts with *nix release artifacts
Browse files Browse the repository at this point in the history
  ```
  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.
  • Loading branch information
KtorZ committed Sep 28, 2020
1 parent d4d5cf3 commit 4ccd3d2
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand All @@ -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"
Expand All @@ -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"

Expand Down

0 comments on commit 4ccd3d2

Please sign in to comment.