This repository was archived by the owner on Oct 7, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +103
-1
lines changed Expand file tree Collapse file tree 4 files changed +103
-1
lines changed Original file line number Diff line number Diff line change 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`
Original file line number Diff line number Diff line change 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`
Original file line number Diff line number Diff line change 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`
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments