Bats Installation: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 9: Line 9:
=Installation on Linux=
=Installation on Linux=


Go to the GitHub releases page https://github.com/sstephenson/bats/releases and pull the latest release.
 
  wget -O bat.zip https://github.com/sharkdp/bat/releases/download/v0.8.0/bat-v0.8.0-x86_64-unknown-linux-musl.tar.gz
git clone https://github.com/sstephenson/bats.git
  tar -xvzf bat.zip -C /usr/local
  cd bats
mv /usr/local/bat-v0.8.0-x86_64-unknown-linux-musl /usr/local/bat
  sudo ./install.sh /usr/local/
alias bat='/usr/local/bat/bat'

Revision as of 23:57, 17 December 2019

Internal

Installation on Mac

brew install bats

Installation on Linux

git clone https://github.com/sstephenson/bats.git
cd bats
sudo ./install.sh /usr/local/