-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tests on different distros using docker
- Loading branch information
1 parent
b10e08e
commit c438eb4
Showing
2 changed files
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -e | ||
|
||
if [ -f /etc/debian_version ]; then | ||
apt-get -y update | ||
apt-get -y install gcc wget | ||
apt-get -y install make git=$GIT_VER | ||
elif [ -f /etc/redhat-release ]; then | ||
yum -y update | ||
yum -y install make git gcc wget | ||
fi | ||
|
||
wget https://ftp.gnu.org/gnu/bash/bash-$BASH_VER.tar.gz | ||
tar -xvf bash* | ||
cd bash-$BASH_VER | ||
./configure --prefix=/usr \ | ||
--bindir=/bin \ | ||
--without-bash-malloc \ | ||
--with-installed-readline | ||
make | ||
make install | ||
|
||
# Clone git-secrets, install and run tests. | ||
git clone https://github.com/awslabs/git-secrets.git | ||
cd git-secrets | ||
make install | ||
make test |