Skip to content
This repository was archived by the owner on Mar 11, 2025. It is now read-only.

Commit 767741c

Browse files
authored
Fix automation (#81)
1 parent 5080b8a commit 767741c

File tree

6 files changed

+31
-28
lines changed

6 files changed

+31
-28
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ notifications:
1313
install:
1414
- cargo --version
1515
- rustup install nightly
16+
- rustup component add clippy --toolchain nightly
1617
- docker --version
1718
- wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
1819
- sudo apt-add-repository "deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-10 main"

ci/memo.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,6 @@ set -e
66

77
./do.sh update
88
./do.sh build memo
9+
./do.sh clippy memo
910
./do.sh doc memo
1011
./do.sh test memo

ci/token-swap.sh

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,22 @@
22

33
set -e
44

5-
(
6-
cd "$(dirname "$0")/.."
5+
cd "$(dirname "$0")/.."
76

8-
./do.sh update
9-
./do.sh build token-swap
10-
./do.sh doc token-swap
11-
./do.sh test token-swap
12-
cc token-swap/inc/token-swap.h -o token-swap/target/token-swap.gch
13-
)
7+
./do.sh update
8+
./do.sh build token
9+
./do.sh build token-swap
10+
./do.sh clippy token-swap
11+
./do.sh doc token-swap
12+
./do.sh test token-swap
13+
cc token-swap/inc/token-swap.h -o token-swap/target/token-swap.gch
1414

15-
(
16-
cd "$(dirname "$0")/../token/js"
15+
cd "token/js"
1716

18-
npm install
19-
npm run cluster:devnet
20-
npm run start
21-
)
17+
npm install
18+
19+
cd "../../token-swap/js"
20+
21+
npm install
22+
npm run cluster:devnet
23+
npm run start

ci/token.sh

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,17 @@
22

33
set -e
44

5-
(
6-
cd "$(dirname "$0")/.."
5+
cd "$(dirname "$0")/.."
76

8-
./do.sh update
9-
./do.sh build token
10-
./do.sh doc token
11-
./do.sh test token
12-
cc token/inc/token.h -o token/target/token.gch
13-
)
7+
./do.sh update
8+
./do.sh build token
9+
./do.sh clippy token
10+
./do.sh doc token
11+
./do.sh test token
12+
cc token/inc/token.h -o token/target/token.gch
1413

15-
(
16-
cd "$(dirname "$0")/../token/js"
14+
cd "$(dirname "$0")/../token/js"
1715

18-
npm install
19-
npm run cluster:devnet
20-
npm run start
21-
)
16+
npm install
17+
npm run cluster:devnet
18+
npm run start

token-swap/js/cli/main.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,6 @@ async function main() {
3030
main()
3131
.catch(err => {
3232
console.error(err);
33+
process.exit(-1)
3334
})
3435
.then(() => process.exit());

token/js/cli/main.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,5 +47,6 @@ async function main() {
4747
main()
4848
.catch(err => {
4949
console.error(err);
50+
process.exit(-1)
5051
})
5152
.then(() => process.exit());

0 commit comments

Comments
 (0)