Skip to content

Commit

Permalink
Merge pull request #284 from input-output-hk/anviking/242/jormungandr…
Browse files Browse the repository at this point in the history
…-ci-2

[TEST] Build Jörmungandr on CI - another take
  • Loading branch information
KtorZ committed May 20, 2019
2 parents 56019ea + f641de2 commit 89d27d1
Showing 1 changed file with 16 additions and 10 deletions.
26 changes: 16 additions & 10 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,36 +46,42 @@ addons:

# Define custom set of stages
stages:
- build 🔨
- build dependencies 🔩
- build project 🔨
- checks 🔬
- deploy 🚀

jobs:
fast_finish: true
include:
- stage: build 🔨
- stage: build dependencies 🔩
name: "Compiling dependencies"
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/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.2" || travis_retry cargo install --force --branch cardano-wallet-integration --git https://github.com/KtorZ/cardano-http-bridge.git
- test "$(jormungandr --version)" = "jormungandr 0.0.1" || travis_retry cargo install --force jormungandr --git https://github.com/input-output-hk/jormungandr.git
- cardano-http-bridge --version

- stage: build dependencies 🔩
name: "Stylish-Haskell"
env: NO_CACHE=True
script:
- curl -sSL https://raw.github.com/jaspervdj/stylish-haskell/master/scripts/latest.sh | sh -s $(find . -type f -name "*.hs" ! -path "*.stack-work*") -i
- git diff --exit-code # Exit if Stylish-Haskell yields any diff

- stage: build 🔨
name: "Compiling"
- stage: build project 🔨
name: "Compiling project"
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/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.2" || travis_retry cargo install --force --branch cardano-wallet-integration --git https://github.com/KtorZ/cardano-http-bridge.git
- cardano-http-bridge --version
- travis_retry curl -L https://get.haskellstack.org/stable/linux-x86_64.tar.gz | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'
- stack --no-terminal setup
- stack --no-terminal build --only-snapshot
- stack --no-terminal build --only-dependencies
- stack --no-terminal build --test --no-run-tests --bench --no-run-benchmarks --coverage --haddock --no-haddock-deps
- tar czf $STACK_WORK_CACHE .stack-work lib/**/.stack-work
- stack --no-terminal install

- stage: checks 🔬
name: "HLint"
Expand Down

0 comments on commit 89d27d1

Please sign in to comment.