-
-
Save CyberShadow/79422aea8ee896378785c273b56ec07c to your computer and use it in GitHub Desktop.
bashcov container test case
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
FROM ubuntu:18.04 | |
RUN apt-get update | |
RUN apt-get install -y ruby | |
RUN gem install bashcov | |
ADD /script.sh /root/ | |
CMD /root/script.sh |
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
#!/bin/bash | |
set -euxo pipefail | |
cd /root | |
mkdir covtest | |
cd covtest | |
echo 'echo Hello' > test.sh | |
bashcov test.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment