Skip to content

Commit

Permalink
Fix automation
Browse files Browse the repository at this point in the history
  • Loading branch information
jackcmay committed Jul 7, 2020
1 parent 12f4fab commit 5f158dd
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 28 deletions.
30 changes: 16 additions & 14 deletions ci/token-swap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,22 @@

set -e

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

./do.sh update
./do.sh build token-swap
./do.sh doc token-swap
./do.sh test token-swap
cc token-swap/inc/token-swap.h -o token-swap/target/token-swap.gch
)
./do.sh update
./do.sh build token
./do.sh build token-swap
./do.sh clippy token-swap
./do.sh doc token-swap
./do.sh test token-swap
cc token-swap/inc/token-swap.h -o token-swap/target/token-swap.gch

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

npm install
npm run cluster:devnet
npm run start
)
npm install

cd "../../token-swap/js"

npm install
npm run cluster:devnet
npm run start
24 changes: 10 additions & 14 deletions ci/token.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,16 @@

set -e

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

./do.sh update
./do.sh build token
./do.sh doc token
./do.sh test token
cc token/inc/token.h -o token/target/token.gch
)
./do.sh update
./do.sh build token
./do.sh doc token
./do.sh test token
cc token/inc/token.h -o token/target/token.gch

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

npm install
npm run cluster:devnet
npm run start
)
npm install
npm run cluster:devnet
npm run start
1 change: 1 addition & 0 deletions token-swap/js/cli/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,6 @@ async function main() {
main()
.catch(err => {
console.error(err);
process.exit(-1)
})
.then(() => process.exit());
1 change: 1 addition & 0 deletions token/js/cli/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,6 @@ async function main() {
main()
.catch(err => {
console.error(err);
process.exit(-1)
})
.then(() => process.exit());

0 comments on commit 5f158dd

Please sign in to comment.