This repository has been archived by the owner on Oct 7, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 207
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable all working test suites and add linux-cabal job in Azure (#1571)
* Enabled test-suites: * Linux, with stack or cabal, all test suites are enabled * Macos: * ghc-8.6.*: all suites enabled * ghc-8.4.*: func-test and dispatcher-test disabled * Windows * unit-test enabled * Except CabalHelper ones for ghc-8.6.4 * func-test enabled with almost all tests * cabal job: * Aadded one for linux Make progress towards #1401 Closes #1431
- Loading branch information
Showing
10 changed files
with
136 additions
and
36 deletions.
There are no files selected for viewing
This file contains 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 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 | ||
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 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 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 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 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 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 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 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