@@ -64,20 +64,21 @@ defaults: &defaults
6464 no_output_timeout : 120m
6565
6666 - run :
67- name : Test haskell-language-server
67+ name : Test haskell-language-server func-test suite
6868 # Tasty by default will run all the tests in parallel. Which should
6969 # work ok, but given that these CircleCI runners aren't the beefiest
7070 # machine can cause some flakiness. So pass -j1 to Tasty (NOT Stack) to
7171 # tell it to go slow and steady.
72- command : stack --stack-yaml=${STACK_FILE} test haskell-language-server --dump-logs --test-arguments="-j1 --rerun-update" || stack --stack-yaml=${STACK_FILE} test haskell-language-server --dump-logs --test-arguments="-j1 --rerun" || stack --stack-yaml=${STACK_FILE} test haskell-language-server --dump-logs --test-arguments="-j1 --rerun"
72+ command : stack --stack-yaml=${STACK_FILE} test haskell-language-server:func-test --dump-logs --test-arguments="-j1 --rerun-update" || stack --stack-yaml=${STACK_FILE} test haskell-language-server:func-test --dump-logs --test-arguments="-j1 --rerun" || LSP_TEST_LOG_COLOR=0 LSP_TEST_LOG_MESSAGES=true LSP_TEST_LOG_STDERR=true stack --stack-yaml=${STACK_FILE} test haskell-language-server:func-test --dump-logs --test-arguments="-j1 --rerun"
7373 no_output_timeout : 120m
7474
75+ - run :
76+ name : Test haskell-language-server wrapper-test suite
77+ command : stack --stack-yaml=${STACK_FILE} test haskell-language-server:wrapper-test --dump-logs --test-arguments="-j1" || stack --stack-yaml=${STACK_FILE} test haskell-language-server:wrapper-test --dump-logs --test-arguments="-j1"
78+ no_output_timeout : 30m
79+
7580 - run :
7681 name : Test hls-tactics-plugin
77- # Tasty by default will run all the tests in parallel. Which should
78- # work ok, but given that these CircleCI runners aren't the beefiest
79- # machine can cause some flakiness. So pass -j1 to Tasty (NOT Stack) to
80- # tell it to go slow and steady.
8182 command : stack --stack-yaml=${STACK_FILE} test hls-tactics-plugin:test:tests --dump-logs --test-arguments="-j1"
8283 no_output_timeout : 30m
8384
@@ -128,10 +129,10 @@ jobs:
128129 - STACK_FILE : " stack-8.10.2.yaml"
129130 << : *defaults
130131
131- # ghc-nightly:
132- # environment:
133- # - STACK_FILE: "stack.yaml"
134- # <<: *defaults
132+ ghc-nightly :
133+ environment :
134+ - STACK_FILE : " stack.yaml"
135+ << : *defaults
135136
136137 cabal :
137138 working_directory : ~/build
@@ -189,7 +190,7 @@ jobs:
189190 - cabal-{{ .Environment.HIE_CACHE }}-{{ arch }}-{{ .Environment.CIRCLE_JOB }}
190191 - run :
191192 name : Build
192- command : nix-shell -j4 --run "cabal new-update && cabal new-build -j1 --enable-tests"
193+ command : nix-shell -j4 --run "cabal new-update && ( cabal new-build -j1 --enable-tests || cabal new-build -j1 --enable-tests) "
193194 no_output_timeout : 30m
194195 - save_cache :
195196 key : cabal-{{ .Environment.HIE_CACHE }}-{{ arch }}-{{ .Environment.CIRCLE_JOB }}
0 commit comments