10
10
# release of a major GHC version. Setting HPVER implictly sets
11
11
# GHCVER. Omit lines with versions you don't need/want testing for.
12
12
env :
13
- # - GHCVER=6.12.3
14
- - GHCVER=7.0.1 AESONVER=0.6.0.0
15
- # - GHCVER=7.0.2
16
- # - GHCVER=7.0.3
17
- # - GHCVER=7.0.4
18
- # - GHCVER=7.2.1
19
- # - GHCVER=7.2.2
20
- # - GHCVER=7.4.1
21
- # - GHCVER=7.4.2
22
- # - GHCVER=7.6.1
23
- - GHCVER=7.6.2 AESONVER=0.7.0.0
24
- - GHCVER=7.6.3 AESONVER=0.8.0.0
25
- # - GHCVER=7.8.1
13
+ # - CABALVER=1.16 GHCVER=6.12.3
14
+ - CABALVER=1.16 GHCVER=7.0.1 AESONVER=0.6.0.0
15
+ # - CABALVER=1.16 GHCVER=7.0.2
16
+ # - CABALVER=1.16 GHCVER=7.0.3
17
+ # - CABALVER=1.16 GHCVER=7.0.4
18
+ # - CABALVER=1.16 GHCVER=7.2.1
19
+ # - CABALVER=1.16 GHCVER=7.2.2
20
+ # - CABALVER=1.16 GHCVER=7.4.1
21
+ # - CABALVER=1.16 GHCVER=7.4.2
22
+ # - CABALVER=1.16 GHCVER=7.6.1
23
+ - CABALVER=1.16 GHCVER=7.6.2 AESONVER=0.7.0.4
24
+ - CABALVER=1.18 GHCVER=7.6.3 AESONVER=0.8.0.2
25
+ # - CABALVER=1.18 GHCVER=7.8.1
26
+ # - CABALVER=1.18 GHCVER=7.8.2
27
+ # - CABALVER=1.18 GHCVER=7.8.3
28
+ # - CABALVER=1.22 GHCVER=7.10.1
29
+ # - CABALVER=head GHCVER=head
26
30
- HPVER=2014.2.0.0
27
31
# - HPVER=2013.2.0.0
28
32
# - HPVER=2012.4.0.0
@@ -36,22 +40,27 @@ before_install:
36
40
" " ) ;;
37
41
38
42
" 2014.2.0.0" )
43
+ export CABALVER=1.18 ;
39
44
export GHCVER=7.8.3 ;
40
45
echo "constraints:async==2.0.1.5,attoparsec==0.10.4.0,case-insensitive==1.1.0.3,fgl==5.5.0.1,GLUT==2.5.1.1,GLURaw==1.4.0.1,haskell-src==1.0.1.6,hashable==1.2.2.0,html==1.0.1.2,HTTP==4000.2.10,HUnit==1.2.5.2,mtl==2.1.3.1,network==2.4.2.3,OpenGL==2.9.2.0,OpenGLRaw==1.5.0.0,parallel==3.2.0.4,parsec==3.1.5,primitive==0.5.2.1,QuickCheck==2.6,random==1.0.1.1,regex-base==0.93.2,regex-compat==0.95.1,regex-posix==0.95.2,split==0.2.2,stm==2.4.2,syb==0.4.1,text==1.1.0.0,transformers==0.3.0.0,unordered-containers==0.2.4.0,vector==0.10.9.1,xhtml==3000.2.1,zlib==0.5.4.1" > cabal.config ;;
41
46
42
47
" 2013.2.0.0" )
48
+ export CABALVER=1.16 ;
43
49
export GHCVER=7.6.3 ;
44
50
echo "constraints:async==2.0.1.4,attoparsec==0.10.4.0,case-insensitive==1.0.0.1,cgi==3001.1.7.5,fgl==5.4.2.4,GLUT==2.4.0.0,GLURaw==1.3.0.0,haskell-src==1.0.1.5,hashable==1.1.2.5,html==1.0.1.2,HTTP==4000.2.8,HUnit==1.2.5.2,mtl==2.1.2,network==2.4.1.2,OpenGL==2.8.0.0,OpenGLRaw==1.3.0.0,parallel==3.2.0.3,parsec==3.1.3,QuickCheck==2.6,random==1.0.1.1,regex-base==0.93.2,regex-compat==0.95.1,regex-posix==0.95.2,split==0.2.2,stm==2.4.2,syb==0.4.0,text==0.11.3.1,transformers==0.3.0.0,unordered-containers==0.2.3.0,vector==0.10.0.1,xhtml==3000.2.1,zlib==0.5.4.1" > cabal.config ;;
45
51
46
52
" 2012.4.0.0" )
53
+ export CABALVER=1.16 ;
47
54
export GHCVER=7.6.2 ;
48
55
echo "constraints:async==2.0.1.3,cgi==3001.1.7.4,fgl==5.4.2.4,GLUT==2.1.2.1,haskell-src==1.0.1.5,html==1.0.1.2,HTTP==4000.2.5,HUnit==1.2.5.1,mtl==2.1.2,network==2.3.1.0,OpenGL==2.2.3.1,parallel==3.2.0.3,parsec==3.1.3,QuickCheck==2.5.1.1,random==1.0.1.1,regex-base==0.93.2,regex-compat==0.95.1,regex-posix==0.95.2,split==0.2.1.1,stm==2.4,syb==0.3.7,text==0.11.2.3,transformers==0.3.0.0,vector==0.10.0.1,xhtml==3000.2.1,zlib==0.5.4.0" > cabal.config ;;
49
56
50
57
" 2012.2.0.0" )
58
+ export CABALVER=1.16 ;
51
59
export GHCVER=7.4.1 ;
52
60
echo "constraints:cgi==3001.1.7.4,fgl==5.4.2.4,GLUT==2.1.2.1,haskell-src==1.0.1.5,html==1.0.1.2,HTTP==4000.2.3,HUnit==1.2.4.2,mtl==2.1.1,network==2.3.0.13,OpenGL==2.2.3.1,parallel==3.2.0.2,parsec==3.1.2,QuickCheck==2.4.2,random==1.0.1.1,regex-base==0.93.2,regex-compat==0.95.1,regex-posix==0.95.1,stm==2.3,syb==0.3.6.1,text==0.11.2.0,transformers==0.3.0.0,xhtml==3000.2.1,zlib==0.5.3.3" > cabal.config ;;
53
61
54
62
" 2011.4.0.0" )
63
+ export CABALVER=1.16 ;
55
64
export GHCVER=7.0.4 ;
56
65
echo "constraints:cgi==3001.1.7.4,fgl==5.4.2.4,GLUT==2.1.2.1,haskell-src==1.0.1.4,html==1.0.1.2,HUnit==1.2.4.2,network==2.3.0.5,OpenGL==2.2.3.0,parallel==3.1.0.1,parsec==3.1.1,QuickCheck==2.4.1.1,regex-base==0.93.2,regex-compat==0.95.1,regex-posix==0.95.1,stm==2.2.0.1,syb==0.3.3,xhtml==3000.2.0.4,zlib==0.5.3.1,HTTP==4000.1.2,deepseq==1.1.0.2" > cabal.config ;;
57
66
@@ -63,52 +72,55 @@ before_install:
63
72
esac
64
73
65
74
if [ -n "$AESONVER" ]; then
66
- echo "constraints:aeson=="$AESONVER >> cabal.config;
75
+ echo "constraints:aeson=="$AESONVER >> cabal.config;
67
76
fi
68
77
69
78
if [ "$AESONVER" = "0.6.0.0" ]; then
70
79
echo "constraints:attoparsec==0.8.6.1,blaze-builder==0.2.1.4,bytestring==0.9.1.8,hashable==1.1.2.0,mtl==1.1.1.0,network==2.3.0.1,test-framework-hunit==0.3.0,text==0.11.1.1,unordered-containers==0.1.3.0,vector==0.7.1,zlib==0.5.2.0" >> cabal.config;
71
80
fi
72
81
73
- - sudo add-apt-repository -y ppa:hvr/ghc
74
- - sudo apt-get update
75
- - sudo apt-get install cabal-install-1.18 ghc-$GHCVER
76
- - export PATH=/opt/ghc/$GHCVER/bin:$PATH
82
+ - travis_retry sudo add-apt-repository -y ppa:hvr/ghc
83
+ - travis_retry sudo apt-get update
84
+ - travis_retry sudo apt-get install cabal-install-$CABALVER ghc-$GHCVER
85
+ - export PATH=/opt/ghc/$GHCVER/bin:/opt/cabal/$CABALVER/bin: $PATH
77
86
78
87
install :
79
- - cabal-1.18 update
80
- - cabal-1.18 install --only-dependencies --enable-tests
88
+ - cabal --version
89
+ - echo "$(ghc --version) [$(ghc --print-project-git-commit-id 2> /dev/null || echo '?')]"
90
+ - travis_retry cabal update
91
+ - cabal install --only-dependencies --enable-tests
81
92
82
93
# Here starts the actual work to be performed for the package under
83
94
# test; any command which exits with a non-zero exit code causes the
84
95
# build to fail.
85
96
script :
97
+ - if [ -f configure.ac ]; then autoreconf -i; fi
86
98
# -v2 provides useful information for debugging
87
- - cabal-1.18 configure --enable-tests -v2
99
+ - cabal configure --enable-tests -v2
88
100
89
101
# this builds all libraries and executables
90
102
# (including tests)
91
- - cabal-1.18 build --ghc-options=-Werror
103
+ - cabal build --ghc-options=-Werror
92
104
93
- - cabal-1.18 test
94
- - cabal-1.18 check
105
+ - cabal test
106
+ - cabal check
95
107
96
108
# tests that a source-distribution can be generated
97
- - cabal-1.18 sdist
109
+ - cabal sdist
98
110
99
111
# check that the generated source-distribution can be built & installed
100
- - export SRC_TGZ=$(cabal-1.18 info . | awk '{print $2 ".tar.gz";exit}') ;
112
+ - export SRC_TGZ=$(cabal info . | awk '{print $2 ".tar.gz";exit}') ;
101
113
cp cabal.config dist;
102
114
cd dist/;
103
115
if [ -f "$SRC_TGZ" ]; then
104
- cabal-1.18 install "$SRC_TGZ";
116
+ cabal install --force-reinstalls "$SRC_TGZ";
105
117
else
106
118
echo "expected '$SRC_TGZ' not found";
107
119
exit 1;
108
120
fi
109
121
110
122
# build demo
111
123
- cd ..;
112
- cabal-1.18 install -f demo;
124
+ cabal install -f demo;
113
125
114
126
# EOF
0 commit comments