This repository was archived by the owner on Jan 2, 2021. It is now read-only.
File tree 4 files changed +17
-17
lines changed
4 files changed +17
-17
lines changed Original file line number Diff line number Diff line change @@ -31,15 +31,15 @@ jobs:
31
31
- bash : stack setup --stack-yaml=$STACK_YAML
32
32
displayName : ' stack setup'
33
33
- bash : stack build --bench --only-dependencies --stack-yaml=$STACK_YAML
34
- displayName : ' stack build --only-dependencies'
35
- - bash : |
36
- export PATH=/opt/cabal/bin:$PATH
37
- stack bench --ghc-options=-Werror --stack-yaml=$STACK_YAML
38
- displayName: 'stack bench --ghc-options=-Werror'
34
+ displayName : ' stack build --bench --only-dependencies'
39
35
- bash : |
40
36
mkdir -p .azure-cache
41
37
tar czf .azure-cache/stack-root.tar.gz -C $HOME .stack
42
38
displayName: "Pack cache"
39
+ - bash : |
40
+ export PATH=/opt/cabal/bin:$PATH
41
+ stack bench --ghc-options=-Werror --stack-yaml=$STACK_YAML
42
+ displayName: 'stack bench --ghc-options=-Werror'
43
43
- bash : |
44
44
cat bench-hist/results.csv
45
45
displayName: "cat results"
Original file line number Diff line number Diff line change @@ -43,12 +43,13 @@ jobs:
43
43
displayName : ' stack setup'
44
44
- bash : stack build --only-dependencies --stack-yaml=$STACK_YAML
45
45
displayName : ' stack build --only-dependencies'
46
+ - bash : |
47
+ mkdir -p .azure-cache
48
+ tar czf .azure-cache/stack-root.tar.gz -C $HOME .stack
49
+ displayName: "Pack cache"
50
+ condition: eq(variables.CACHE_RESTORED, 'false')
46
51
- bash : |
47
52
export PATH=/opt/cabal/bin:$PATH
48
53
stack test --ghc-options=-Werror --stack-yaml=$STACK_YAML || stack test --ghc-options=-Werror --stack-yaml=$STACK_YAML --ta "--rerun" || LSP_TEST_LOG_COLOR=0 LSP_TEST_LOG_MESSAGES=true LSP_TEST_LOG_STDERR=true stack test --ghc-options=-Werror --stack-yaml=$STACK_YAML --ta "--rerun"
49
54
# ghcide stack tests are flaky, see https://github.com/digital-asset/daml/issues/2606.
50
55
displayName: 'stack test --ghc-options=-Werror'
51
- - bash : |
52
- mkdir -p .azure-cache
53
- tar czf .azure-cache/stack-root.tar.gz -C $HOME .stack
54
- displayName: "Pack cache"
Original file line number Diff line number Diff line change 55
55
stack build --only-dependencies --stack-yaml $STACK_YAML
56
56
fi
57
57
displayName: 'stack build --only-dependencies'
58
+ - bash : |
59
+ mkdir -p .azure-cache
60
+ tar -vczf .azure-cache/stack-root.tar.gz $(cygpath $STACK_ROOT)
61
+ tar -vczf .azure-cache/stack-work.tar.gz .stack-work
62
+ displayName: "Pack cache"
58
63
- bash : |
59
64
if [ "$STACK_YAML" = "stack8101.yaml" ]; then
60
65
stack test --no-run-tests --ghc-options="-Werror -fexternal-interpreter" --stack-yaml $STACK_YAML || stack test --no-run-tests --ghc-options="-Werror -fexternal-interpreter" --stack-yaml $STACK_YAML || stack test --no-run-tests --ghc-options="-Werror -fexternal-interpreter" --stack-yaml $STACK_YAML
63
68
fi
64
69
displayName: 'stack test --ghc-options=-Werror'
65
70
# TODO: run test suite when failing tests are fixed or marked as broken. See https://github.com/digital-asset/ghcide/issues/474
66
- - bash : |
67
- mkdir -p .azure-cache
68
- tar -vczf .azure-cache/stack-root.tar.gz $(cygpath $STACK_ROOT)
69
- tar -vczf .azure-cache/stack-work.tar.gz .stack-work
70
- displayName: "Pack cache"
Original file line number Diff line number Diff line change 15
15
16
16
jobs :
17
17
- template : ./.azure/linux-stack.yml
18
- - template : ./.azure/windows-stack.yml
19
- # https://github.com/haskell/ghcide/pull/801
20
- # - template: ./.azure/linux-bench.yml
18
+ # - template: ./.azure/windows-stack.yml
19
+ - template : ./.azure/linux-bench.yml
You can’t perform that action at this time.
0 commit comments