Skip to content

Commit

Permalink
#45 Bring Tests into CI
Browse files Browse the repository at this point in the history
  • Loading branch information
mich-master committed Jun 2, 2022
1 parent 3c65759 commit aff835c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 12 deletions.
24 changes: 12 additions & 12 deletions init-governance.sh
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
#!/bin/bash
set -euo pipefail

solana -v --url http://localhost:8899 --keypair artifacts/creator.keypair airdrop 100
solana -v --url http://localhost:8899 --keypair artifacts/payer.keypair airdrop 100
solana -v --keypair artifacts/creator.keypair airdrop 100
solana -v --keypair artifacts/payer.keypair airdrop 100

solana -v --url http://localhost:8899 --keypair artifacts/voters/voter1.keypair airdrop 100
solana -v --url http://localhost:8899 --keypair artifacts/voters/voter2.keypair airdrop 100
solana -v --url http://localhost:8899 --keypair artifacts/voters/voter3.keypair airdrop 100
solana -v --url http://localhost:8899 --keypair artifacts/voters/voter4.keypair airdrop 100
solana -v --url http://localhost:8899 --keypair artifacts/voters/voter5.keypair airdrop 100
solana -v --keypair artifacts/voters/voter1.keypair airdrop 100
solana -v --keypair artifacts/voters/voter2.keypair airdrop 100
solana -v --keypair artifacts/voters/voter3.keypair airdrop 100
solana -v --keypair artifacts/voters/voter4.keypair airdrop 100
solana -v --keypair artifacts/voters/voter5.keypair airdrop 100

spl-token --url http://localhost:8899 create-token --decimals 6 --fee-payer artifacts/payer.keypair artifacts/community-mint.keypair
spl-token --url create-token --decimals 6 --fee-payer artifacts/payer.keypair artifacts/community-mint.keypair

solana program deploy --url http://localhost:8899 --program-id artifacts/spl-governance.keypair -v deploy/spl_governance.so
solana program deploy --url --program-id artifacts/spl-governance.keypair -v deploy/spl_governance.so

solana program deploy --url http://localhost:8899 --program-id artifacts/addin-fixed-weights.keypair -v deploy/spl_governance_addin_fixed_weights.so
solana program deploy --url --program-id artifacts/addin-fixed-weights.keypair -v deploy/spl_governance_addin_fixed_weights.so

solana program deploy --url http://localhost:8899 --program-id artifacts/addin-vesting.keypair -v deploy/spl_governance_addin_vesting.so
solana program deploy --url --program-id artifacts/addin-vesting.keypair -v deploy/spl_governance_addin_vesting.so

solana program deploy --url http://localhost:8899 --program-id artifacts/maintenance.keypair -v deploy/maintenance.so
solana program deploy --url --program-id artifacts/maintenance.keypair -v deploy/maintenance.so
2 changes: 2 additions & 0 deletions run-tests.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/bin/bash
set -euo pipefail

solana set config -u ${SOLANA_URL:-http://localhost:8899}

./init-governance.sh

0 comments on commit aff835c

Please sign in to comment.