.travis.yml 1.39 KB
Newer Older
quchen's avatar
quchen committed
1
2
3
sudo: false

matrix:
quchen's avatar
quchen committed
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
    include:
        - env:
            CABALVER=1.22
            GHCVER=7.10.3

          addons: {
              apt: {
                  packages: [
                      ghc-7.10.3,
                      alex-3.1.4,
                      happy-1.19.5,
                      cabal-install-1.22,
                      zlib1g-dev
                  ],
                  sources: [hvr-ghc]
              }
          }
quchen's avatar
quchen committed
21
22
23
24
25
26
27
28

before_install:

    - PATH="$HOME/.cabal/bin:$PATH"
    - PATH="/opt/ghc/$GHCVER/bin:$PATH"
    - PATH="/opt/cabal/$CABALVER/bin:$PATH"
    - export PATH

quchen's avatar
quchen committed
29
30
31
32
33
34
    - env
    - ghc --version
    - cabal --version
    - alex --version
    - happy --version
    - cabal update
quchen's avatar
quchen committed
35
36

install:
quchen's avatar
quchen committed
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51

    - travis_retry git clone git://git.haskell.org/ghc --recurse-submodules

    # Travis clones the project into ".", but we need it as a child directory
    # of "ghc/". For this reason, we - rather hackily - move the GHC-Shake
    # ".git"  directory into the appropriate location, and perform a hard reset
    # in order to regenerate the GHC-Shake files.
    - mkdir ghc/shake-build
    - mv .git ghc/shake-build
    - ( cd ghc/shake-build && git reset --hard HEAD )

    - ( cd ghc/shake-build && cabal install --only-dependencies )

    - ( cd ghc && ./boot )
    - ( cd ghc && ./configure )
quchen's avatar
quchen committed
52
53

script:
quchen's avatar
quchen committed
54
    - ./ghc/shake-build/build.sh -j --no-progress
quchen's avatar
quchen committed
55
56
57
58

cache:
    directories:
        - $HOME/.cabal