Skip to content

Commit 72988c9

Browse files
committed
Merged changes from multi-ghc-travis
1 parent 7f4525a commit 72988c9

File tree

1 file changed

+40
-28
lines changed

1 file changed

+40
-28
lines changed

.travis.yml

Lines changed: 40 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,23 @@
1010
# release of a major GHC version. Setting HPVER implictly sets
1111
# GHCVER. Omit lines with versions you don't need/want testing for.
1212
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
2630
- HPVER=2014.2.0.0
2731
# - HPVER=2013.2.0.0
2832
# - HPVER=2012.4.0.0
@@ -36,22 +40,27 @@ before_install:
3640
"") ;;
3741

3842
"2014.2.0.0")
43+
export CABALVER=1.18 ;
3944
export GHCVER=7.8.3 ;
4045
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 ;;
4146

4247
"2013.2.0.0")
48+
export CABALVER=1.16 ;
4349
export GHCVER=7.6.3 ;
4450
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 ;;
4551

4652
"2012.4.0.0")
53+
export CABALVER=1.16 ;
4754
export GHCVER=7.6.2 ;
4855
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 ;;
4956

5057
"2012.2.0.0")
58+
export CABALVER=1.16 ;
5159
export GHCVER=7.4.1 ;
5260
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 ;;
5361

5462
"2011.4.0.0")
63+
export CABALVER=1.16 ;
5564
export GHCVER=7.0.4 ;
5665
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 ;;
5766

@@ -63,52 +72,55 @@ before_install:
6372
esac
6473

6574
if [ -n "$AESONVER" ]; then
66-
echo "constraints:aeson=="$AESONVER >> cabal.config;
75+
echo "constraints:aeson=="$AESONVER >> cabal.config;
6776
fi
6877

6978
if [ "$AESONVER" = "0.6.0.0" ]; then
7079
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;
7180
fi
7281

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
7786

7887
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
8192

8293
# Here starts the actual work to be performed for the package under
8394
# test; any command which exits with a non-zero exit code causes the
8495
# build to fail.
8596
script:
97+
- if [ -f configure.ac ]; then autoreconf -i; fi
8698
# -v2 provides useful information for debugging
87-
- cabal-1.18 configure --enable-tests -v2
99+
- cabal configure --enable-tests -v2
88100

89101
# this builds all libraries and executables
90102
# (including tests)
91-
- cabal-1.18 build --ghc-options=-Werror
103+
- cabal build --ghc-options=-Werror
92104

93-
- cabal-1.18 test
94-
- cabal-1.18 check
105+
- cabal test
106+
- cabal check
95107

96108
# tests that a source-distribution can be generated
97-
- cabal-1.18 sdist
109+
- cabal sdist
98110

99111
# 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}') ;
101113
cp cabal.config dist;
102114
cd dist/;
103115
if [ -f "$SRC_TGZ" ]; then
104-
cabal-1.18 install "$SRC_TGZ";
116+
cabal install --force-reinstalls "$SRC_TGZ";
105117
else
106118
echo "expected '$SRC_TGZ' not found";
107119
exit 1;
108120
fi
109121

110122
# build demo
111123
- cd ..;
112-
cabal-1.18 install -f demo;
124+
cabal install -f demo;
113125

114126
# EOF

0 commit comments

Comments
 (0)