Skip to content

Commit

Permalink
Merge pull request #300 from barrucadu/ci-fixes
Browse files Browse the repository at this point in the history
Fix CI issues
  • Loading branch information
barrucadu committed Oct 4, 2019
2 parents 1a4f99d + 290aef7 commit eed31f9
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 8 deletions.
6 changes: 6 additions & 0 deletions .hlint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,9 @@
- ignore: {name: Reduce duplication, within: Integration.MultiThreaded}
- ignore: {name: Reduce duplication, within: Integration.SCT}
- ignore: {name: Reduce duplication, within: Integration.SingleThreaded}

# These are tests of the laws
- ignore: {name: "Use <$>", within: Examples.ClassLaws}
- ignore: {name: "Alternative law, right identity", within: Examples.ClassLaws}
- ignore: {name: "Alternative law, left identity", within: Examples.ClassLaws}
- ignore: {name: "Monoid law, right identity", within: Unit.Properties}
8 changes: 4 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,16 @@ jobs:
env: MODE=lint
- stage: test
if: type != pull_request
env: MODE=test RESOLVER=lts-9.0 # GHC 8.0
env: MODE=test RESOLVER=lts-9.0 STACKVER=1.6.1 # GHC 8.0
- stage: test
if: type != pull_request
env: MODE=test RESOLVER=lts-10.0 # GHC 8.2
env: MODE=test RESOLVER=lts-10.0 STACKVER=1.6.1 # GHC 8.2
- stage: test
if: type != pull_request
env: MODE=test RESOLVER=lts-12.0 # GHC 8.4
env: MODE=test RESOLVER=lts-12.0 STACKVER=1.7.1 # GHC 8.4
- stage: test
if: type != pull_request
env: MODE=test RESOLVER=lts-13.3 # GHC 8.6 - .3 because hedgehog and stylish-haskell aren't in .0
env: MODE=test RESOLVER=lts-13.3 STACKVER=1.9.3 # GHC 8.6 - .3 because hedgehog and stylish-haskell aren't in .0
- stage: test
if: type != pull_request
env: MODE=test RESOLVER=nightly
Expand Down
2 changes: 1 addition & 1 deletion .travis/lint
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ $stack install stylish-haskell

$stack build

curl -sL https://raw.github.com/ndmitchell/weeder/master/misc/travis.sh | sh -s .
#curl -sL https://raw.github.com/ndmitchell/weeder/master/misc/travis.sh | sh -s .
curl -sL https://raw.github.com/ndmitchell/hlint/master/misc/travis.sh | sh -s .

$stack exec ./style.sh
Expand Down
9 changes: 7 additions & 2 deletions .travis/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,13 @@ stack="stack --no-terminal"

mkdir -p ~/.local/bin

curl -L https://www.stackage.org/stack/linux-x86_64 | \
tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'
if [[ -z "$STACKVER" ]]; then
curl -L https://www.stackage.org/stack/linux-x86_64 | \
tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'
else
curl -L https://github.com/commercialhaskell/stack/releases/download/v$STACKVER/stack-$STACKVER-linux-x86_64.tar.gz | \
tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'
fi

if [[ -e ".travis/$RESOLVER.yaml" ]]; then
mv ".travis/$RESOLVER.yaml" stack.yaml
Expand Down
2 changes: 1 addition & 1 deletion .travis/test
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

source .travis/setup.sh

$stack build --ghc-options=-Werror
$stack build --ghc-options="-Werror -Wno-unused-imports"

cd dejafu-tests
$stack exec -- dejafu-tests +RTS -s

0 comments on commit eed31f9

Please sign in to comment.