Skip to content
This repository was archived by the owner on Oct 7, 2020. It is now read-only.

Commit a8ae740

Browse files
committed
add install.hs tests on more plattforms
1 parent 767f467 commit a8ae740

File tree

4 files changed

+103
-1
lines changed

4 files changed

+103
-1
lines changed

.azure/linux-installhs-stack.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
jobs:
2+
- job: Linux_installhs_Stack
3+
timeoutInMinutes: 0
4+
pool:
5+
vmImage: ubuntu-16.04
6+
strategy:
7+
matrix:
8+
shake:
9+
YAML_FILE: install/shake.yaml
10+
steps:
11+
- bash: |
12+
export STACK_ROOT="$(Build.SourcesDirectory)"/.stack-root
13+
mkdir -p ~/.local/bin
14+
curl -L https://get.haskellstack.org/stable/linux-x86_64.tar.gz | \
15+
tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'
16+
displayName: Install stack
17+
- bash: |
18+
source .azure/linux.bashrc
19+
stack setup --stack-yaml $(YAML_FILE)
20+
displayName: Install GHC
21+
- bash: |
22+
source .azure/linux.bashrc
23+
stack --stack-yaml $(YAML_FILE) --install-ghc build --only-dependencies
24+
displayName: Build dependencies
25+
- bash: |
26+
source .azure/linux.bashrc
27+
stack build --stack-yaml $(YAML_FILE)
28+
displayName: Build `hie-install`
29+
- bash: |
30+
source .azure/linux.bashrc
31+
stack install.hs help
32+
displayName: Run help of `instal.hs`

.azure/macos-installhs-stack.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
jobs:
2+
- job: MacOs_installhs_Stack
3+
timeoutInMinutes: 0
4+
pool:
5+
vmImage: macOS-10.13
6+
strategy:
7+
matrix:
8+
shake:
9+
YAML_FILE: install/shake.yaml
10+
steps:
11+
- bash: |
12+
export STACK_ROOT="$(Build.SourcesDirectory)"/.stack-root
13+
mkdir -p ~/.local/bin
14+
curl -skL https://get.haskellstack.org/stable/osx-x86_64.tar.gz | \
15+
tar xz --strip-components=1 --include '*/stack' -C ~/.local/bin;
16+
displayName: Install stack
17+
- bash: |
18+
source .azure/macos.bashrc
19+
stack setup --stack-yaml $(YAML_FILE)
20+
displayName: Install GHC
21+
- bash: |
22+
source .azure/macos.bashrc
23+
stack --stack-yaml $(YAML_FILE) --install-ghc build --only-dependencies
24+
displayName: Build dependencies
25+
- bash: |
26+
source .azure/macos.bashrc
27+
stack build --stack-yaml $(YAML_FILE)
28+
displayName: Build `hie-install`
29+
- bash: |
30+
source .azure/macos.bashrc
31+
stack install.hs help
32+
displayName: Run help of `instal.hs`

.azure/windows-installhs-cabal.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
jobs:
2+
- job: Windows_installhs_Cabal
3+
timeoutInMinutes: 0
4+
pool:
5+
vmImage: windows-2019
6+
variables:
7+
YAML_FILE: install/shake.yaml
8+
PROJECT_FILE: install/shake.project
9+
steps:
10+
- bash: |
11+
curl -sSkL http://www.stackage.org/stack/windows-x86_64 -o /usr/bin/stack.zip
12+
unzip -o /usr/bin/stack.zip -d /usr/bin/
13+
displayName: Install stack
14+
- bash: |
15+
source .azure/windows.bashrc
16+
stack setup --stack-yaml $(YAML_FILE)
17+
displayName: Install GHC
18+
- bash: |
19+
source .azure/windows.bashrc
20+
stack install cabal-install --stack-yaml $(YAML_FILE)
21+
displayName: Install `cabal-install`
22+
- bash: |
23+
source .azure/windows.bashrc
24+
cabal update
25+
displayName: update cabal
26+
# - bash: |
27+
# source .azure/windows.bashrc
28+
# stack --stack-yaml $(YAML_FILE) build --only-dependencies
29+
# displayName: Build dependencies
30+
- bash: |
31+
source .azure/windows.bashrc
32+
cabal v2-build hie-install -w $(stack path --stack-yaml $(YAML_FILE) --compiler-exe) --project-file $(PROJECT_FILE)
33+
displayName: Build `hie-install`
34+
- bash: |
35+
source .azure/windows.bashrc
36+
cabal v2-run install.hs -w $(stack path --stack-yaml $(YAML_FILE) --compiler-exe) --project-file $(PROJECT_FILE) help
37+
displayName: Run help of `install.hs`

azure-pipelines.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@ jobs:
22
- template: ./.azure/linux-stack.yml
33
- template: ./.azure/windows-stack.yml
44
- template: ./.azure/macos-stack.yml
5+
- template: ./.azure/linux-installhs-stack.yml
56
- template: ./.azure/windows-installhs-stack.yml
6-
7+
- template: ./.azure/macos-installhs-stack.yml

0 commit comments

Comments
 (0)