forked from timsutton/brew-pkg
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtest.sh
executable file
·33 lines (27 loc) · 1012 Bytes
/
test.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/usr/bin/env bash
set -euxo pipefail
# Install latest brew
if [[ $(command -v brew) == "" ]]; then
echo "Installing brew in order to build MetaCall"
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
fi
# Install brew-pkg
brew tap --verbose metacall/brew-pkg
brew install --verbose --HEAD metacall/brew-pkg/brew-pkg
# Test Python with dependencies, compress and custom output tarball name
brew install [email protected]
brew pkg --name python --with-deps --compress [email protected]
test -f python.tar.gz
test -f python.pkg
# tar -ztvf python.tar.gz
brew pkg --name python-without-deps --compress [email protected]
test -f python-without-deps.tar.gz
test -f python-without-deps.pkg
# tar -ztvf python-without-deps.tar.gz
brew install [email protected]
brew pkg --name ruby-with-python --compress --relocatable --additional-deps [email protected] [email protected]
test -f ruby-with-python.tar.gz
test -f ruby-with-python.pkg
# tar -ztvf ruby-with-python.tar.gz
# Debug files and sizes
ls -lh