Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 5 additions & 22 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,54 +12,37 @@ defaults: &defaults
name: Figure out resolver for better caching
command: grep '^resolver:' stack-build.txt > resolver.txt

- run:
name: Create a composite cabal file for changes detection
command: find . -name "*.cabal" | grep -v -e "stack-work" -e "dist-newstyle" -e "submodules" -e "testdata" | sort | xargs cat > all-cabal.txt

- restore_cache:
keys:
- v2-stack-cache-{{ .Environment.HIE_CACHE }}-{{ arch }}-{{ .Environment.CIRCLE_JOB }}-{{ checksum "stack-build.txt" }}-{{ checksum "all-cabal.txt" }}
- v2-stack-cache-{{ .Environment.HIE_CACHE }}-{{ arch }}-{{ .Environment.CIRCLE_JOB }}-{{ checksum "stack-build.txt" }}
- v2-stack-cache-{{ .Environment.HIE_CACHE }}-{{ arch }}-{{ .Environment.CIRCLE_JOB }}-{{ checksum "resolver.txt" }}
- v4-stack-cache-{{ .Environment.HIE_CACHE }}-{{ arch }}-{{ .Environment.CIRCLE_JOB }}-{{ checksum "resolver.txt" }}

- run:
name: Stack upgrade
command: stack upgrade

- run:
name: Stack setup
command: stack -j 2 --stack-yaml=${STACK_FILE} setup
command: stack -j2 --stack-yaml=${STACK_FILE} setup

- run:
name: Build (we need the exe for tests)
# need j1, else ghc-lib-parser triggers OOM
command: stack -j 1 --stack-yaml=${STACK_FILE} install --no-terminal
command: stack -j1 --stack-yaml=${STACK_FILE} install --no-terminal
no_output_timeout: 30m

- run:
name: Build Testsuite without running it
command: stack -j 1 --stack-yaml=${STACK_FILE} build --test --no-run-tests --no-terminal
command: stack -j1 --stack-yaml=${STACK_FILE} build --test --no-run-tests --no-terminal
no_output_timeout: 30m

- store_artifacts:
path: ~/.local/bin
destination: bin

- save_cache:
key: v2-stack-cache-{{ .Environment.HIE_CACHE }}-{{ arch }}-{{ .Environment.CIRCLE_JOB }}-{{ checksum "resolver.txt" }}
key: v4-stack-cache-{{ .Environment.HIE_CACHE }}-{{ arch }}-{{ .Environment.CIRCLE_JOB }}-{{ checksum "resolver.txt" }}
paths: &cache_paths
- ~/.stack
- ~/build/.stack-work
- ~/build/ghcide/.stack-work

- run:
name: Build including tests
command: stack --stack-yaml=${STACK_FILE} test --no-run-tests --no-terminal
no_output_timeout: 120m

- save_cache:
key: v2-stack-cache-{{ .Environment.HIE_CACHE }}-{{ arch }}-{{ .Environment.CIRCLE_JOB }}-{{ checksum "stack-build.txt" }}-{{ checksum "all-cabal.txt" }}
paths: *cache_paths

version: 2
jobs:
Expand Down
2 changes: 0 additions & 2 deletions stack-8.10.2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,6 @@ extra-deps:
# https://github.com/haskell/lsp/pull/332

configure-options:
$targets:
- --enable-executable-dynamic
ghcide:
- --disable-library-for-ghci
haskell-language-server:
Expand Down
2 changes: 0 additions & 2 deletions stack-8.10.3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,6 @@ extra-deps:
# https://github.com/haskell/lsp/pull/332

configure-options:
$targets:
- --enable-executable-dynamic
ghcide:
- --disable-library-for-ghci
haskell-language-server:
Expand Down
2 changes: 0 additions & 2 deletions stack-8.10.4.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,6 @@ extra-deps:
# - hlint-3.3@sha256:4218ad6e03050f5d68aeba0e025f5f05e366c8fd49657f2a19df04ee31b2bb23,4154

configure-options:
$targets:
- --enable-executable-dynamic
ghcide:
- --disable-library-for-ghci
haskell-language-server:
Expand Down
2 changes: 0 additions & 2 deletions stack-8.10.5.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,6 @@ extra-deps:
# - hlint-3.3@sha256:4218ad6e03050f5d68aeba0e025f5f05e366c8fd49657f2a19df04ee31b2bb23,4154

configure-options:
$targets:
- --enable-executable-dynamic
ghcide:
- --disable-library-for-ghci
haskell-language-server:
Expand Down
2 changes: 0 additions & 2 deletions stack-8.6.4.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,6 @@ flags:


configure-options:
$targets:
- --enable-executable-dynamic
ghcide:
- --disable-library-for-ghci
haskell-language-server:
Expand Down
2 changes: 0 additions & 2 deletions stack-8.6.5.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,6 @@ extra-deps:
# https://github.com/haskell/lsp/pull/332

configure-options:
$targets:
- --enable-executable-dynamic
ghcide:
- --disable-library-for-ghci
haskell-language-server:
Expand Down
2 changes: 0 additions & 2 deletions stack-8.8.3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,6 @@ extra-deps:
# https://github.com/haskell/lsp/pull/332

configure-options:
$targets:
- --enable-executable-dynamic
ghcide:
- --disable-library-for-ghci
haskell-language-server:
Expand Down
2 changes: 0 additions & 2 deletions stack-8.8.4.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,6 @@ extra-deps:
# https://github.com/haskell/lsp/pull/332

configure-options:
$targets:
- --enable-executable-dynamic
ghcide:
- --disable-library-for-ghci
haskell-language-server:
Expand Down
2 changes: 0 additions & 2 deletions stack-9.0.1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,6 @@ extra-deps:
commit: 16e19aaf34e286f3d27b3988c61040823ec66537

configure-options:
$targets:
- --enable-executable-dynamic
ghcide:
- --disable-library-for-ghci
haskell-language-server:
Expand Down