Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 75 lines (65 sloc) 2.16 kb
c5c8e5f @ekmett repository initialized
authored
1 language: haskell
6f5b000 @startling Build on Travis with hvr's GHC versions PPA.
startling authored
2
3 env:
4 - GHCVER=7.4.2
5 - GHCVER=7.6.3
88e2a4b @glguy Use installed transformers when installing alex/happy
glguy authored
6 - GHCVER=7.8.4
7 - GHCVER=7.10.1
f9ed9b6 @bennofs Add ghc head to build matrix for travis
bennofs authored
8 - GHCVER=head
6f5b000 @startling Build on Travis with hvr's GHC versions PPA.
startling authored
9 # - >
10 # GHCVER=7.4.2
11 # MODE="-fsafe"
12
5b65320 @startling Ignore 7.4.2 travis failures (re: doctests).
startling authored
13 matrix:
14 allow_failures:
f9ed9b6 @bennofs Add ghc head to build matrix for travis
bennofs authored
15 - env: GHCVER=head
5b65320 @startling Ignore 7.4.2 travis failures (re: doctests).
startling authored
16
7d3ca3f @ekmett switching to luite's mirror
authored
17 before_install:
6f5b000 @startling Build on Travis with hvr's GHC versions PPA.
startling authored
18 # If $GHCVER is the one travis has, don't bother reinstalling it.
19 # We can also have faster builds by installing some libraries with
20 # `apt`. If it isn't, install the GHC we want from hvr's PPA along
21 # with cabal-1.18.
22 - |
23 if [ $GHCVER = `ghc --numeric-version` ]; then
24 # Try installing some of the build-deps with apt-get for speed.
25 travis/cabal-apt-install --enable-tests $MODE
26 export CABAL=cabal
27 else
28 # Install the GHC we want from hvr's PPA
4d9e8f8 @ekmett travis_retry -- suggested by @hvr
authored
29 travis_retry sudo add-apt-repository -y ppa:hvr/ghc
30 travis_retry sudo apt-get update
31 travis_retry sudo apt-get install cabal-install-1.18 ghc-$GHCVER happy
6f5b000 @startling Build on Travis with hvr's GHC versions PPA.
startling authored
32 export CABAL=cabal-1.18
33 export PATH=/opt/ghc/$GHCVER/bin:$PATH
34 fi
8579abe @ekmett simplified matrix build
authored
35 # Uncomment whenever hackage is down.
6f5b000 @startling Build on Travis with hvr's GHC versions PPA.
startling authored
36 # - mkdir -p ~/.cabal && cp travis/config ~/.cabal/config && $CABAL update
37 - $CABAL update
315579c @ion1 .travis.yml: Install hlint using apt-get
ion1 authored
38
d9efacf @bennofs Update happy on travis when building with ghc head
bennofs authored
39 # Update happy when building with GHC head
4d9e8f8 @ekmett travis_retry -- suggested by @hvr
authored
40 - |
88e2a4b @glguy Use installed transformers when installing alex/happy
glguy authored
41 if [ $GHCVER = "head" ] || [ $GHCVER = "7.8.4" ] || [ $GHCVER = "7.10.1" ]; then
42 $CABAL install --constraint=transformers\ installed happy alex
d9efacf @bennofs Update happy on travis when building with ghc head
bennofs authored
43 export PATH=$HOME/.cabal/bin:$PATH
44 fi
45
f92926b @ekmett add benchmarks to travis
authored
46 install:
6f5b000 @startling Build on Travis with hvr's GHC versions PPA.
startling authored
47 - $CABAL install --dependencies-only --enable-tests
48 - $CABAL configure -flib-Werror --enable-tests $MODE
8579abe @ekmett simplified matrix build
authored
49
f92926b @ekmett add benchmarks to travis
authored
50 script:
6f5b000 @startling Build on Travis with hvr's GHC versions PPA.
startling authored
51 - $CABAL build
52 - $CABAL test --show-details=always
1c8a09e @liyang scripts/stats: unsafeCoerces: … | doctests: … | operators: … | modules: ...
liyang authored
53 - scripts/stats
1c06449 @ekmett Added "branches: except: - symmetric" to .travis.yml
authored
54
7803a5f @glguy Have travis-ci try building from sdist
glguy authored
55 # tests that a source-distribution can be generated
56 - cabal sdist
57
58 # check that the generated source-distribution can be built & installed
59 - export SRC_TGZ=$(cabal info . | awk '{print $2 ".tar.gz";exit}') ;
60 cd dist/;
61 if [ -f "$SRC_TGZ" ]; then
62 cabal install --force-reinstalls "$SRC_TGZ";
63 else
64 echo "expected '$SRC_TGZ' not found";
65 exit 1;
66 fi
67
350e989 @ekmett (temporary) hackage workaround
authored
68 notifications:
e925c74 @ion1 .travis.yml: Tweak IRC notification
ion1 authored
69 irc:
70 channels:
71 - "irc.freenode.org#haskell-lens"
72 skip_join: true
73 template:
7803a5f @glguy Have travis-ci try building from sdist
glguy authored
74 - "\x0313lens\x0f/\x0306%{branch}\x0f \x0314%{commit}\x0f %{message} \x0302\x1f%{build_url}\x0f"
Something went wrong with that request. Please try again.