Skip to content

Commit

Permalink
Add a justfile for setting up your local machine for tests
Browse files Browse the repository at this point in the history
I was about to work on a PR to address #2586 and was trying to get my
tests set up so that I could test locally. I found it pretty cumbersome
to copy all of the commands from the ci files in `.github` (maybe
there's a better way? in which case, this isn't necessary), so I threw
them in a `justfile` in case it'd be helpful for others.
  • Loading branch information
metaproph3t committed Aug 10, 2023
1 parent 4cf447a commit ab664af
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions justfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
setup-for-tests:
solana-install init 1.16.0 && \
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

0 comments on commit ab664af

Please sign in to comment.