This repository was archived by the owner on Oct 7, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 206
add possibility to run install.hs
from cabal
#1221
Merged
Merged
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
8462418
add possibility to run `install.hs` from cabal
samuelpilz 1cc4501
refactor installer-code
samuelpilz b77e39b
refactor help messages and clean up cabal- and stack- targets
samuelpilz e0e8a07
upgrade shake
samuelpilz 4167153
include work of #1297 into this project
samuelpilz 39e5c3c
use strict copyFile function for hie-x.y binaries
samuelpilz d670f5a
move shake.* files into install/ folder
samuelpilz 9b35194
correct help message to show only available ghcs for cabal
samuelpilz 71cbab1
apply brittany reformat
samuelpilz f07ad7c
add cabal.project to install-dir
samuelpilz 7fad241
add documentation to install-helper-functions
samuelpilz edb411c
let stack use moved shake.yaml in install.hs
samuelpilz aa49439
increase max-backjumps when building `hie` with cabal
samuelpilz 385de65
document running install.hs from cabal in readme
samuelpilz 8d10d6e
fix typos in readme
samuelpilz 109df60
remove todo for review
samuelpilz 8346b7f
rename module Install to HieInstall in hie-install
samuelpilz 84baa24
add a testrun of install.hs to ci
samuelpilz 767f467
remove todo for review
samuelpilz a8ae740
add install.hs tests on more plattforms
samuelpilz 34f7964
readme typo
samuelpilz 9aa390d
add note that cabal v2-run is not supported on windows
samuelpilz File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
jobs: | ||
- job: Linux_installhs_Stack | ||
timeoutInMinutes: 0 | ||
pool: | ||
vmImage: ubuntu-16.04 | ||
strategy: | ||
matrix: | ||
shake: | ||
YAML_FILE: install/shake.yaml | ||
steps: | ||
- 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-install` | ||
- bash: | | ||
source .azure/linux.bashrc | ||
stack install.hs help | ||
displayName: Run help of `instal.hs` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
jobs: | ||
- job: MacOs_installhs_Stack | ||
timeoutInMinutes: 0 | ||
pool: | ||
vmImage: macOS-10.13 | ||
strategy: | ||
matrix: | ||
shake: | ||
YAML_FILE: install/shake.yaml | ||
steps: | ||
- 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-install` | ||
- bash: | | ||
source .azure/macos.bashrc | ||
stack install.hs help | ||
displayName: Run help of `instal.hs` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
jobs: | ||
- job: Windows_installhs_Cabal | ||
timeoutInMinutes: 0 | ||
pool: | ||
vmImage: windows-2019 | ||
variables: | ||
YAML_FILE: install/shake.yaml | ||
PROJECT_FILE: install/shake.project | ||
steps: | ||
- 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 install cabal-install --stack-yaml $(YAML_FILE) | ||
displayName: Install `cabal-install` | ||
- bash: | | ||
source .azure/windows.bashrc | ||
cabal update | ||
displayName: update cabal | ||
# - bash: | | ||
# source .azure/windows.bashrc | ||
# stack --stack-yaml $(YAML_FILE) build --only-dependencies | ||
# displayName: Build dependencies | ||
- bash: | | ||
source .azure/windows.bashrc | ||
cabal v2-build hie-install -w $(stack path --stack-yaml $(YAML_FILE) --compiler-exe) --project-file $(PROJECT_FILE) | ||
displayName: Build `hie-install` | ||
- bash: | | ||
source .azure/windows.bashrc | ||
cabal v2-run install.hs -w $(stack path --stack-yaml $(YAML_FILE) --compiler-exe) --project-file $(PROJECT_FILE) help | ||
displayName: Run help of `install.hs` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
jobs: | ||
- job: Windows_installhs_Stack | ||
timeoutInMinutes: 0 | ||
pool: | ||
vmImage: windows-2019 | ||
strategy: | ||
matrix: | ||
shake: | ||
YAML_FILE: install/shake.yaml | ||
steps: | ||
- 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-install` | ||
- bash: | | ||
source .azure/windows.bashrc | ||
stack install.hs help | ||
displayName: Run help of `instal.hs` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -73,3 +73,4 @@ _build/ | |
|
||
# stack 2.1 stack.yaml lock files | ||
stack*.yaml.lock | ||
shake.yaml.lock |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.