Skip to content

Commit

Permalink
Merge pull request MinaProtocol#14928 from MinaProtocol/dw/clean-scripts
Browse files Browse the repository at this point in the history
Clean scripts
  • Loading branch information
dannywillems authored Jan 22, 2024
2 parents 100d44c + e99a5a0 commit 7d5edf3
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 75 deletions.
8 changes: 0 additions & 8 deletions scripts/ocamlmerlin

This file was deleted.

8 changes: 0 additions & 8 deletions scripts/opam

This file was deleted.

6 changes: 3 additions & 3 deletions scripts/publish-macos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ set +u
GITHASH=$(git rev-parse --short=8 HEAD)
GITBRANCH=$(git rev-parse --symbolic-full-name --abbrev-ref HEAD | sed 's!/!-!; s!_!-!' )

# Make Portable Binary
# Make Portable Binary
make macos-portable

# Download JFrog CLI
# Download JFrog CLI
curl -fL https://getcli.jfrog.io | sh

# Configure JFrog CLI
# Configure JFrog CLI
./jfrog rt config --url $ARTIFACTORY_URL --user $ARTIFACTORY_USER --apikey $ARTIFACTORY_API_KEY --interactive=false

# Upload Artifact to Artifactory
Expand Down
8 changes: 4 additions & 4 deletions scripts/rebuild-deb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -137,11 +137,11 @@ copy_common_daemon_configs() {

# Copy signature-based Binaries (based on signature type $2 passed into the function)
cp ./default/src/app/cli/src/mina_${2}_signatures.exe "${BUILDDIR}/usr/local/bin/mina"
# Copy rosetta-based Binaries

# Copy rosetta-based Binaries
cp ./default/src/app/rosetta/rosetta_${2}_signatures.exe "${BUILDDIR}/usr/local/bin/mina-rosetta"
cp ./default/src/app/rosetta/ocaml-signer/signer_${2}_signatures.exe "${BUILDDIR}/usr/local/bin/mina-ocaml-signer"

mkdir -p "${BUILDDIR}/etc/mina/rosetta"
mkdir -p "${BUILDDIR}/etc/mina/rosetta/rosetta-cli-config"
mkdir -p "${BUILDDIR}/etc/mina/rosetta/archive"
Expand Down Expand Up @@ -380,7 +380,7 @@ if ${MINA_BUILD_MAINNET} # only builds on mainnet-like branches
then
echo "---- Built all packages including mainnet, devnet, and the sidecar"
else
echo "---- Not a mainnet-like branch, only built berkeley and beyond packages"
echo "---- Not a mainnet-like branch, only built berkeley and beyond packages"
fi

ls -lh mina*.deb
4 changes: 2 additions & 2 deletions scripts/release-docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ case "${DEB_CODENAME##*=}" in
esac
IMAGE="--build-arg image=${IMAGE}"

# Determine profile for mina name. To preserve backward compatibility standard profile is default.
# Determine profile for mina name. To preserve backward compatibility standard profile is default.
case "${DEB_PROFILE}" in
standard)
DOCKER_DEB_PROFILE=""
Expand Down Expand Up @@ -163,7 +163,7 @@ else
fi

if [[ -z "$NOUPLOAD" ]] || [[ "$NOUPLOAD" -eq 0 ]]; then

# push to GCR
docker push "${TAG}"

Expand Down
31 changes: 0 additions & 31 deletions scripts/run-in-docker

This file was deleted.

15 changes: 0 additions & 15 deletions scripts/select-opam-deps.sh

This file was deleted.

8 changes: 4 additions & 4 deletions scripts/testone.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ set -e

# File assumes tat you are running the program at the program at the root directory of the coda repo

if [[ "$#" -eq "0" ]]; then
if [[ "$#" -eq "0" ]]; then
echo "This script needs at least one argument, TEST-FILE, to run"
exit 1
fi
Expand All @@ -22,9 +22,9 @@ DIRPATH=$(dirname "$TEST_FILE")
LIBRARY_NAME=$(basename "$DIRPATH")

TEST_RUNNER_PROG="$DIRPATH/.$LIBRARY_NAME.inline-tests/inline_test_runner_$LIBRARY_NAME.exe"
if [[ "$#" -eq "1" ]]; then
TEST_CASE="$TEST_FILE"
else
if [[ "$#" -eq "1" ]]; then
TEST_CASE="$TEST_FILE"
else
TEST_CASE="$TEST_FILE:$2"
fi
( ulimit -s 65532 || true ) && \
Expand Down

0 comments on commit 7d5edf3

Please sign in to comment.