on master help sign in
Move GHC 8.4 to a separate job
commit8f915897cf54ef09752ed2cb36a9b6fbf6c0098a authorMoritz Kiefer <moritz.kiefer@purelyfunctional.org> dateWed 11 Sep 2019, 13:32 (7 years ago) parent8fca00d
1 file changed+37
azure-pipelines.yml+37
azure-pipelines.yml+37
@@ -44,6 +44,43 @@ jobs:
4444 - bash: stack test || stack test || stack test
4545 # ghcide stack tests are flaky, see https://github.com/digital-asset/daml/issues/2606.
4646 displayName: 'stack test'
47+ - bash: |
48+ mkdir -p .azure-cache
49+ tar czf .azure-cache/stack-root.tar.gz -C $HOME .stack
50+ displayName: "Pack cache"
51+ - bash: |
52+ set -euo pipefail
53+ MESSAGE=$(git log --pretty=format:%s -n1)
54+ curl -XPOST \
55+ -i \
56+ -H 'Content-type: application/json' \
57+ --data "{\"text\":\"<!here> *FAILED* $(Agent.JobName): <https://dev.azure.com/digitalasset/ghcide/_build/results?buildId=$(Build.BuildId)|$MESSAGE>\n\"}" \
58+ $(Slack.URL)
59+ condition: and(failed(), eq(variables['Build.SourceBranchName'], 'master'))
60+ - job: ghcide_stack_84
61+ timeoutInMinutes: 60
62+ pool:
63+ vmImage: 'ubuntu-latest'
64+ steps:
65+ - checkout: self
66+ - task: CacheBeta@0
67+ inputs:
68+ key: stack-cache-v1 | $(Agent.OS) | $(Build.SourcesDirectory)/stack84.yaml | $(Build.SourcesDirectory)/ghcide.cabal
69+ path: .azure-cache
70+ cacheHitVar: CACHE_RESTORED
71+ displayName: "Cache stack artifacts"
72+ - bash: |
73+ mkdir -p ~/.stack
74+ tar xzf .azure-cache/stack-root.tar.gz -C $HOME
75+ displayName: "Unpack cache"
76+ condition: eq(variables.CACHE_RESTORED, 'true')
77+ - bash: |
78+ ./fmt.sh
79+ displayName: "HLint via ./fmt.sh"
80+ - bash: |
81+ sudo apt-get install -y g++ gcc libc6-dev libffi-dev libgmp-dev make zlib1g-dev
82+ curl -sSL https://get.haskellstack.org/ | sh
83+ displayName: 'Install Stack'
4784 - bash: stack setup --stack-yaml=stack84.yaml
4885 displayName: 'stack setup --stack-yaml=stack84.yaml'
4986 - bash: stack build --only-dependencies --stack-yaml=stack84.yaml