Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix automation #81

Merged
merged 3 commits into from
Jul 7, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -44,5 +44,6 @@ async function main() {
main()
.catch(err => {
console.error(err);
process.exit(-1)
})
.then(() => process.exit());