Set up Travis build matrix

This commit is contained in:
Vidar Holen
2019-07-24 22:05:30 -07:00
parent bfb2d79e54
commit f9c8a255be
3 changed files with 46 additions and 33 deletions

View File

@@ -51,17 +51,13 @@ do
rm "shellcheck"
done
if [ "$TRAVIS_OS_NAME" = 'osx' ];
then
brew install gnu-tar
for file in *.darwin-x86_64
do
base="${file%.*}"
cp "$file" "shellcheck"
gtar -cJf "$base.darwin.x86_64.tar.xz" --transform="s:^:$base/:" README.txt LICENSE.txt shellcheck
rm "shellcheck"
done
fi
for file in *.darwin-x86_64
do
base="${file%.*}"
cp "$file" "shellcheck"
tar -cJf "$base.darwin.x86_64.tar.xz" --transform="s:^:$base/:" README.txt LICENSE.txt shellcheck
rm "shellcheck"
done
for file in ./*
do