Skip to content

Commit

Permalink
adjust jobs condition for release builds
Browse files Browse the repository at this point in the history
  • Loading branch information
KtorZ committed May 24, 2019
1 parent cf5418a commit 8977931
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ jobs:
#
################################################################################
- stage: build dependencies 🔩
if: type != pull_request AND branch = master
if: (type != pull_request AND branch = master) OR (tag =~ ^v)
name: "Compiling dependencies"
script:
- mkdir -p ~/.local/bin
Expand All @@ -140,7 +140,7 @@ jobs:
- cardano-http-bridge --version

- stage: cache 💾
if: type != pull_request AND branch = master
if: (type != pull_request AND branch = master) OR (tag =~ ^v)
name: "Caching Dependencies"
script:
- travis_retry curl -L https://get.haskellstack.org/stable/linux-x86_64.tar.gz | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'
Expand All @@ -150,34 +150,34 @@ jobs:
- tar czf $STACK_WORK_CACHE .stack-work

- stage: build project 🔨
if: type != pull_request AND branch = master
if: (type != pull_request AND branch = master) OR (tag =~ ^v)
name: "Compiling Project"
script:
- stack --no-terminal build --fast --test --no-run-tests --bench --no-run-benchmarks --haddock --no-haddock-deps --coverage
- tar czf $STACK_WORK_CACHE .stack-work lib/**/.stack-work

- stage: checks 🔬
if: type != pull_request AND branch = master
if: (type != pull_request AND branch = master) OR (tag =~ ^v)
name: "Stylish-Haskell"
env: NO_CACHE=True
script:
- travis_retry 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: checks 🔬
if: type != pull_request AND branch = master
if: (type != pull_request AND branch = master) OR (tag =~ ^v)
name: "HLint"
script:
- travis_retry curl -sSL https://raw.github.com/ndmitchell/hlint/master/misc/run.sh | sh -s .

- stage: checks 🔬
if: type != pull_request AND branch = master
if: (type != pull_request AND branch = master) OR (tag =~ ^v)
name: "Weeder"
script:
- travis_retry curl -sSL https://raw.github.com/ndmitchell/weeder/master/misc/travis.sh | sh -s .

- stage: checks 🔬
if: type != pull_request AND branch = master
if: (type != pull_request AND branch = master) OR (tag =~ ^v)
name: "Tests"
script:
- export NETWORK=testnet
Expand All @@ -187,7 +187,7 @@ jobs:
- tar czf $STACK_WORK_CACHE .stack-work lib/**/.stack-work lib/**/*.tix

- stage: deploy 🚀
if: type != pull_request AND branch = master
if: (type != pull_request AND branch = master) OR (tag =~ ^v)
name: "Haddock"
script:
- mkdir -p haddock/edge api/edge
Expand All @@ -199,7 +199,7 @@ jobs:
- git push -f -q https://WilliamKingNoel-Bot:[email protected]/input-output-hk/cardano-wallet gh-pages &>/dev/null

- stage: deploy 🚀
if: type != pull_request AND branch = master
if: (type != pull_request AND branch = master) OR (tag =~ ^v)
name: "Coveralls"
script:
- export LTS=$(cat stack.yaml | grep resolver) # Extract the LTS from the stack.yaml
Expand Down

0 comments on commit 8977931

Please sign in to comment.