Skip to content

Commit fbcb928

Browse files
committed
Update .travis.yml (updates hlint version)
1 parent bd16c67 commit fbcb928

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

.hlint.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99
name: "Use newtype instead of data"
1010
within:
1111
- Data.Aeson.Types.Internal
12+
- ignore:
13+
name: "Use <=<"
14+
within:
15+
- Data.Aeson.Types.FromJSON
1216

1317
# CPP confuses
1418
- ignore:

.travis.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,13 @@
22
#
33
# haskell-ci '--config=cabal.haskell-ci' 'cabal.project'
44
#
5+
# To regenerate the script (for example after adjusting tested-with) run
6+
#
7+
# haskell-ci regenerate
8+
#
59
# For more information, see https://github.com/haskell-CI/haskell-ci
610
#
7-
# version: 0.9.20200406
11+
# version: 0.10.1
812
#
913
version: ~> 1.0
1014
language: c
@@ -98,7 +102,7 @@ install:
98102
- cat $CABALHOME/config
99103
- rm -fv cabal.project cabal.project.local cabal.project.freeze
100104
- travis_retry ${CABAL} v2-update -v
101-
- if [ $HCNUMVER -ge 80800 ] && [ $HCNUMVER -lt 81000 ] ; then HLINTVER=$(cd /tmp && (${CABAL} v2-install -v $WITHCOMPILER --dry-run hlint --constraint='hlint ==2.2.*' | perl -ne 'if (/\bhlint-(\d+(\.\d+)*)\b/) { print "$1"; last; }')); echo "HLint version $HLINTVER" ; fi
105+
- if [ $HCNUMVER -ge 80800 ] && [ $HCNUMVER -lt 81000 ] ; then HLINTVER=$(cd /tmp && (${CABAL} v2-install -v $WITHCOMPILER --dry-run hlint --constraint='hlint ==3.1.*' | perl -ne 'if (/\bhlint-(\d+(\.\d+)*)\b/) { print "$1"; last; }')); echo "HLint version $HLINTVER" ; fi
102106
- "if [ $HCNUMVER -ge 80800 ] && [ $HCNUMVER -lt 81000 ] ; then if [ ! -e $HOME/.hlint/hlint-$HLINTVER/hlint ]; then echo \"Downloading HLint version $HLINTVER\"; mkdir -p $HOME/.hlint; curl --write-out 'Status Code: %{http_code} Redirects: %{num_redirects} Total time: %{time_total} Total Dsize: %{size_download}\\n' --silent --location --output $HOME/.hlint/hlint-$HLINTVER.tar.gz \"https://github.com/ndmitchell/hlint/releases/download/v$HLINTVER/hlint-$HLINTVER-x86_64-linux.tar.gz\"; tar -xzv -f $HOME/.hlint/hlint-$HLINTVER.tar.gz -C $HOME/.hlint; fi ; fi"
103107
- if [ $HCNUMVER -ge 80800 ] && [ $HCNUMVER -lt 81000 ] ; then mkdir -p $CABALHOME/bin && ln -sf "$HOME/.hlint/hlint-$HLINTVER/hlint" $CABALHOME/bin/hlint ; fi
104108
- if [ $HCNUMVER -ge 80800 ] && [ $HCNUMVER -lt 81000 ] ; then hlint --version ; fi
@@ -182,5 +186,5 @@ script:
182186
- cd $TOP || false
183187
- ${CABAL} v2-build $WITHCOMPILER --project-file=cabal.bench.project all
184188

185-
# REGENDATA ("0.9.20200406",["--config=cabal.haskell-ci","cabal.project"])
189+
# REGENDATA ("0.10.1",["--config=cabal.haskell-ci","cabal.project"])
186190
# EOF

0 commit comments

Comments
 (0)