Merge pull request #123 from angerman/feature/fix-clang
[ghc.git] / .travis.yml
1 sudo: false
2
3 matrix:
4     include:
5         - os: linux
6           env: CABALVER=1.22 GHCVER=7.10.3
7           addons:
8               apt:
9                   packages:
10                       - ghc-7.10.3
11                       - alex-3.1.4
12                       - happy-1.19.5
13                       - cabal-install-1.22
14                       - zlib1g-dev
15                   sources: hvr-ghc
16           before_install:
17               - PATH="/opt/ghc/$GHCVER/bin:$PATH"
18               - PATH="/opt/cabal/$CABALVER/bin:$PATH"
19               - PATH="$HOME/.cabal/bin:$PATH"
20               - export PATH
21               - cabal update
22
23         - os: osx
24           before_install:
25               - brew update
26               - brew install ghc cabal-install
27               - cabal update
28               - cabal install alex happy
29               - PATH="$HOME/.cabal/bin:$PATH"
30               - export PATH
31
32
33 install:
34
35     - env
36     - ghc --version
37     - cabal --version
38     - alex --version
39     - happy --version
40
41     - travis_retry git clone git://git.haskell.org/ghc --recurse-submodules
42
43     # Travis clones the project into ".", but we need it as a child directory
44     # of "ghc/". For this reason, we - rather hackily - move the GHC-Shake
45     # ".git"  directory into the appropriate location, and perform a hard reset
46     # in order to regenerate the GHC-Shake files.
47     - mkdir ghc/shake-build
48     - mv .git ghc/shake-build
49     - ( cd ghc/shake-build && git reset --hard HEAD )
50
51     - ( cd ghc/shake-build && cabal install --only-dependencies )
52
53     - ( cd ghc && ./boot )
54     - ( cd ghc && ./configure )
55
56 script:
57     - ./ghc/shake-build/build.sh -j --no-progress
58
59 cache:
60     directories:
61         - $HOME/.cabal
62         - $HOME/.ghc
63
64 notifications:
65     irc:
66         on_success: always # always/never/change
67         on_failure: always
68         channels:
69             - "chat.freenode.net#shaking-up-ghc"
70         template:
71             - "#%{build_number} finished in %{duration}. %{message}"
72             - "Repo: %{repository_slug}, branch: %{branch}"
73             - "%{author}: %{commit_subject}"
74             - "Build details: %{build_url}"