|
| 1 | +jobs: |
| 2 | +- job: Windows_Stack |
| 3 | + timeoutInMinutes: 0 |
| 4 | + pool: |
| 5 | + vmImage: windows-2019 |
| 6 | + strategy: |
| 7 | + matrix: |
| 8 | + stack-def: |
| 9 | + YAML_FILE: stack.yaml |
| 10 | + stack-8.6.5: |
| 11 | + YAML_FILE: stack-8.6.5.yaml |
| 12 | + stack-8.6.4: |
| 13 | + YAML_FILE: stack-8.6.4.yaml |
| 14 | + stack-8.6.2: |
| 15 | + YAML_FILE: stack-8.6.2.yaml |
| 16 | + stack-8.6.1: |
| 17 | + YAML_FILE: stack-8.6.1.yaml |
| 18 | + stack-8.4.4: |
| 19 | + YAML_FILE: stack-8.4.4.yaml |
| 20 | + stack-8.4.3: |
| 21 | + YAML_FILE: stack-8.4.3.yaml |
| 22 | + stack-8.4.2: |
| 23 | + YAML_FILE: stack-8.4.2.yaml |
| 24 | + stack-8.2.2: |
| 25 | + YAML_FILE: stack-8.2.2.yaml |
| 26 | + steps: |
| 27 | + - bash: | |
| 28 | + git submodule sync |
| 29 | + git submodule update --init |
| 30 | + displayName: Sync submodules |
| 31 | + - bash: | |
| 32 | + curl -sSkL http://www.stackage.org/stack/windows-x86_64 -o /usr/bin/stack.zip |
| 33 | + unzip -o /usr/bin/stack.zip -d /usr/bin/ |
| 34 | + displayName: Install stack |
| 35 | + - bash: | |
| 36 | + source .azure/windows.bashrc |
| 37 | + stack setup --stack-yaml $(YAML_FILE) |
| 38 | + displayName: Install GHC |
| 39 | + - bash: | |
| 40 | + source .azure/windows.bashrc |
| 41 | + stack --stack-yaml $(YAML_FILE) --install-ghc build --only-dependencies |
| 42 | + displayName: Build dependencies |
| 43 | + - bash: | |
| 44 | + source .azure/windows.bashrc |
| 45 | + stack build --stack-yaml $(YAML_FILE) |
| 46 | + displayName: Build `hie` |
| 47 | + - bash: | |
| 48 | + source .azure/windows.bashrc |
| 49 | + stack build --stack-yaml $(YAML_FILE) --test --bench --only-dependencies |
| 50 | + stack install --stack-yaml $(YAML_FILE) # `hie` binary required for tests |
| 51 | + stack exec --stack-yaml $(YAML_FILE) hoogle generate |
| 52 | + displayName: Build Test-dependencies |
| 53 | + - bash: | |
| 54 | + # TODO: try to install automatically (`choco install z3` fails and pacman is not installed) |
| 55 | + mkdir -p /usr/local |
| 56 | + curl -L https://github.com/Z3Prover/z3/releases/download/Z3-4.8.5/z3-4.8.5-x64-win.zip -o /usr/local/z3.zip |
| 57 | + unzip -o /usr/local/z3.zip -d /usr/local/ |
| 58 | + displayName: "Install Runtime Test-Dependencies: z3" |
| 59 | + - bash: | |
| 60 | + source .azure/windows.bashrc |
| 61 | + stack install --resolver=lts-11.18 liquid-fixpoint-0.7.0.7 dotgen-0.4.2 fgl-visualize-0.1.0.1 located-base-0.1.1.1 liquidhaskell-0.8.2.4 |
| 62 | + liquid -v |
| 63 | + displayName: "Install Runtime Test-Dependencies: liquidhaskell" |
| 64 | + # - bash: | |
| 65 | + # source .azure/windows.bashrc |
| 66 | + # stack test --stack-yaml $(YAML_FILE) :unit-test |
| 67 | + # displayName: Run Test |
0 commit comments