Skip to content
This repository was archived by the owner on Oct 7, 2020. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
f9e15e8
Set up CI with Azure Pipelines
samuelpilz May 3, 2019
f347b82
install liquidhaskell in azure-ci
samuelpilz May 4, 2019
1a26d73
increase job timeout in azure-ci
samuelpilz May 5, 2019
54d543c
install liquidhaskell to .local/bin by cabal
samuelpilz May 5, 2019
000f637
generate hoogle-db before azure-ci test
samuelpilz May 5, 2019
f29f87a
try to use latest liquidhaskell in ci-test
samuelpilz May 10, 2019
61b7273
install liuidhaskell with ghc-8.2.2 in ci
samuelpilz May 10, 2019
2996d19
add own step to install the ghc in azure-ci
samuelpilz May 10, 2019
bb5b768
try install liquidhaskell in old-style for azure-ci
samuelpilz Jun 1, 2019
615eb11
install smt-solver in azure-ci
samuelpilz Jun 3, 2019
424f743
test all versions in azure-ci
samuelpilz Jun 3, 2019
f075828
other platforms for azure-ci
samuelpilz Jun 3, 2019
19389f5
install new version of cabal-install in azure-ci
samuelpilz Jun 3, 2019
7260002
install cabal-install with different ghc in azure-ci
samuelpilz Jun 6, 2019
72c3cea
install cabal-install with different ghc on azure-ci
samuelpilz Jun 6, 2019
d9cddf2
Fix stack version
fendor Jun 10, 2019
2f1cba2
Use more explicit yaml files
fendor Jun 10, 2019
f86a314
Fix pipelines for mac and windows
fendor Jun 13, 2019
1cf910f
Install z3
fendor Jun 13, 2019
f308fd4
update to windows-2019 image
samuelpilz Jun 16, 2019
3563ef1
Show stack path
jneira Jun 24, 2019
45e6f99
Set STACK_ROOT to /sr to avoid long paths issues
jneira Jun 24, 2019
b5c8271
Set STACK_ROOT using job property
jneira Jun 24, 2019
8251f4f
Escape path separator
jneira Jun 24, 2019
674eb52
Remove unnecessary source
jneira Jun 24, 2019
47c00fe
Use x86_64 arch
jneira Jun 24, 2019
6e73dd5
Remove line-break
jneira Jun 24, 2019
3caaf67
Set default stack local-bin-path for windows
jneira Jun 24, 2019
29fd8db
Use yaml variables instead .bashcr
jneira Jun 24, 2019
f5d1ffa
Try to use bashrc again
jneira Jun 24, 2019
9a0ab19
remove test-run for macos azure-ci
samuelpilz Jun 24, 2019
a76ee61
switch ';' to ':' in windows-path in azure-ci
samuelpilz Jun 24, 2019
827da32
Use cygpath to set LOCAL_BIN_PATH
jneira Jun 25, 2019
36d2e72
Using pacman to install z3, download cabal and separate Runtime test …
jneira Jun 25, 2019
2dc7082
Use literals in displayName
jneira Jun 25, 2019
7d5a2f5
Use variable for full cabal version and install z3 manually (no pacma…
jneira Jun 25, 2019
816a77c
Correct z3.zip path
jneira Jun 25, 2019
dcada88
Install s3 in the original path (/usr/local)
jneira Jun 25, 2019
dfc9e74
Merge remote-tracking branch 'power-fungus/azure-ci' into azure-ci-win2
jneira Jun 25, 2019
7b24d52
remove 8.6.2 and 8.6.1 from macos-ci, they cannot be installed
samuelpilz Jun 25, 2019
da062b0
disable test-runs in azure-ci
samuelpilz Jun 25, 2019
4406e8b
restructure test-dependencies z3 and liquidhaskell in ci-builds
samuelpilz Jun 25, 2019
8cb60ad
Fix z3 install for windows and use stack to install liquid
jneira Jun 26, 2019
d487c46
Install z3 from github instead from the mingw64 package (doesn't work)
jneira Jun 26, 2019
032097c
Reset ghc-mod submodule
jneira Jun 26, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
68 changes: 68 additions & 0 deletions .azure/linux-stack.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
jobs:
- job: Linux_Stack
timeoutInMinutes: 0
pool:
vmImage: ubuntu-16.04
strategy:
matrix:
stack-def:
YAML_FILE: stack.yaml
stack-8.6.5:
YAML_FILE: stack-8.6.5.yaml
stack-8.6.4:
YAML_FILE: stack-8.6.4.yaml
stack-8.6.3:
YAML_FILE: stack-8.6.3.yaml
stack-8.6.2:
YAML_FILE: stack-8.6.2.yaml
stack-8.6.1:
YAML_FILE: stack-8.6.1.yaml
stack-8.4.4:
YAML_FILE: stack-8.4.4.yaml
stack-8.4.3:
YAML_FILE: stack-8.4.3.yaml
stack-8.4.2:
YAML_FILE: stack-8.4.2.yaml
stack-8.2.2:
YAML_FILE: stack-8.2.2.yaml
steps:
- bash: |
git submodule sync
git submodule update --init
displayName: Sync submodules
- bash: |
export STACK_ROOT="$(Build.SourcesDirectory)"/.stack-root
mkdir -p ~/.local/bin
curl -L https://get.haskellstack.org/stable/linux-x86_64.tar.gz | \
tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'
displayName: Install stack
- bash: |
source .azure/linux.bashrc
stack setup --stack-yaml $(YAML_FILE)
displayName: Install GHC
- bash: |
source .azure/linux.bashrc
stack --stack-yaml $(YAML_FILE) --install-ghc build --only-dependencies
displayName: Build dependencies
- bash: |
source .azure/linux.bashrc
stack build --stack-yaml $(YAML_FILE)
displayName: Build `hie`
- bash: |
source .azure/linux.bashrc
stack build --stack-yaml $(YAML_FILE) --test --bench --only-dependencies
stack install --stack-yaml $(YAML_FILE) # `hie` binary required for tests
stack --stack-yaml $(YAML_FILE) exec hoogle generate
displayName: Build Test-dependencies
- bash: |
sudo apt update
sudo apt install z3
displayName: "Install Runtime Test-Dependencies: z3"
- bash: |
source .azure/linux.bashrc
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
displayName: "Install Runtime Test-Dependencies: liquidhaskell"
# - bash: |
# source .azure/linux.bashrc
# stack test --stack-yaml $(YAML_FILE)
# displayName: Run Test
1 change: 1 addition & 0 deletions .azure/linux.bashrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export PATH=$HOME/.local/bin:$PATH
65 changes: 65 additions & 0 deletions .azure/macos-stack.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
jobs:
- job: MacOs_Stack
timeoutInMinutes: 0
pool:
vmImage: macOS-10.13
strategy:
matrix:
stack-def:
YAML_FILE: stack.yaml
stack-8.6.5:
YAML_FILE: stack-8.6.5.yaml
stack-8.6.4:
YAML_FILE: stack-8.6.4.yaml
stack-8.6.3:
YAML_FILE: stack-8.6.3.yaml
stack-8.4.4:
YAML_FILE: stack-8.4.4.yaml
stack-8.4.3:
YAML_FILE: stack-8.4.3.yaml
stack-8.4.2:
YAML_FILE: stack-8.4.2.yaml
stack-8.2.2:
YAML_FILE: stack-8.2.2.yaml
steps:
- bash: |
git submodule sync
git submodule update --init
displayName: Sync submodules
- bash: |
export STACK_ROOT="$(Build.SourcesDirectory)"/.stack-root
mkdir -p ~/.local/bin
curl -skL https://get.haskellstack.org/stable/osx-x86_64.tar.gz | \
tar xz --strip-components=1 --include '*/stack' -C ~/.local/bin;
displayName: Install stack
- bash: |
source .azure/macos.bashrc
stack setup --stack-yaml $(YAML_FILE)
displayName: Install GHC
- bash: |
source .azure/macos.bashrc
stack --stack-yaml $(YAML_FILE) --install-ghc build --only-dependencies
displayName: Build dependencies
- bash: |
source .azure/macos.bashrc
stack build --stack-yaml $(YAML_FILE)
displayName: Build `hie`
- bash: |
source .azure/macos.bashrc
stack build --stack-yaml $(YAML_FILE) --test --bench --only-dependencies
stack install --stack-yaml $(YAML_FILE) # `hie` binary required for tests
stack --stack-yaml $(YAML_FILE) exec hoogle generate
displayName: Build Test-dependencies
- bash: |
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew update
brew install z3
displayName: "Install Runtime Test-Dependencies: z3"
- bash: |
source .azure/macos.bashrc
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
displayName: "Install Runtime Test-Dependencies: liquidhaskell"
# - bash: |
# source .azure/macos.bashrc
# stack test --stack-yaml $(YAML_FILE)
# displayName: Run Test
1 change: 1 addition & 0 deletions .azure/macos.bashrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export PATH=$HOME/.local/bin:$PATH
67 changes: 67 additions & 0 deletions .azure/windows-stack.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
jobs:
- job: Windows_Stack
timeoutInMinutes: 0
pool:
vmImage: windows-2019
strategy:
matrix:
stack-def:
YAML_FILE: stack.yaml
stack-8.6.5:
YAML_FILE: stack-8.6.5.yaml
stack-8.6.4:
YAML_FILE: stack-8.6.4.yaml
stack-8.6.2:
YAML_FILE: stack-8.6.2.yaml
stack-8.6.1:
YAML_FILE: stack-8.6.1.yaml
stack-8.4.4:
YAML_FILE: stack-8.4.4.yaml
stack-8.4.3:
YAML_FILE: stack-8.4.3.yaml
stack-8.4.2:
YAML_FILE: stack-8.4.2.yaml
stack-8.2.2:
YAML_FILE: stack-8.2.2.yaml
steps:
- bash: |
git submodule sync
git submodule update --init
displayName: Sync submodules
- bash: |
curl -sSkL http://www.stackage.org/stack/windows-x86_64 -o /usr/bin/stack.zip
unzip -o /usr/bin/stack.zip -d /usr/bin/
displayName: Install stack
- bash: |
source .azure/windows.bashrc
stack setup --stack-yaml $(YAML_FILE)
displayName: Install GHC
- bash: |
source .azure/windows.bashrc
stack --stack-yaml $(YAML_FILE) --install-ghc build --only-dependencies
displayName: Build dependencies
- bash: |
source .azure/windows.bashrc
stack build --stack-yaml $(YAML_FILE)
displayName: Build `hie`
- bash: |
source .azure/windows.bashrc
stack build --stack-yaml $(YAML_FILE) --test --bench --only-dependencies
stack install --stack-yaml $(YAML_FILE) # `hie` binary required for tests
stack exec --stack-yaml $(YAML_FILE) hoogle generate
displayName: Build Test-dependencies
- bash: |
# TODO: try to install automatically (`choco install z3` fails and pacman is not installed)
mkdir -p /usr/local
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
unzip -o /usr/local/z3.zip -d /usr/local/
displayName: "Install Runtime Test-Dependencies: z3"
- bash: |
source .azure/windows.bashrc
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
liquid -v
displayName: "Install Runtime Test-Dependencies: liquidhaskell"
# - bash: |
# source .azure/windows.bashrc
# stack test --stack-yaml $(YAML_FILE) :unit-test
# displayName: Run Test
4 changes: 4 additions & 0 deletions .azure/windows.bashrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
export STACK_ROOT="C:\\sr"
export LOCAL_BIN_PATH=$(cygpath $APPDATA\\local\\bin)
export Z3_BIN_PATH=/usr/local/z3-4.8.5-x64-win/bin
export PATH=$Z3_BIN_PATH:$LOCAL_BIN_PATH:$PATH
4 changes: 4 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
jobs:
- template: ./.azure/linux-stack.yml
- template: ./.azure/windows-stack.yml
- template: ./.azure/macos-stack.yml