Skip to content

Commit

Permalink
Add build instructions for creating the http bridge
Browse files Browse the repository at this point in the history
  • Loading branch information
KtorZ committed Mar 15, 2019
1 parent 598c3eb commit 6834766
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,10 @@ env:
- EXECUTABLE=$HOME/.local/bin/cardano-wallet-server
- EXECUTABLE_CHECKSUM=$HOME/.local/bin/cardano-wallet-server.sha256
- STACK_WORK_CACHE=$HOME/.local/stack-work.tar.gz
- PATH=$PATH:$HOME/.cargo/bin

# Do not choose a language; we provide our own build tools:
language: generic
language: rust

# Deactivate builds on branches but `master` (CI is still triggered by PRs)
branches:
Expand All @@ -29,6 +30,10 @@ cache:
- $HOME/.stack
- $HOME/.local
- $HOME/.ghc
- $HOME/.cargo

before_cache:
- rm -rf $HOME/.cargo/registry # Don't cache cargo's registry

# Ensure necessary system libraries are present:
addons:
Expand Down Expand Up @@ -64,6 +69,12 @@ jobs:
- stack --no-terminal build --test --no-run-tests --coverage --haddock --no-haddock-deps
- tar czf $STACK_WORK_CACHE .stack-work

- stage: build 🔨
name: "Http Bridge"
script:
- test "$(cardano-http-bridge --version)" = "cardano-http-bridge 0.0.1" || travis_retry cargo install --git https://github.com/input-output-hk/cardano-http-bridge.git
- cardano-http-bridge --help

- stage: checks 🔬
name: "HLint"
script:
Expand All @@ -80,6 +91,7 @@ jobs:
name: "Tests"
script:
- tar xzf $STACK_WORK_CACHE
- cardano-http-bridge --help
- stack --no-terminal test --coverage
- tar czf $STACK_WORK_CACHE .stack-work

Expand Down

0 comments on commit 6834766

Please sign in to comment.