summaryrefslogtreecommitdiff
path: root/.travis.yml
blob: 24170a998c562e19450424018cadd5da7cae62e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
language: haskell
before_install:
  # Uncomment whenever hackage is down.
  # - mkdir -p ~/.cabal && cp travis/config ~/.cabal/config && cabal update
  # - cabal update
  - travis/cabal-apt-install $mode

install:
  - export PATH=~/.cabal/bin:$PATH
  - cabal configure -flib-Werror $mode
  - cabal install packdeps packunused
  - cabal build --ghc-option=-ddump-minimal-imports

script:
  - $script
  - packdeps bytes.cabal
  - packunused --ignore-package=transformers-compat
  - hlint src --cpp-define HLINT

notifications:
  irc:
    channels:
      - "irc.freenode.org#haskell-lens"
    skip_join: true
    template:
      - "\x0313bytes\x03/\x0306%{branch}\x03 \x0314%{commit}\x03 %{build_url} %{message}"

env:
  - mode="--enable-tests" script="cabal test --show-details=always"