2- job: ghcide_stack_linux
5 vmImage: 'ubuntu-latest'
9 STACK_YAML: "stack88.yaml"
11 STACK_YAML: "stack.yaml"
13 STACK_YAML: "stack84.yaml"
15 STACK_YAML: "stack-ghc-lib.yaml"
20 key: stack-cache-v2 | $(Agent.OS) | $(Build.SourcesDirectory)/$(STACK_YAML) | $(Build.SourcesDirectory)/ghcide.cabal
22 cacheHitVar: CACHE_RESTORED
23 displayName: "Cache stack artifacts"
26 tar xzf .azure-cache/stack-root.tar.gz -C $HOME
27 displayName: "Unpack cache"
28 condition: eq(variables.CACHE_RESTORED, 'true')
31 displayName: "HLint via ./fmt.sh"
33 sudo apt-get install -y g++ gcc libc6-dev libffi-dev libgmp-dev make zlib1g-dev
34 if ! which stack >/dev/null 2>&1; then
35 curl -sSL https://get.haskellstack.org/ | sh
37 displayName: 'Install Stack'
38 - bash: stack setup --stack-yaml=$STACK_YAML
39 displayName: 'stack setup'
40 - bash: stack build --only-dependencies --stack-yaml=$STACK_YAML
41 displayName: 'stack build --only-dependencies'
42 - bash: stack test --ghc-options=-Werror --stack-yaml=$STACK_YAML || stack test --ghc-options=-Werror --stack-yaml=$STACK_YAML|| stack test --ghc-options=-Werror --stack-yaml=$STACK_YAML
43 # ghcide stack tests are flaky, see https://github.com/digital-asset/daml/issues/2606.
44 displayName: 'stack test --ghc-options=-Werror'
47 tar czf .azure-cache/stack-root.tar.gz -C $HOME .stack
48 displayName: "Pack cache"
51 MESSAGE=$(git log --pretty=format:%s -n1)
54 -H 'Content-type: application/json' \
55 --data "{\"text\":\"<!here> *FAILED* $(Agent.JobName): <https://dev.azure.com/digitalasset/ghcide/_build/results?buildId=$(Build.BuildId)|$MESSAGE>\n\"}" \
57 condition: and(failed(), eq(variables['Build.SourceBranchName'], 'master'))
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list