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
Enable all working test suites and add linux-cabal job in Azure #1571
Merged
Merged
Changes from all commits
Commits
Show all changes
80 commits
Select commit
Hold shift + click to select a range
a7d4a60
Publish artifacts and generate hoogle
jneira 749c35c
Correct identation
jneira 24b50bb
Correct YAML_FILE env var name
jneira df7e821
Set unique artifact and tar file name
jneira 60c309e
Set unique artifact name and use 7z
jneira 44d6288
Fix build-latest target
jneira 2d50e4d
build using the install script with cabal
jneira b964691
Remove unused submodules
jneira 01c9eb0
Correct 7z argument
jneira e66be51
Use simple access to env var
jneira 4a603e5
Add ghc to artifact name
jneira b2d305b
Fix z3 install in macos
jneira 15dbb1e
Install cabal-3.0.0.0 to test install.hs
jneira 37c4951
Comment publishing for now
jneira d92b7a9
Activate win publishing again
jneira 0af278b
quote cache keys
jneira c3fbfed
Use last version of cache task
jneira 9e0aa06
Set ghc on path to fix build-latest
jneira 5d06f0d
Return to comment tests
jneira 38ed8ac
Correct var assignment
jneira 2124425
try to avoid errors installing happy
jneira 7c735ed
Use last version of cache task
jneira a3ccef0
Quote cache name
jneira fd04e37
Put the ghc exe dir in path
jneira 6ff686d
Use one cache like posix
jneira 149d332
Add more fine-grained git triggers
jneira af367d8
Create local bin path to fix cabal script
jneira 48a7dc1
Remove creation of local bin path
jneira a844375
Comment windows-installhs-cabal job for now
jneira 099a4c1
Enable the task again
jneira d0c0479
Comment the failing step
jneira 36f3413
Using build instead install is enough to exec hoogle
jneira aa28ee0
Add TODO about using choco to install cabal
jneira da88a78
Set verbose mode for tar commands
jneira 7b2f028
Add hlint data file
jneira d22032f
Use azure predefined variable Agent.TempDirectory
jneira 60ff59d
Quote temp path to fix windows release
jneira 45fda96
Update targets of install.hs for macos
jneira a5ee458
Enable tests
jneira b725aa7
Install correct version of liquid
jneira 345e3ff
Merge branch 'master' into azure-release-tests
jneira fabadf6
Comment failing tests
jneira 8d1f20a
Ignore exe files generated by tests
jneira 1320278
Add test runtime dependency: cabal
jneira c97dc95
Add ghc to path
jneira 3954c97
Sanity check of cabal and ghc
jneira e50d26d
Check path
jneira 7b38a04
Isolate cabal in
jneira 0544a82
Correct test target
jneira 0b4ef57
Disable func-test for macos and ghc-8.4
jneira c870bfa
Disable CabalHelper tests for windows and ghc-8.6.4
jneira 7da8d07
Correct test arguments
jneira ec7165d
Add cabal job
jneira a060cc5
Add cabal job only
jneira 60f8cfe
Use default install options
jneira d60c115
Correct cache key
jneira aef9cdd
Set verbose mode for tar extraction
jneira 40e9bb8
Run cabal update at first step
jneira edb6038
Correct name and use ghc on path
jneira 27fcf16
Install liquid in temp to avoid reinstall hie
jneira 1d9828a
liquidhaskell-0.8.6.2 needs ghc-8.6
jneira c9c195c
use full path to ghc
jneira a3f4387
Generate hoogle db
jneira bc28787
Turn off parallelism in tests
jneira 7019fbf
Correct jobs argument
jneira 632e37a
Set GHC_VERSION with YAML_FILE for stack
jneira 5770241
Use specific bashrc for cabal
jneira cff204a
Use specific bashrc for cabal in yaml
jneira b47fb8d
Enable all jobs
jneira e89689e
Delete unused variable
jneira 3e6b323
Enable windows+cabal job fot install.hs
jneira 183c49a
Correct typo
jneira 5fa01ad
Add TODO about parallel test runs
jneira 5aa6b8f
Enable func-test suite in windows
jneira 76e6d92
Disable func-test for ghc-8.6.4 on windows
jneira f81e35f
Sometimes in azure ci it returns 2 diagnostics
jneira 7698b00
Enable diagnostics test in windows
jneira 6c2fb2a
overwrite existing executable symlinks
jneira d40f403
Fix diagnostics test when they come in diff order
jneira e614529
Try install.hs latest twice
jneira 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 @@ | ||
export PATH=$HOME/.cabal/bin:/opt/cabal/$CABAL_VERSION/bin:/opt/ghc/$GHC_VERSION/bin:$HOME/.local/bin:$PATH |
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,76 @@ | ||
jobs: | ||
- job: Linux_Cabal | ||
timeoutInMinutes: 0 | ||
pool: | ||
vmImage: ubuntu-16.04 | ||
strategy: | ||
matrix: | ||
ghc-8.6.5: | ||
GHC_VERSION: "8.6.5" | ||
ghc-8.4.4: | ||
GHC_VERSION: "8.4.4" | ||
variables: | ||
CABAL_VERSION: "3.0" | ||
steps: | ||
- task: Cache@2 | ||
inputs: | ||
key: '"cabal-store" | "$(Agent.OS)" | "$(CABAL_VERSION)" | "$(GHC_VERSION)" | $(Build.SourcesDirectory)/cabal.project | $(Build.SourcesDirectory)/haskell-ide-engine.cabal | $(Build.SourcesDirectory)/hie-plugin-api/hie-plugin-api.cabal' | ||
path: .azure-cache | ||
cacheHitVar: CACHE_RESTORED | ||
displayName: "Download cache" | ||
- bash: | | ||
mkdir -p $HOME/.cabal | ||
tar -vxzf .azure-cache/cabal-root.tar.gz -C / | ||
mkdir -p $HOME/.ghc | ||
tar -vxzf .azure-cache/ghc-root.tar.gz -C / | ||
mkdir -p dist-newtyle | ||
tar -vxzf .azure-cache/cabal-dist.tar.gz | ||
displayName: "Unpack cache" | ||
condition: eq(variables.CACHE_RESTORED, 'true') | ||
- bash: | | ||
git submodule sync | ||
git submodule update --init | ||
displayName: Sync submodules | ||
- bash: | | ||
source .azure/linux-cabal.bashrc | ||
cabal v2-update | ||
cabal v2-build --only-dependencies | ||
displayName: Build dependencies | ||
- bash: | | ||
source .azure/linux-cabal.bashrc | ||
cabal v2-build | ||
displayName: Build `hie` | ||
- bash: | | ||
source .azure/linux-cabal.bashrc | ||
cabal v2-install --overwrite-policy=always # `hie` binary required locally for tests | ||
displayName: Install `hie` | ||
- bash: | | ||
source .azure/linux-cabal.bashrc | ||
cabal v2-build --enable-tests --enable-benchmarks --only-dependencies | ||
displayName: Build Test-dependencies | ||
- bash: | | ||
sudo apt update | ||
sudo apt install z3 | ||
displayName: "Install Runtime Test-Dependencies: z3" | ||
- bash: | | ||
source .azure/linux-cabal.bashrc | ||
# to not reinstall hie | ||
cd $(Agent.TempDirectory) | ||
cabal v2-install liquidhaskell-0.8.6.2 -w /opt/ghc/8.6.5/bin/ghc --overwrite-policy=always | ||
displayName: "Install Runtime Test-Dependencies: liquidhaskell" | ||
- bash: | | ||
source .azure/linux-cabal.bashrc | ||
cabal v2-build hoogle | ||
cabal v2-exec hoogle generate | ||
displayName: "Install Runtime Test-Dependencies: hoogle database" | ||
- bash: | | ||
source .azure/linux-cabal.bashrc | ||
# TODO: Investigate why the test suite can't be run in parallel | ||
cabal v2-test -j1 | ||
jneira marked this conversation as resolved.
Show resolved
Hide resolved
|
||
displayName: Run Test | ||
- bash: | | ||
mkdir -p .azure-cache | ||
tar -vczf .azure-cache/cabal-root.tar.gz $HOME/.cabal | ||
tar -vczf .azure-cache/ghc-root.tar.gz $HOME/.ghc | ||
tar -vczf .azure-cache/cabal-dist.tar.gz dist-newstyle | ||
displayName: "Pack cache" |
File renamed without changes.
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
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
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
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
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.