appveyor.yml 2.13 KB
Newer Older
Andrey Mokhov's avatar
Andrey Mokhov committed
1
clone_folder: "C:\\msys64\\home\\ghc\\hadrian"
2
3
4
5
6
environment:
  global:
    STACK_ROOT: "c:\\sr"

cache:
Andrey Mokhov's avatar
Andrey Mokhov committed
7
    - "c:\\sr"
8

Andrey Mokhov's avatar
Andrey Mokhov committed
9
install:
10
    - cd
Andrey Mokhov's avatar
Andrey Mokhov committed
11
    - set MSYSTEM=MINGW64
12
    - set PATH=C:\msys64\mingw64\bin;C:\msys64\usr\bin;C:\msys64;%PATH%
Andrey Mokhov's avatar
Andrey Mokhov committed
13
    - set PATH=%PATH%;C:\Users\appveyor\AppData\Roaming\local\bin\;%APPVEYOR_BUILD_FOLDER%
14
    - curl -ostack.zip -LsS --insecure https://www.stackage.org/stack/windows-x86_64
15
    - 7z x stack.zip stack.exe
Andrey Mokhov's avatar
Andrey Mokhov committed
16
    - bash -lc "curl -LsS http://www.haskell.org/ghc/dist/7.10.3/ghc-7.10.3-x86_64-unknown-mingw32.tar.xz | tar -xJ -C /mingw64 --strip-components=1"
Andrey Mokhov's avatar
Andrey Mokhov committed
17
    - stack exec -- pacman -S --noconfirm gcc binutils p7zip git
18
    - echo "" | stack --no-terminal install alex happy shake ansi-terminal mtl
Andrey Mokhov's avatar
Andrey Mokhov committed
19
20
21
22
23
24
25
26

    - git config --global url."git://github.com/ghc/packages-".insteadOf     git://github.com/ghc/packages/
    - git config --global url."http://github.com/ghc/packages-".insteadOf    http://github.com/ghc/packages/
    - git config --global url."https://github.com/ghc/packages-".insteadOf   https://github.com/ghc/packages/
    - git config --global url."ssh://git@github.com/ghc/packages-".insteadOf ssh://git@github.com/ghc/packages/
    - git config --global url."git@github.com:/ghc/packages-".insteadOf      git@github.com:/ghc/packages/
    - git clone https://github.com/ghc/ghc --recurse-submodules --depth 1 C:\msys64\home\ghc\tmp

Andrey Mokhov's avatar
Andrey Mokhov committed
27
    - bash -lc "mv /home/ghc/tmp/* /home/ghc"
28
29
    - cd C:\msys64\home\ghc
    - stack exec -- perl boot
30
    - bash -lc "cd /home/ghc; mkdir -p ghc-tarballs/mingw-w64/x86_64/"
31
    - bash -lc "cd /home/ghc; mkdir -p ghc-tarballs/perl/"
32
    - bash -lc "cd /home/ghc; exec 0</dev/null; ./configure --enable-tarballs-autodownload"
Andrey Mokhov's avatar
Andrey Mokhov committed
33
    - bash -lc "cat /home/ghc/hadrian/cfg/system.config"
34
35
36
37
    - ghc   --version
    - stack --version
    - alex  --version
    - happy --version
Andrey Mokhov's avatar
Andrey Mokhov committed
38
    - stack exec -- ghc-pkg list
Andrey Mokhov's avatar
Andrey Mokhov committed
39
40
41
    - mkdir _build
    - cd _build
    - mkdir hadrian
42
43

build_script:
Andrey Mokhov's avatar
Andrey Mokhov committed
44
    - cd C:\msys64\home\ghc\hadrian
45
    - echo "" | stack --no-terminal exec -- build.bat selftest
46
    - echo "" | stack --no-terminal exec -- build.bat -j --no-progress --profile=- --flavour=quick inplace/bin/ghc-stage1.exe