forked from dfinity/sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprovision-darwin.sh
executable file
·39 lines (33 loc) · 1021 Bytes
/
provision-darwin.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
34
35
36
37
38
39
#!/bin/bash
set -ex
export
# Install Bats + moreutils.
brew fetch --retry coreutils moreutils
brew install coreutils moreutils
# Install Bats.
if [ "$(uname -r)" = "19.6.0" ]; then
brew unlink bats
fi
brew fetch --retry bats-core
brew install bats-core
# Modifications needed for some tests
if [ "$E2E_TEST" = "tests-dfx/bitcoin.bash" ]; then
brew fetch --retry bitcoin
brew install bitcoin
fi
if [ "$E2E_TEST" = "tests-dfx/build_rust.bash" ] && command -v cargo-audit &>/dev/null; then
cargo uninstall cargo-audit
fi
if [ "$E2E_TEST" = "tests-dfx/certificate.bash" ]; then
brew fetch --retry --cask mitmproxy
brew install --cask mitmproxy --no-quarantine
fi
if [ "$E2E_TEST" = "tests-dfx/deps.bash" ]; then
cargo install [email protected] --locked
cargo binstall -y ic-wasm --locked
fi
if [ "$E2E_TEST" = "tests-icx-asset/icx-asset.bash" ]; then
cargo build -p icx-asset
ICX_ASSET="$(pwd)/target/debug/icx-asset"
echo "ICX_ASSET=$ICX_ASSET" >> "$GITHUB_ENV"
fi