Run boot and configure by default.
[ghc.git] / .travis.yml
1 sudo: true
2
3 matrix:
4     include:
5         - os: linux
6           env: CABALVER=1.22 GHCVER=7.10.3 TARGET=
7           addons:
8               apt:
9                   packages:
10                       - ghc-7.10.3
11                       - cabal-install-1.22
12                       - zlib1g-dev
13                   sources: hvr-ghc
14           before_install:
15               - PATH="/opt/ghc/$GHCVER/bin:$PATH"
16               - PATH="/opt/cabal/$CABALVER/bin:$PATH"
17               - PATH="$HOME/.cabal/bin:$PATH"
18               - export PATH
19               - cabal update
20               - cabal install alex happy
21
22         - os: osx
23           env: TARGET=
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 install:
33     - env
34     - ghc --version
35     - cabal --version
36     - alex --version
37     - happy --version
38
39     - git config --global url."git://github.com/ghc/packages-".insteadOf     git://github.com/ghc/packages/
40     - git config --global url."http://github.com/ghc/packages-".insteadOf    http://github.com/ghc/packages/
41     - git config --global url."https://github.com/ghc/packages-".insteadOf   https://github.com/ghc/packages/
42     - git config --global url."ssh://git@github.com/ghc/packages-".insteadOf ssh://git@github.com/ghc/packages/
43     - git config --global url."git@github.com:/ghc/packages-".insteadOf      git@github.com:/ghc/packages/
44     - travis_retry git clone https://github.com/ghc/ghc --recurse-submodules --depth 1
45
46     # Travis clones the project into ".", but we need it as a child directory
47     # of "ghc/". For this reason, we - rather hackily - move the GHC-Shake
48     # ".git"  directory into the appropriate location, and perform a hard reset
49     # in order to regenerate the GHC-Shake files.
50     - mkdir ghc/hadrian
51     - mv .git ghc/hadrian
52     - ( cd ghc/hadrian && git reset --hard HEAD )
53
54     - ( cd ghc/hadrian && cabal install --only-dependencies )
55     - ( cd ghc/hadrian && cabal configure )
56
57     - ( cd ghc && ./boot )
58     - ( cd ghc && ./configure )
59     - cat ghc/hadrian/cfg/system.config
60     - ghc-pkg list
61
62 script:
63     - ( cd ghc/hadrian && cabal haddock --internal )
64     - ./ghc/hadrian/build.sh selftest
65     - ./ghc/hadrian/build.sh -j --skip-configure --no-progress --profile=- --flavour=quick $TARGET
66
67 cache:
68     directories:
69         - $HOME/.cabal
70         - $HOME/.ghc
71
72 notifications:
73     irc:
74         on_success: change # always/never/change
75         on_failure: always
76         channels:
77             - "chat.freenode.net#shaking-up-ghc"
78         template:
79             - "#%{build_number} finished in %{duration}. %{message}"
80             - "Repo: %{repository_slug}, branch: %{branch}"
81             - "%{author}: %{commit_subject}"
82             - "Build details: %{build_url}"