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

3
os:
Moritz Angermann's avatar
Moritz Angermann committed
4
5
    - linux
    - osx
6

quchen's avatar
quchen committed
7
matrix:
quchen's avatar
quchen committed
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
    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
25
26
27
28
29
30
31
32

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
33
34
35
36
37
38
    - env
    - ghc --version
    - cabal --version
    - alex --version
    - happy --version
    - cabal update
quchen's avatar
quchen committed
39
40

install:
quchen's avatar
quchen committed
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55

    - 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
56
57

script:
quchen's avatar
quchen committed
58
    - ./ghc/shake-build/build.sh -j --no-progress
quchen's avatar
quchen committed
59
60
61
62

cache:
    directories:
        - $HOME/.cabal