-
Notifications
You must be signed in to change notification settings - Fork 21
SERVER-216: new packaging system #401
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
cinterloper
wants to merge
2
commits into
master
Choose a base branch
from
dev/SERVER-216
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+595
−1
Open
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,30 @@ | ||
| #!/usr/bin/env bash | ||
| set -xeuo pipefail | ||
|
|
||
| function build_packages(){ | ||
| if [ "$ENV_DISTRO" = "" ]; then | ||
| echo "ENV_DISTRO is not set" | ||
| return | ||
| fi | ||
| chown -R root:root . | ||
| GIT_DIR=$(git rev-parse --show-toplevel) | ||
| cd "$GIT_DIR" | ||
| make one-file | ||
| cd $GIT_DIR/pkg | ||
| echo "building package for $BUILD_DISTRO" | ||
|
|
||
| if [[ $ENV_DISTRO == *"ubuntu"* ]]; then | ||
| make deb | ||
| elif [[ $ENV_DISTRO == *"debian"* ]]; then | ||
| make deb | ||
| elif [[ $ENV_DISTRO == *"el"* ]]; then | ||
| make rpm | ||
| elif [[ $ENV_DISTRO == *"amzn"* ]]; then | ||
| make rpm | ||
| else | ||
| make tar | ||
| fi | ||
|
|
||
| mkdir -p /tmp/output/$ENV_DISTRO | ||
| cp -a $GIT_DIR/pkg/target/* /tmp/output/$ENV_DISTRO | ||
| } | ||
This file contains hidden or 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,13 @@ | ||
| #!/usr/bin/env bash | ||
| set -xeuo pipefail | ||
|
|
||
| DISTRO="$1" | ||
| env | ||
| cd local | ||
| git fetch --unshallow --tags --no-recurse-submodules | ||
| git submodule update --init | ||
| ls -laht | ||
| git branch -v | ||
| .github/packaging/common/entrypoint.sh -c -d $DISTRO | ||
| .github/packaging/common/entrypoint.sh -e -d $DISTRO | ||
| ls -laht ../dist |
This file contains hidden or 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,274 @@ | ||
| #!/usr/bin/env bash | ||
| set -xeuo pipefail | ||
|
|
||
| DEBIAN_12_DEPS="libreadline8 libreadline-dev ruby-rubygems make rpm git snapd curl binutils rsync libssl3 libssl-dev lzma lzma-dev libffi-dev build-essential gcc g++" | ||
| DEBIAN_13_DEPS="libreadline8 libreadline-dev ruby-rubygems make rpm git snapd curl binutils rsync libssl3 libssl-dev lzma liblzma-dev libffi-dev libsqlite3-dev build-essential gcc g++ zlib1g-dev libbz2-dev libreadline-dev libncursesw5-dev libnss3-dev uuid-dev tk-dev xz-utils" | ||
| UBUNTU_2004_DEPS="libreadline8 libreadline-dev ruby make rpm git snapd curl binutils rsync libssl1.1 libssl-dev lzma lzma-dev libffi-dev build-essential gcc g++" | ||
| UBUNTU_2204_DEPS="libreadline8 libreadline-dev ruby-rubygems make rpm git snapd curl binutils rsync libssl3 libssl-dev lzma lzma-dev libffi-dev build-essential gcc g++" | ||
| UBUNTU_2404_DEPS="libreadline8 libreadline-dev ruby-rubygems make rpm git snapd curl binutils rsync libssl3 libssl-dev lzma lzma-dev libffi-dev build-essential gcc g++" | ||
| EL8_DEPS="ruby rubygems redhat-rpm-config rpm-build make git rsync gcc gcc-c++ make automake zlib zlib-devel libffi-devel openssl-devel bzip2-devel xz-devel xz xz-libs sqlite sqlite-devel sqlite-libs" | ||
| EL9_DEPS="ruby rpmdevtools make git rsync gcc g++ make automake zlib zlib-devel libffi-devel openssl-devel bzip2-devel xz-devel xz xz-libs sqlite sqlite-devel sqlite-libs" | ||
| EL10_DEPS="ruby rpmdevtools make git rsync gcc g++ make automake zlib zlib-devel libffi-devel openssl-devel bzip2-devel xz-devel xz xz-libs sqlite sqlite-devel sqlite-libs" | ||
| AMZN2023_DEPS="readline-devel ruby rpmdevtools make git rsync gcc g++ make automake zlib zlib-devel libffi-devel openssl-devel bzip2-devel xz-devel xz xz-libs sqlite sqlite-devel sqlite-libs" | ||
|
|
||
| function install_deps_debian12() { | ||
| apt -y install $DEBIAN_12_DEPS | ||
| if [ "$(uname -m)" = "x86_64" ]; then | ||
| curl -L https://go.dev/dl/go1.24.6.linux-amd64.tar.gz -o /tmp/go1.24.6.linux-amd64.tar.gz | ||
| mkdir -p /opt/golang && tar -zxvf /tmp/go1.24.6.linux-amd64.tar.gz -C /opt/golang | ||
| elif [ "$(uname -m)" = "aarch64" ]; then | ||
| curl -L https://go.dev/dl/go1.24.6.linux-arm64.tar.gz -o /tmp/go1.24.6.linux-arm64.tar.gz | ||
| mkdir -p /opt/golang && tar -zxvf /tmp/go1.24.6.linux-arm64.tar.gz -C /opt/golang | ||
| else | ||
| echo "unknown arch $(uname -m)" | ||
| exit 1 | ||
| fi | ||
| /opt/golang/go/bin/go install github.com/asdf-vm/asdf/cmd/[email protected] | ||
| install /root/go/bin/asdf /usr/local/bin/asdf | ||
| asdf plugin add python https://github.com/asdf-community/asdf-python.git | ||
| asdf install python 3.10.18 | ||
| asdf set python 3.10.18 | ||
| echo "python 3.10.18" > /.tool-versions | ||
| echo "python 3.10.18" > /root/.tool-versions | ||
| asdf exec python -m pip install --break-system-packages pipenv | ||
| install /root/.asdf/installs/python/3.10.18/bin/python /usr/bin/python | ||
| install /root/.asdf/installs/python/3.10.18/bin/python /usr/bin/python3 | ||
| install /root/.asdf/installs/python/3.10.18/bin/pipenv /usr/bin/pipenv | ||
| install /root/.asdf/installs/python/3.10.18/bin/pip /usr/bin/pip | ||
| install /root/.asdf/installs/python/3.10.18/bin/pip3 /usr/bin/pip3 | ||
| gem install fpm -v 1.17.0 | ||
| } | ||
|
|
||
| function install_deps_debian13() { | ||
| apt -y install $DEBIAN_13_DEPS | ||
| if [ "$(uname -m)" = "x86_64" ]; then | ||
| curl -L https://go.dev/dl/go1.24.6.linux-amd64.tar.gz -o /tmp/go1.24.6.linux-amd64.tar.gz | ||
| mkdir -p /opt/golang && tar -zxvf /tmp/go1.24.6.linux-amd64.tar.gz -C /opt/golang | ||
| elif [ "$(uname -m)" = "aarch64" ]; then | ||
| curl -L https://go.dev/dl/go1.24.6.linux-arm64.tar.gz -o /tmp/go1.24.6.linux-arm64.tar.gz | ||
| mkdir -p /opt/golang && tar -zxvf /tmp/go1.24.6.linux-arm64.tar.gz -C /opt/golang | ||
| else | ||
| echo "unknown arch $(uname -m)" | ||
| exit 1 | ||
| fi | ||
| /opt/golang/go/bin/go install github.com/asdf-vm/asdf/cmd/[email protected] | ||
| install /root/go/bin/asdf /usr/local/bin/asdf | ||
| asdf plugin add python https://github.com/asdf-community/asdf-python.git | ||
| asdf install python 3.10.18 | ||
| asdf set python 3.10.18 | ||
| echo "python 3.10.18" > /.tool-versions | ||
| echo "python 3.10.18" > /root/.tool-versions | ||
| asdf exec python -m pip install --break-system-packages pipenv | ||
| install /root/.asdf/installs/python/3.10.18/bin/python /usr/bin/python | ||
| install /root/.asdf/installs/python/3.10.18/bin/python /usr/bin/python3 | ||
| install /root/.asdf/installs/python/3.10.18/bin/pipenv /usr/bin/pipenv | ||
| install /root/.asdf/installs/python/3.10.18/bin/pip /usr/bin/pip | ||
| install /root/.asdf/installs/python/3.10.18/bin/pip3 /usr/bin/pip3 | ||
|
|
||
|
|
||
| gem install fpm -v 1.17.0 | ||
| } | ||
|
|
||
| function install_deps_ubuntu20.04() { | ||
| apt -y install $UBUNTU_2004_DEPS | ||
| if [ "$(uname -m)" = "x86_64" ]; then | ||
| curl -L https://go.dev/dl/go1.24.6.linux-amd64.tar.gz -o /tmp/go1.24.6.linux-amd64.tar.gz | ||
| mkdir -p /opt/golang && tar -zxvf /tmp/go1.24.6.linux-amd64.tar.gz -C /opt/golang | ||
| elif [ "$(uname -m)" = "aarch64" ]; then | ||
| curl -L https://go.dev/dl/go1.24.6.linux-arm64.tar.gz -o /tmp/go1.24.6.linux-arm64.tar.gz | ||
| mkdir -p /opt/golang && tar -zxvf /tmp/go1.24.6.linux-arm64.tar.gz -C /opt/golang | ||
| else | ||
| echo "unknown arch $(uname -m)" | ||
| exit 1 | ||
| fi | ||
| /opt/golang/go/bin/go install github.com/asdf-vm/asdf/cmd/[email protected] | ||
| install /root/go/bin/asdf /usr/local/bin/asdf | ||
| asdf plugin add python https://github.com/asdf-community/asdf-python.git | ||
| asdf install python 3.10.18 | ||
| asdf set python 3.10.18 | ||
| echo "python 3.10.18" > /.tool-versions | ||
| echo "python 3.10.18" > /root/.tool-versions | ||
| asdf exec python -m pip install pipenv | ||
| install /root/.asdf/installs/python/3.10.18/bin/python /usr/bin/python | ||
| install /root/.asdf/installs/python/3.10.18/bin/python /usr/bin/python3 | ||
| install /root/.asdf/installs/python/3.10.18/bin/pipenv /usr/bin/pipenv | ||
| install /root/.asdf/installs/python/3.10.18/bin/pip /usr/bin/pip | ||
| install /root/.asdf/installs/python/3.10.18/bin/pip3 /usr/bin/pip3 | ||
| gem install fpm -v 1.17.0 | ||
| } | ||
|
|
||
| function install_deps_ubuntu22.04() { | ||
| apt -y install $UBUNTU_2204_DEPS | ||
| if [ "$(uname -m)" = "x86_64" ]; then | ||
| curl -L https://go.dev/dl/go1.24.6.linux-amd64.tar.gz -o /tmp/go1.24.6.linux-amd64.tar.gz | ||
| mkdir -p /opt/golang && tar -zxvf /tmp/go1.24.6.linux-amd64.tar.gz -C /opt/golang | ||
| elif [ "$(uname -m)" = "aarch64" ]; then | ||
| curl -L https://go.dev/dl/go1.24.6.linux-arm64.tar.gz -o /tmp/go1.24.6.linux-arm64.tar.gz | ||
| mkdir -p /opt/golang && tar -zxvf /tmp/go1.24.6.linux-arm64.tar.gz -C /opt/golang | ||
| else | ||
| echo "unknown arch $(uname -m)" | ||
| exit 1 | ||
| fi | ||
| /opt/golang/go/bin/go install github.com/asdf-vm/asdf/cmd/[email protected] | ||
| install /root/go/bin/asdf /usr/local/bin/asdf | ||
| asdf plugin add python https://github.com/asdf-community/asdf-python.git | ||
| asdf install python 3.10.18 | ||
| asdf set python 3.10.18 | ||
| echo "python 3.10.18" > /.tool-versions | ||
| echo "python 3.10.18" > /root/.tool-versions | ||
| asdf exec python -m pip install pipenv | ||
| install /root/.asdf/installs/python/3.10.18/bin/python /usr/bin/python | ||
| install /root/.asdf/installs/python/3.10.18/bin/python /usr/bin/python3 | ||
| install /root/.asdf/installs/python/3.10.18/bin/pipenv /usr/bin/pipenv | ||
| install /root/.asdf/installs/python/3.10.18/bin/pip /usr/bin/pip | ||
| install /root/.asdf/installs/python/3.10.18/bin/pip3 /usr/bin/pip3 | ||
| gem install fpm -v 1.17.0 | ||
| } | ||
|
|
||
| function install_deps_ubuntu24.04() { | ||
| apt -y install $UBUNTU_2404_DEPS | ||
| if [ "$(uname -m)" = "x86_64" ]; then | ||
| curl -L https://go.dev/dl/go1.24.6.linux-amd64.tar.gz -o /tmp/go1.24.6.linux-amd64.tar.gz | ||
| mkdir -p /opt/golang && tar -zxvf /tmp/go1.24.6.linux-amd64.tar.gz -C /opt/golang | ||
| elif [ "$(uname -m)" = "aarch64" ]; then | ||
| curl -L https://go.dev/dl/go1.24.6.linux-arm64.tar.gz -o /tmp/go1.24.6.linux-arm64.tar.gz | ||
| mkdir -p /opt/golang && tar -zxvf /tmp/go1.24.6.linux-arm64.tar.gz -C /opt/golang | ||
| else | ||
| echo "unknown arch $(uname -m)" | ||
| exit 1 | ||
| fi | ||
|
|
||
| /opt/golang/go/bin/go install github.com/asdf-vm/asdf/cmd/[email protected] | ||
| install /root/go/bin/asdf /usr/local/bin/asdf | ||
| asdf plugin add python https://github.com/asdf-community/asdf-python.git | ||
| asdf install python 3.10.18 | ||
| asdf set python 3.10.18 | ||
| echo "python 3.10.18" > /.tool-versions | ||
| echo "python 3.10.18" > /root/.tool-versions | ||
| asdf exec python -m pip install --break-system-packages pipenv | ||
| install /root/.asdf/installs/python/3.10.18/bin/python /usr/bin/python | ||
| install /root/.asdf/installs/python/3.10.18/bin/python /usr/bin/python3 | ||
| install /root/.asdf/installs/python/3.10.18/bin/pipenv /usr/bin/pipenv | ||
| install /root/.asdf/installs/python/3.10.18/bin/pip /usr/bin/pip | ||
| install /root/.asdf/installs/python/3.10.18/bin/pip3 /usr/bin/pip3 | ||
| gem install fpm -v 1.17.0 | ||
| } | ||
|
|
||
| function install_deps_el8() { | ||
| dnf module enable -y ruby:2.7 | ||
| yum install -y "https://download.rockylinux.org/pub/rocky/8.10/Devel/$(uname -m)/os/Packages/r/readline-devel-7.0-10.el8.$(uname -m).rpm" | ||
| dnf -y install $EL8_DEPS | ||
| gem install --no-document fpm | ||
| if [ "$(uname -m)" = "x86_64" ]; then | ||
| curl -L https://go.dev/dl/go1.24.6.linux-amd64.tar.gz -o /tmp/go1.24.6.linux-amd64.tar.gz | ||
| mkdir -p /opt/golang && tar -zxvf /tmp/go1.24.6.linux-amd64.tar.gz -C /opt/golang | ||
| elif [ "$(uname -m)" = "aarch64" ]; then | ||
| curl -L https://go.dev/dl/go1.24.6.linux-arm64.tar.gz -o /tmp/go1.24.6.linux-arm64.tar.gz | ||
| mkdir -p /opt/golang && tar -zxvf /tmp/go1.24.6.linux-arm64.tar.gz -C /opt/golang | ||
| else | ||
| echo "unknown arch $(uname -m)" | ||
| exit 1 | ||
| fi | ||
| /opt/golang/go/bin/go install github.com/asdf-vm/asdf/cmd/[email protected] | ||
| install /root/go/bin/asdf /usr/local/bin/asdf | ||
| asdf plugin add python https://github.com/asdf-community/asdf-python.git | ||
| asdf install python 3.10.18 | ||
| asdf set python 3.10.18 | ||
| echo "python 3.10.18" > /.tool-versions | ||
| echo "python 3.10.18" > /root/.tool-versions | ||
| asdf exec python -m pip install pipenv | ||
| install /root/.asdf/installs/python/3.10.18/bin/python /usr/bin/python | ||
| install /root/.asdf/installs/python/3.10.18/bin/python /usr/bin/python3 | ||
| install /root/.asdf/installs/python/3.10.18/bin/pipenv /usr/bin/pipenv | ||
| install /root/.asdf/installs/python/3.10.18/bin/pip /usr/bin/pip | ||
| install /root/.asdf/installs/python/3.10.18/bin/pip3 /usr/bin/pip3 | ||
|
|
||
| gem install fpm -v 1.17.0 | ||
| } | ||
|
|
||
| function install_deps_el9() { | ||
| yum install -y "https://download.rockylinux.org/pub/rocky/9.6/devel/$(uname -m)/os/Packages/r/readline-devel-8.1-4.el9.$(uname -m).rpm" | ||
| dnf -y install $EL9_DEPS | ||
|
|
||
| if [ "$(uname -m)" = "x86_64" ]; then | ||
| curl -L https://go.dev/dl/go1.24.6.linux-amd64.tar.gz -o /tmp/go1.24.6.linux-amd64.tar.gz | ||
| mkdir -p /opt/golang && tar -zxvf /tmp/go1.24.6.linux-amd64.tar.gz -C /opt/golang | ||
| elif [ "$(uname -m)" = "aarch64" ]; then | ||
| curl -L https://go.dev/dl/go1.24.6.linux-arm64.tar.gz -o /tmp/go1.24.6.linux-arm64.tar.gz | ||
| mkdir -p /opt/golang && tar -zxvf /tmp/go1.24.6.linux-arm64.tar.gz -C /opt/golang | ||
| else | ||
| echo "unknown arch $(uname -m)" | ||
| exit 1 | ||
| fi | ||
| /opt/golang/go/bin/go install github.com/asdf-vm/asdf/cmd/[email protected] | ||
| install /root/go/bin/asdf /usr/local/bin/asdf | ||
| asdf plugin add python https://github.com/asdf-community/asdf-python.git | ||
| asdf install python 3.10.18 | ||
| asdf set python 3.10.18 | ||
| echo "python 3.10.18" > /.tool-versions | ||
| echo "python 3.10.18" > /root/.tool-versions | ||
| asdf exec python -m pip install --break-system-packages pipenv | ||
| install /root/.asdf/installs/python/3.10.18/bin/python /usr/bin/python | ||
| install /root/.asdf/installs/python/3.10.18/bin/python /usr/bin/python3 | ||
| install /root/.asdf/installs/python/3.10.18/bin/pipenv /usr/bin/pipenv | ||
| install /root/.asdf/installs/python/3.10.18/bin/pip /usr/bin/pip | ||
| install /root/.asdf/installs/python/3.10.18/bin/pip3 /usr/bin/pip3 | ||
| gem install fpm -v 1.17.0 | ||
| } | ||
|
|
||
| function install_deps_el10() { | ||
| yum install -y "https://download.rockylinux.org/pub/rocky/10.0/devel/$(uname -m)/os/Packages/r/readline-devel-8.2-11.el10.$(uname -m).rpm" | ||
| dnf -y install $EL10_DEPS | ||
| if [ "$(uname -m)" = "x86_64" ]; then | ||
| curl -L https://go.dev/dl/go1.24.6.linux-amd64.tar.gz -o /tmp/go1.24.6.linux-amd64.tar.gz | ||
| mkdir -p /opt/golang && tar -zxvf /tmp/go1.24.6.linux-amd64.tar.gz -C /opt/golang | ||
| elif [ "$(uname -m)" = "aarch64" ]; then | ||
| curl -L https://go.dev/dl/go1.24.6.linux-arm64.tar.gz -o /tmp/go1.24.6.linux-arm64.tar.gz | ||
| mkdir -p /opt/golang && tar -zxvf /tmp/go1.24.6.linux-arm64.tar.gz -C /opt/golang | ||
| else | ||
| echo "unknown arch $(uname -m)" | ||
| exit 1 | ||
| fi | ||
| /opt/golang/go/bin/go install github.com/asdf-vm/asdf/cmd/[email protected] | ||
| install /root/go/bin/asdf /usr/local/bin/asdf | ||
| asdf plugin add python https://github.com/asdf-community/asdf-python.git | ||
| asdf install python 3.10.18 | ||
| asdf set python 3.10.18 | ||
| echo "python 3.10.18" > /.tool-versions | ||
| echo "python 3.10.18" > /root/.tool-versions | ||
| asdf exec python -m pip install --break-system-packages pipenv | ||
| install /root/.asdf/installs/python/3.10.18/bin/python /usr/bin/python | ||
| install /root/.asdf/installs/python/3.10.18/bin/python /usr/bin/python3 | ||
| install /root/.asdf/installs/python/3.10.18/bin/pipenv /usr/bin/pipenv | ||
| install /root/.asdf/installs/python/3.10.18/bin/pip /usr/bin/pip | ||
| install /root/.asdf/installs/python/3.10.18/bin/pip3 /usr/bin/pip3 | ||
| gem install fpm | ||
| } | ||
|
|
||
| function install_deps_amzn2023() { | ||
| dnf -y install $AMZN2023_DEPS | ||
| if [ "$(uname -m)" = "x86_64" ]; then | ||
| curl -L https://go.dev/dl/go1.24.6.linux-amd64.tar.gz -o /tmp/go1.24.6.linux-amd64.tar.gz | ||
| mkdir -p /opt/golang && tar -zxvf /tmp/go1.24.6.linux-amd64.tar.gz -C /opt/golang | ||
| elif [ "$(uname -m)" = "aarch64" ]; then | ||
| curl -L https://go.dev/dl/go1.24.6.linux-arm64.tar.gz -o /tmp/go1.24.6.linux-arm64.tar.gz | ||
| mkdir -p /opt/golang && tar -zxvf /tmp/go1.24.6.linux-arm64.tar.gz -C /opt/golang | ||
| else | ||
| echo "unknown arch $(uname -m)" | ||
| exit 1 | ||
| fi | ||
| /opt/golang/go/bin/go install github.com/asdf-vm/asdf/cmd/[email protected] | ||
| install /root/go/bin/asdf /usr/local/bin/asdf | ||
| asdf plugin add python https://github.com/asdf-community/asdf-python.git | ||
| asdf install python 3.10.18 | ||
| asdf set python 3.10.18 | ||
| echo "python 3.10.18" > /.tool-versions | ||
| echo "python 3.10.18" > /root/.tool-versions | ||
| asdf exec python -m pip install --break-system-packages pipenv | ||
| install /root/.asdf/installs/python/3.10.18/bin/python /usr/bin/python | ||
| install /root/.asdf/installs/python/3.10.18/bin/python /usr/bin/python3 | ||
| install /root/.asdf/installs/python/3.10.18/bin/pipenv /usr/bin/pipenv | ||
| install /root/.asdf/installs/python/3.10.18/bin/pip /usr/bin/pip | ||
| install /root/.asdf/installs/python/3.10.18/bin/pip3 /usr/bin/pip3 | ||
| gem install fpm -v 1.17.0 | ||
| } |
This file contains hidden or 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,7 @@ | ||
| #!/usr/bin/env bash | ||
| set -xeuo pipefail | ||
| DISTRO="$1" | ||
| REPO_NAME="$2" | ||
| env | ||
| git fetch --unshallow --tags --no-recurse-submodules | ||
| .github/packaging/common/example-test.sh "$DISTRO" "$REPO_NAME" |
This file contains hidden or 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,6 @@ | ||
| #!/usr/bin/env bats | ||
|
|
||
| @test "can run asadm" { | ||
| asadm --help | ||
| [ "$?" -eq 0 ] | ||
| } |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems like an odd thing to do - what directory does this execute from and why is this needed?