-
Notifications
You must be signed in to change notification settings - Fork 217
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #503 from input-output-hk/KtorZ/deploy-jormungandr
Review deployment script to include both jormungandr and http-bridge
- Loading branch information
Showing
3 changed files
with
43 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,8 +10,12 @@ git: | |
|
||
env: | ||
global: | ||
- WALLET_CLI=$HOME/.local/bin/cardano-wallet | ||
- WALLET_CLI_CHECKSUM=$HOME/.local/bin/cardano-wallet.sha256 | ||
- WALLET_CLI_JORMUNGANDR=$HOME/.local/bin/cardano-wallet-jormungandr | ||
- WALLET_CLI_JORMUNGANDR_CHECKSUM=$HOME/.local/bin/cardano-wallet-jormungandr.sha256 | ||
- WALLET_CLI_JORMUNGANDR_TARGZ=$HOME/.local/bin/cardano-wallet-jormungandr.tar.gz | ||
- WALLET_CLI_HTTP_BRIDGE=$HOME/.local/bin/cardano-wallet-http-bridge | ||
- WALLET_CLI_HTTP_BRIDGE_CHECKSUM=$HOME/.local/bin/cardano-wallet-http-bridge.sha256 | ||
- WALLET_CLI_HTTP_BRIDGE_TARGZ=$HOME/.local/bin/cardano-wallet-http-bridge.tar.gz | ||
- STACK_WORK_CACHE=$HOME/.stack/stack-work.tar.gz | ||
- PATH=$PATH:$HOME/.local/bin | ||
- LOCAL_MIX_DIR=.stack-work/dist/x86_64-linux/Cabal-2.4.0.1/hpc/ | ||
|
@@ -176,9 +180,7 @@ jobs: | |
script: | ||
- travis_retry curl -L -o hermes-testnet.tar.gz https://raw.githubusercontent.com/input-output-hk/cardano-wallet/master/lib/http-bridge/test/data/cardano-http-bridge/hermes-testnet.tar.gz | ||
- tar xzf hermes-testnet.tar.gz -C $HOME | ||
- stack --no-terminal test --fast --haddock --no-haddock-deps --coverage cardano-wallet-core cardano-wallet-cli cardano-wallet-launcher bech32 text-class | ||
- travis_wait 30 stack --no-terminal test --fast --haddock --no-haddock-deps --coverage cardano-wallet-http-bridge | ||
- travis_wait 30 stack --no-terminal test --fast --haddock --no-haddock-deps --coverage cardano-wallet-jormungandr | ||
- travis_wait 45 stack --no-terminal test --fast --haddock --no-haddock-deps --coverage --jobs 1 | ||
- find . -path *.tix ! -path *.stack-work* | ||
- tar czf $STACK_WORK_CACHE .stack-work lib/**/.stack-work lib/**/*.tix | ||
|
||
|
@@ -223,11 +225,24 @@ jobs: | |
if: tag =~ ^v | ||
name: "Executables" | ||
script: | ||
# Create binaries and checksums | ||
# Create optimized binaries and checksums | ||
- stack clean | ||
- stack --no-terminal build | ||
- stack --no-terminal install | ||
- sha256sum $WALLET_CLI | head -c 64 > $WALLET_CLI_CHECKSUM | ||
- ls $WALLET_CLI | ||
- ls $WALLET_CLI_CHECKSUM | ||
|
||
# Bundle cardano-wallet-jormungandr | ||
- cp $WALLET_CLI_JORMUNGANDR cardano-wallet | ||
- tar czf $WALLET_CLI_JORMUNGANDR_TARGZ cardano-wallet | ||
- sha256sum $WALLET_CLI_JORMUNGANDR | head -c 64 > $WALLET_CLI_JORMUNGANDR_CHECKSUM | ||
- ls $WALLET_CLI_JORMUNGANDR_TARGZ | ||
- ls $WALLET_CLI_JORMUNGANDR_CHECKSUM | ||
|
||
# Bundle cardano-wallet-http-bridge | ||
- cp $WALLET_CLI_HTTP_BRIDGE cardano-wallet | ||
- tar czf $WALLET_CLI_HTTP_BRIDGE_TARGZ cardano-wallet | ||
- sha256sum $WALLET_CLI_HTTP_BRIDGE | head -c 64 > $WALLET_CLI_HTTP_BRIDGE_CHECKSUM | ||
- ls $WALLET_CLI_HTTP_BRIDGE_TARGZ | ||
- ls $WALLET_CLI_HTTP_BRIDGE_CHECKSUM | ||
|
||
# Deploy documentation snapshot | ||
- mkdir -p haddock/$TRAVIS_TAG api/$TRAVIS_TAG | ||
|
@@ -236,15 +251,17 @@ jobs: | |
- git checkout --orphan gh-pages-deploy && git reset | ||
- git add api haddock && git commit -m $TRAVIS_COMMIT | ||
- git checkout gh-pages && git merge -X theirs --no-commit --no-ff --allow-unrelated-histories - && git commit --allow-empty --no-edit | ||
- git push -f -q https://WilliamKingNoel-Bot:[email protected]/input-output-hk/cardano-wallet gh-pages &>/dev/null | ||
- travis_retry git push -f -q https://WilliamKingNoel-Bot:[email protected]/input-output-hk/cardano-wallet gh-pages &>/dev/null | ||
deploy: | ||
provider: releases | ||
api_key: $GITHUB_ACCESS_TOKEN | ||
draft: true # Allow editing the release before publishing it officially on GitHub | ||
skip_cleanup: true # Make sure that files from the previous stages aren't cleaned up | ||
file: | ||
- $WALLET_CLI | ||
- $WALLET_CLI_CHECKSUM | ||
- $WALLET_CLI_JORMUNGANDR_TARGZ | ||
- $WALLET_CLI_JORMUNGANDR_CHECKSUM | ||
- $WALLET_CLI_HTTP_BRIDGE_TARGZ | ||
- $WALLET_CLI_HTTP_BRIDGE_CHECKSUM | ||
on: | ||
repo: input-output-hk/cardano-wallet | ||
branch: master | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters