forked from ucsd-progsys/liquidhaskell
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathappveyor.yml
More file actions
58 lines (45 loc) · 2.12 KB
/
appveyor.yml
File metadata and controls
58 lines (45 loc) · 2.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
platform: x64
init:
- git --version
install:
# http://help.appveyor.com/discussions/problems/6312-curl-command-not-found
- set PATH=%PATH%;C:\Program Files\Git\mingw64\bin
# Update GIT submodules
- git submodule update --init --recursive
# Download latest stable Stack tool
- curl -sS -ostack.zip -L --insecure https://get.haskellstack.org/stable/windows-x86_64.zip
- 7z x stack.zip stack.exe
- stack --version
# Install Microsoft Z3 from NuGet
# - nuget install z3x64win -Version 4.8.7
# - dotnet add C:\projects\liquidhaskell\ package Microsoft.Z3.x64 --version 4.8.7
# - set PATH=%PATH%;%cd%;%cd%\z3x64win.4.5.0.1\tools
# - z3 --version
# Download latest stable z3
- curl -sS -oz3.zip -L --insecure https://github.com/Z3Prover/z3/releases/download/z3-4.8.7/z3-4.8.7-x64-win.zip
- 7z x z3.zip
- echo %CD%
- DIR
- set PATH=%PATH%;C:\projects\liquidhaskell\z3-4.8.7-x64-win\bin;C:\projects\liquidhaskell
- z3 --version
build_script:
# Build LiquidHaskell (the legacy executable)
# until https://gitlab.haskell.org/ghc/ghc/issues/17236 is fixed.
- echo "" | rm -rf .stack-work
- echo "" | stack --no-terminal build --ghc-options="-fexternal-interpreter" liquidhaskell:lib --flag liquidhaskell:no-plugin --copy-bins --local-bin-path .
- echo "" | stack --no-terminal build liquid-fixpoint:exe:fixpoint liquidhaskell:exe:liquid --flag liquidhaskell:no-plugin --copy-bins --local-bin-path .
# Copy runtime DLLs
- call appveyor-copy.bat
# Test if they are working
- fixpoint --version
- liquid --version
# ZIP execturable
- 7z a liquidhaskell.zip liquid.exe fixpoint.exe .\include\CoreToLogic.lg LICENSE LICENSE_Z3 libstdc++-6.dll libgcc_s_seh-1.dll libwinpthread-1.dll
# Run the tests (using the legacy executable)
test_script:
- echo "" | stack --no-terminal test liquidhaskell:liquidhaskell-parser --fast --flag liquidhaskell:no-plugin
# XXX(matt.walker): Can this whole file be removed?
# - echo "" | stack --no-terminal test liquidhaskell:test --fast --flag liquidhaskell:no-plugin --ta="--liquid-runner \"stack --compiler=ghc-8.10.7 --silent exec -- liquid\"" --test-arguments "-p Micro"
artifacts:
- path: liquidhaskell.zip
name: LiquidHaskell