Skip to content

Commit

Permalink
Fix automation (#81)
Browse files Browse the repository at this point in the history
  • Loading branch information
jackcmay authored Jul 7, 2020
1 parent 5080b8a commit 767741c
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 28 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ notifications:
install:
- cargo --version
- rustup install nightly
- rustup component add clippy --toolchain nightly
- docker --version
- wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
- sudo apt-add-repository "deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-10 main"
Expand Down
1 change: 1 addition & 0 deletions ci/memo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@ set -e

./do.sh update
./do.sh build memo
./do.sh clippy memo
./do.sh doc memo
./do.sh test memo
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
25 changes: 11 additions & 14 deletions ci/token.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,17 @@

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 clippy 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 @@ -47,5 +47,6 @@ async function main() {
main()
.catch(err => {
console.error(err);
process.exit(-1)
})
.then(() => process.exit());

0 comments on commit 767741c

Please sign in to comment.