@@ -37,21 +37,44 @@ before_cache:
37
37
matrix :
38
38
include :
39
39
- compiler : " ghc-8.0.2"
40
- addons : {apt: {packages: [ghc-ppa-tools,cabal-install-head ,ghc-8.0.2], sources: [hvr-ghc]}}
40
+ addons : {apt: {packages: [ghc-ppa-tools,cabal-install-2.4 ,ghc-8.0.2], sources: [hvr-ghc]}}
41
41
- compiler : " ghc-8.2.2"
42
- addons : {apt: {packages: [ghc-ppa-tools,cabal-install-head ,ghc-8.2.2], sources: [hvr-ghc]}}
42
+ addons : {apt: {packages: [ghc-ppa-tools,cabal-install-2.4 ,ghc-8.2.2], sources: [hvr-ghc]}}
43
43
- compiler : " ghc-8.4.4"
44
- addons : {apt: {packages: [ghc-ppa-tools,cabal-install-head,ghc-8.4.4], sources: [hvr-ghc]}}
45
- - compiler : " ghc-8.6.4"
46
- addons : {apt: {packages: [ghc-ppa-tools,cabal-install-head,ghc-8.6.4], sources: [hvr-ghc]}}
47
- - compiler : " ghc-head"
48
- env : GHCHEAD=true
49
- addons : {apt: {packages: [ghc-ppa-tools,cabal-install-head,ghc-head], sources: [hvr-ghc]}}
44
+ addons : {apt: {packages: [ghc-ppa-tools,cabal-install-2.4,ghc-8.4.4], sources: [hvr-ghc]}}
45
+ - compiler : " ghc-8.6.5"
46
+ addons : {apt: {packages: [ghc-ppa-tools,cabal-install-2.4,ghc-8.6.5], sources: [hvr-ghc]}}
47
+ - compiler : " ghc-8.8.1"
48
+ addons : {apt: {packages: [ghc-ppa-tools,cabal-install-3.0,ghc-8.8.1], sources: [hvr-ghc]}}
49
+ - compiler : " ghc-8.10.1"
50
+ env : HEADHACKAGE=true
51
+ addons : {apt: {packages: [ghc-ppa-tools,cabal-install-3.0,ghc-8.10.1], sources: [hvr-ghc]}}
52
+ - env :
53
+ - GHCHEAD=true
54
+ - HEADHACKAGE=true
55
+ - GHC_ZIP='https://gitlab.haskell.org/ghc/ghc/-/jobs/artifacts/master/download?job=validate-x86_64-linux-deb9-hadrian'
56
+ addons : {apt: {packages: [ghc-ppa-tools,cabal-install-head], sources: [hvr-ghc]}}
50
57
51
58
allow_failures :
52
- - compiler : " ghc-head"
59
+ - env :
60
+ - GHCHEAD=true
61
+ - HEADHACKAGE=true
62
+ - GHC_ZIP='https://gitlab.haskell.org/ghc/ghc/-/jobs/artifacts/master/download?job=validate-x86_64-linux-deb9-hadrian'
53
63
54
64
before_install :
65
+ - GHCHEAD=${GHCHEAD-false}
66
+ - |
67
+ if $GHCHEAD; then
68
+ travis_retry curl -L $GHC_ZIP --output artifact.zip
69
+ unzip artifact.zip
70
+ tar xpf ghc.tar.xz --strip-components 1
71
+ mkdir -p $HOME/ghc-head
72
+ sed -i -e 's/lld/gold/g' lib/settings
73
+ ./configure --prefix=$HOME/ghc-head
74
+ make V=1 install
75
+ PATH=$HOME/ghc-head/bin:$PATH
76
+ CC=ghc
77
+ fi
55
78
- HC=${CC}
56
79
- HCPKG=${HC/ghc/ghc-pkg}
57
80
- unset CC
@@ -69,12 +92,13 @@ install:
69
92
- HADDOCK=${HADDOCK-true}
70
93
- INSTALLED=${INSTALLED-true}
71
94
- GHCHEAD=${GHCHEAD-false}
95
+ - HEADHACKAGE=${HEADHACKAGE-false}
72
96
- travis_retry cabal update -v
73
97
- " sed -i.bak 's/^jobs:/-- jobs:/' ${HOME}/.cabal/config"
74
98
- rm -fv cabal.project cabal.project.local
75
99
# Overlay Hackage Package Index for GHC HEAD: https://github.com/hvr/head.hackage
76
100
- |
77
- if $GHCHEAD ; then
101
+ if $HEADHACKAGE ; then
78
102
sed -i.bak 's/-- allow-newer:.*/allow-newer: *:base, *:template-haskell, *:ghc, *:Cabal/' ${HOME}/.cabal/config
79
103
80
104
echo 'repository head.hackage' >> ${HOME}/.cabal/config
@@ -103,7 +127,7 @@ install:
103
127
# any command which exits with a non-zero exit code causes the build to fail.
104
128
script :
105
129
# test that source-distributions can be generated
106
- - (cd "." && cabal sdist)
130
+ - (cd "." && cabal new- sdist)
107
131
- mv "."/dist-newstyle/sdist/ghc-typelits-extra-*.tar.gz ${DISTDIR}/
108
132
- cd ${DISTDIR} || false
109
133
- find . -maxdepth 1 -name '*.tar.gz' -exec tar -xvf '{}' \;
0 commit comments