Skip to content

Commit

Permalink
Fix snap build
Browse files Browse the repository at this point in the history
  • Loading branch information
mvines committed Nov 27, 2018
1 parent 58e3dd4 commit 0121777
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 27 deletions.
9 changes: 3 additions & 6 deletions ci/snap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,9 @@ set -e

cd "$(dirname "$0")/.."

if ! ci/version-check.sh stable; then
# This job doesn't run within a container, try once to upgrade tooling on a
# version check failure
rustup install stable
ci/version-check.sh stable
fi
# This job doesn't run within a container, try once to upgrade tooling on a
# version check failure
ci/version-check-with-upgrade.sh stable

DRYRUN=
if [[ -z $BUILDKITE_BRANCH ]]; then
Expand Down
10 changes: 3 additions & 7 deletions ci/test-bench.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,9 @@ source ci/upload_ci_artifact.sh

eval "$(ci/channel-info.sh)"

if ! ci/version-check.sh nightly; then
# This job doesn't run within a container, try once to upgrade tooling on a
# version check failure
rustup install nightly
rustup default nightly
ci/version-check.sh nightly
fi
# This job doesn't run within a container, try once to upgrade tooling on a
# version check failure
ci/version-check-with-upgrade.sh nightly

_() {
echo "--- $*"
Expand Down
10 changes: 4 additions & 6 deletions ci/test-large-network.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,10 @@ set -e
here=$(dirname "$0")
cd "$here"/..

if ! ci/version-check.sh stable; then
# This job doesn't run within a container, try once to upgrade tooling on a
# version check failure
rustup install stable
ci/version-check.sh stable
fi
# This job doesn't run within a container, try once to upgrade tooling on a
# version check failure
ci/version-check-with-upgrade.sh stable

export RUST_BACKTRACE=1

./fetch-perf-libs.sh
Expand Down
12 changes: 4 additions & 8 deletions ci/test-stable-perf.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,9 @@ cd "$(dirname "$0")/.."
# Clear cached json keypair files
rm -rf "$HOME/.config/solana"

if ! ci/version-check.sh stable; then
# This job doesn't run within a container, try once to upgrade tooling on a
# version check failure
rustup install stable
rustup default stable
ci/version-check.sh stable
fi
# This job doesn't run within a container, try once to upgrade tooling on a
# version check failure
ci/version-check-with-upgrade.sh stable

export RUST_BACKTRACE=1
export RUSTFLAGS="-D warnings"
Expand Down Expand Up @@ -51,4 +47,4 @@ echo --- ci/localnet-sanity.sh
# Assume |cargo build| has populated target/debug/ successfully.
export PATH=$PWD/target/debug:$PATH
USE_INSTALL=1 ci/localnet-sanity.sh
)
)
11 changes: 11 additions & 0 deletions ci/version-check-with-upgrade.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/usr/bin/env bash
set -e

cd "$(dirname "$0")"

channel=${1:-stable}
if ! ./version-check.sh "$channel"; then
rustup install "$channel"
rustup default "$channel"
./version-check.sh "$channel"
fi

0 comments on commit 0121777

Please sign in to comment.