-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add
setup_tests.sh
for setting up your local machine for tests (#2594)
- Loading branch information
1 parent
4cf447a
commit 58428f8
Showing
1 changed file
with
15 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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,15 @@ | ||
#!/bin/bash | ||
|
||
active_version=$(solana -V | awk '{print $2}') | ||
This comment has been minimized.
Sorry, something went wrong. |
||
if [ "$active_version" != "1.16.0" ]; then | ||
solana-install init 1.16.0 | ||
fi | ||
|
||
git submodule update --init --recursive --depth 1 | ||
cd ts/packages/borsh && yarn --frozen-lockfile && yarn build && yarn link --force && cd ../../../ | ||
cd ts/packages/anchor && yarn --frozen-lockfile && yarn build:node && yarn link && cd ../../../ | ||
cd ts/packages/spl-associated-token-account && yarn --frozen-lockfile && yarn build:node && yarn link && cd ../../../ | ||
cd ts/packages/spl-token && yarn --frozen-lockfile && yarn build:node && yarn link && cd ../../../ | ||
cd examples/tutorial && yarn link @coral-xyz/anchor @coral-xyz/borsh && yarn --frozen-lockfile && cd ../../ | ||
cd tests && yarn link @coral-xyz/anchor @coral-xyz/borsh @coral-xyz/spl-associated-token-account @coral-xyz/spl-token && yarn --frozen-lockfile && cd .. | ||
cargo install --path cli anchor-cli --locked --force --debug |
1 comment
on commit 58428f8
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.
Successfully deployed to the following URLs:
anchor-docs – ./
anchor-docs-git-master-200ms.vercel.app
www.anchor-lang.com
anchor-docs-200ms.vercel.app
anchor-lang.com
active_version=$(solana -V | awk '{print $200000}')