Skip to content

Commit e4ff6f6

Browse files
committed
Update .travis.yml
1 parent 4578d8e commit e4ff6f6

File tree

4 files changed

+13
-21
lines changed

4 files changed

+13
-21
lines changed

Diff for: .stylish-haskell.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ steps:
1111
- trailing_whitespace: {}
1212
columns: 80
1313
language_extensions:
14+
- DataKinds
1415
- EmptyCase
1516
- ExplicitForAll
1617
- FlexibleContexts

Diff for: .travis.yml

+10-20
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#
55
# For more information, see https://github.com/haskell-CI/haskell-ci
66
#
7-
# version: 0.9.20200125
7+
# version: 0.9.20200326
88
#
99
version: ~> 1.0
1010
language: c
@@ -35,8 +35,8 @@ jobs:
3535
- compiler: ghc-8.10.1
3636
addons: {"apt":{"sources":[{"sourceline":"deb http://ppa.launchpad.net/hvr/ghc/ubuntu xenial main","key_url":"https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x063dab2bdc0b3f9fcebc378bff3aeacef6f88286"}],"packages":["ghc-8.10.1","cabal-install-3.2"]}}
3737
os: linux
38-
- compiler: ghc-8.8.2
39-
addons: {"apt":{"sources":[{"sourceline":"deb http://ppa.launchpad.net/hvr/ghc/ubuntu xenial main","key_url":"https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x063dab2bdc0b3f9fcebc378bff3aeacef6f88286"}],"packages":["ghc-8.8.2","cabal-install-3.0"]}}
38+
- compiler: ghc-8.8.3
39+
addons: {"apt":{"sources":[{"sourceline":"deb http://ppa.launchpad.net/hvr/ghc/ubuntu xenial main","key_url":"https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x063dab2bdc0b3f9fcebc378bff3aeacef6f88286"}],"packages":["ghc-8.8.3","cabal-install-3.0"]}}
4040
os: linux
4141
- compiler: ghc-8.6.5
4242
addons: {"apt":{"sources":[{"sourceline":"deb http://ppa.launchpad.net/hvr/ghc/ubuntu xenial main","key_url":"https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x063dab2bdc0b3f9fcebc378bff3aeacef6f88286"}],"packages":["ghc-8.6.5","cabal-install-3.0"]}}
@@ -62,8 +62,6 @@ jobs:
6262
- compiler: ghc-7.4.2
6363
addons: {"apt":{"sources":[{"sourceline":"deb http://ppa.launchpad.net/hvr/ghc/ubuntu xenial main","key_url":"https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x063dab2bdc0b3f9fcebc378bff3aeacef6f88286"}],"packages":["ghc-7.4.2","cabal-install-3.0"]}}
6464
os: linux
65-
allow_failures:
66-
- compiler: ghc-8.10.1
6765
before_install:
6866
- HC=$(echo "/opt/$CC/bin/ghc" | sed 's/-/\//')
6967
- WITHCOMPILER="-w $HC"
@@ -81,7 +79,6 @@ before_install:
8179
- TEST=--enable-tests
8280
- BENCH=--enable-benchmarks
8381
- HEADHACKAGE=false
84-
- if [ $HCNUMVER -ge 81000 ] ; then HEADHACKAGE=true ; fi
8582
- rm -f $CABALHOME/config
8683
- |
8784
echo "verbose: normal +nowrap +markoutput" >> $CABALHOME/config
@@ -99,17 +96,6 @@ before_install:
9996
echo " prefix: $CABALHOME" >> $CABALHOME/config
10097
echo "repository hackage.haskell.org" >> $CABALHOME/config
10198
echo " url: http://hackage.haskell.org/" >> $CABALHOME/config
102-
- |
103-
if $HEADHACKAGE; then
104-
echo "allow-newer: $($HCPKG list --simple-output | sed -E 's/([a-zA-Z-]+)-[0-9.]+/*:\1/g')" >> $CABALHOME/config
105-
echo "repository head.hackage.ghc.haskell.org" >> $CABALHOME/config
106-
echo " url: https://ghc.gitlab.haskell.org/head.hackage/" >> $CABALHOME/config
107-
echo " secure: True" >> $CABALHOME/config
108-
echo " root-keys: 7541f32a4ccca4f97aea3b22f5e593ba2c0267546016b992dfadcd2fe944e55d" >> $CABALHOME/config
109-
echo " 26021a13b401500c8eb2761ca95c61f2d625bfef951b939a8124ed12ecf07329" >> $CABALHOME/config
110-
echo " f76d08be13e9a61a377a85e2fb63f4c5435d40f8feb3e12eb05905edb8cdea89" >> $CABALHOME/config
111-
echo " key-threshold: 3" >> $CABALHOME/config
112-
fi
11399
install:
114100
- ${CABAL} --version
115101
- echo "$(${HC} --version) [$(${HC} --print-project-git-commit-id 2> /dev/null || echo '?')]"
@@ -124,6 +110,8 @@ install:
124110
- touch cabal.project
125111
- |
126112
echo "packages: ." >> cabal.project
113+
- if [ $HCNUMVER -ge 80000 ] ; then echo 'package binary-orphans' >> cabal.project ; fi
114+
- "if [ $HCNUMVER -ge 80000 ] ; then echo ' ghc-options: -Werror=missing-methods' >> cabal.project ; fi"
127115
- |
128116
- "for pkg in $($HCPKG list --simple-output); do echo $pkg | sed 's/-[^-]*$//' | (grep -vE -- '^(binary-orphans)$' || true) | sed 's/^/constraints: /' | sed 's/$/ installed/' >> cabal.project.local; done"
129117
- cat cabal.project || true
@@ -132,8 +120,8 @@ install:
132120
- ${CABAL} v2-freeze $WITHCOMPILER ${TEST} ${BENCH}
133121
- "cat cabal.project.freeze | sed -E 's/^(constraints: *| *)//' | sed 's/any.//'"
134122
- rm cabal.project.freeze
135-
- ${CABAL} v2-build $WITHCOMPILER ${TEST} ${BENCH} --dep -j2 all
136-
- ${CABAL} v2-build $WITHCOMPILER --disable-tests --disable-benchmarks --dep -j2 all
123+
- travis_wait 40 ${CABAL} v2-build $WITHCOMPILER ${TEST} ${BENCH} --dep -j2 all
124+
- travis_wait 40 ${CABAL} v2-build $WITHCOMPILER --disable-tests --disable-benchmarks --dep -j2 all
137125
script:
138126
- DISTDIR=$(mktemp -d /tmp/dist-test.XXXX)
139127
# Packaging...
@@ -149,6 +137,8 @@ script:
149137
- touch cabal.project
150138
- |
151139
echo "packages: ${PKGDIR_binary_orphans}" >> cabal.project
140+
- if [ $HCNUMVER -ge 80000 ] ; then echo 'package binary-orphans' >> cabal.project ; fi
141+
- "if [ $HCNUMVER -ge 80000 ] ; then echo ' ghc-options: -Werror=missing-methods' >> cabal.project ; fi"
152142
- |
153143
- "for pkg in $($HCPKG list --simple-output); do echo $pkg | sed 's/-[^-]*$//' | (grep -vE -- '^(binary-orphans)$' || true) | sed 's/^/constraints: /' | sed 's/$/ installed/' >> cabal.project.local; done"
154144
- cat cabal.project || true
@@ -169,5 +159,5 @@ script:
169159
- rm -f cabal.project.local
170160
- ${CABAL} v2-build $WITHCOMPILER --disable-tests --disable-benchmarks all
171161

172-
# REGENDATA ("0.9.20200125",["--branches=master","binary-orphans.cabal"])
162+
# REGENDATA ("0.9.20200326",["--branches=master","binary-orphans.cabal"])
173163
# EOF

Diff for: CONTRIBUTING.md

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ Patches welcome!
77
- Regenerate `.travis.yml` with `haskell-ci regenerate` (get the latest from [GitHub haskell-ci/haskell-ci](https://github.com/haskell-ci/haskell-ci))
88

99
- Don't edit `CHANGELOG.md`, rather include a copyable entry in your pull request description. I often process pull requests in bulk, and everyone editing the `CHANGELOG.md` causes unnecessary conflicts.
10+
- For the same reason, do not edit `version` or `x-revision`
1011

1112
- I use [`stylish-haskell`](https://github.com/jaspervdj/stylish-haskell) to format imports. I encourage you to use it too, when contributing.
1213
- General code style is 4 spaces, just look around how it looks, it's not so strict.

Diff for: binary-orphans.cabal

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ tested-with:
2424
|| ==8.2.2
2525
|| ==8.4.4
2626
|| ==8.6.5
27-
|| ==8.8.2
27+
|| ==8.8.3
2828
|| ==8.10.1
2929

3030
extra-source-files: CHANGELOG.md

0 commit comments

Comments
 (0)