Skip to content
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

build: fetch SDKs/tools version from github #179

Merged
merged 1 commit into from
Oct 6, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion build/mc/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@
# limitations under the License.
#

MC_VERSION="RELEASE.2017-06-15T03-38-43Z"
MC_VERSION=$(curl -s https://api.github.com/repos/minio/mc/releases/latest | jq -r .tag_name)
if [ -z "$MC_VERSION" ]; then
echo "unable to get mc version from github"
exit 1
fi

test_run_dir="$MINT_RUN_CORE_DIR/mc"
$WGET --output-document="${test_run_dir}/mc" "https://dl.minio.io/client/mc/release/linux-amd64/mc.${MC_VERSION}"
Expand Down
6 changes: 5 additions & 1 deletion build/minio-go/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@
# limitations under the License.
#

MINIO_GO_VERSION="3.0.3"
MINIO_GO_VERSION=$(curl -s https://api.github.com/repos/minio/minio-go/releases/latest | jq -r .tag_name)
if [ -z "$MINIO_GO_VERSION" ]; then
echo "unable to get minio-go version from github"
exit 1
fi

test_run_dir="$MINT_RUN_CORE_DIR/minio-go"
go get -u github.com/sirupsen/logrus/...
Expand Down
6 changes: 5 additions & 1 deletion build/minio-java/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@
# limitations under the License.
#

MINIO_JAVA_VERSION="3.0.7"
MINIO_JAVA_VERSION=$(curl -s https://api.github.com/repos/minio/minio-java/releases/latest | jq -r .tag_name)
if [ -z "$MINIO_JAVA_VERSION" ]; then
echo "unable to get minio-java version from github"
exit 1
fi

test_run_dir="$MINT_RUN_CORE_DIR/minio-java"
git clone --quiet https://github.com/minio/minio-java.git "$test_run_dir/minio-java.git"
Expand Down
6 changes: 5 additions & 1 deletion build/minio-js/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@
# limitations under the License.
#

MINIO_JS_VERSION="3.2.1"
MINIO_JS_VERSION=$(curl -s https://api.github.com/repos/minio/minio-js/releases/latest | jq -r .tag_name)
if [ -z "$MINIO_JS_VERSION" ]; then
echo "unable to get minio-js version from github"
exit 1
fi

test_run_dir="$MINT_RUN_CORE_DIR/minio-js"
mkdir "${test_run_dir}/test"
Expand Down
12 changes: 6 additions & 6 deletions build/minio-py/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@
# limitations under the License.
#

MINIO_PY_VERSION="2.2.5"
MINIO_PY_VERSION=$(curl -s https://api.github.com/repos/minio/minio-py/releases/latest | jq -r .tag_name)
if [ -z "$MINIO_PY_VERSION" ]; then
echo "unable to get minio-py version from github"
exit 1
fi

test_run_dir="$MINT_RUN_CORE_DIR/minio-py"
pip3 install --user faker
pip3 install minio==$MINIO_PY_VERSION
pip3 install minio=="$MINIO_PY_VERSION"
$WGET --output-document="$test_run_dir/tests.py" "https://raw.githubusercontent.com/minio/minio-py/${MINIO_PY_VERSION}/tests/functional/tests.py"
if [ "$MINIO_PY_VERSION" == "2.2.4" ]; then
# This is needed until we make a new minio-py release.
sed -i 's/DATA_DIR/MINT_DATA_DIR/g' "$test_run_dir/tests.py"
fi