-
Notifications
You must be signed in to change notification settings - Fork 213
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
Extract Http-Bridge specifics into a dedicated package #212
Changes from all commits
6943cb3
43b3292
dd8a1bd
088c8cc
b93585f
f77ebc1
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -64,7 +64,7 @@ jobs: | |
name: "Compiling" | ||
script: | ||
- mkdir -p ~/.local/bin | ||
- travis_retry curl -L -o cardano-node-simple.tar.gz https://raw.githubusercontent.com/input-output-hk/cardano-wallet/master/lib/core/test/data/cardano-node-simple/cardano-node-simple-3.0.1.tar.gz | ||
- travis_retry curl -L -o cardano-node-simple.tar.gz https://raw.githubusercontent.com/input-output-hk/cardano-wallet/KtorZ/extract-http-bridge/lib/http-bridge/test/data/cardano-node-simple/cardano-node-simple-3.0.1.tar.gz | ||
- tar xzf cardano-node-simple.tar.gz -C $HOME/.local/bin | ||
- cardano-node-simple --version | ||
- test "$(cardano-http-bridge --version)" = "cardano-http-bridge 0.0.1" || travis_retry cargo install --force --branch cardano-wallet-integration --git https://github.com/KtorZ/cardano-http-bridge.git | ||
|
@@ -93,14 +93,14 @@ jobs: | |
script: | ||
- export NETWORK=mainnet | ||
- tar xzf $STACK_WORK_CACHE | ||
- stack --no-terminal test cardano-wallet-core:unit | ||
- stack --no-terminal test cardano-wallet-http-bridge:unit | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. So in CI, we have two jobs running tests. One for testnet which run everything including integration tests. And another one for mainnet, to run a couple of unit tests with a different protocol magic. Yet, we only pattern-match on the protocol magic (and actually, have access to it) in the bridge code so there's no need to re-run the core tests on mainnet. |
||
|
||
- stage: checks 🔬 | ||
name: "Tests (testnet)" | ||
script: | ||
- export NETWORK=testnet | ||
- tar xzf $STACK_WORK_CACHE | ||
- travis_retry curl -L -o hermes-testnet.tar.gz https://raw.githubusercontent.com/input-output-hk/cardano-wallet/master/lib/core/test/data/cardano-http-bridge/hermes-testnet.tar.gz | ||
- travis_retry curl -L -o hermes-testnet.tar.gz https://raw.githubusercontent.com/input-output-hk/cardano-wallet/KtorZ/extract-http-bridge/lib/http-bridge/test/data/cardano-http-bridge/hermes-testnet.tar.gz | ||
- tar xzf hermes-testnet.tar.gz -C $HOME | ||
- stack --no-terminal test --coverage | ||
- tar czf $STACK_WORK_CACHE .stack-work lib/**/.stack-work | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Again, temporary, will change after merged.