Skip to content

Build project with stack #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 5, 2020
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
61 changes: 42 additions & 19 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,50 +19,73 @@ commands:
- run: apt install -y cabal-install-<< parameters.cabal >> ghc-<< parameters.ghc >>
- run: echo 'export PATH=/opt/ghc/bin:$PATH' >> $BASH_ENV

cabal_build:
steps:
- run: cabal update
- run: cabal configure --enable-tests -fexample
- run: cabal build all --only-dependencies
- run: cabal build all
- run: cabal test all

stack_build:
steps:
- run: stack update
- run: stack build --only-dependencies --test
- run: stack build --test --no-run-tests
- run: stack test

jobs:
build_8_10:
cabal_8_10:
docker:
- image: debian:10

steps:
- checkout
- setup_haskell:
ghc: "8.10.2"
- run: cabal update
- run: cabal configure --enable-tests -fexample
- run: cabal build all --only-dependencies
- run: cabal build all
- run: cabal test all
- cabal_build

build_8_8:
cabal_8_8:
docker:
- image: debian:10

steps:
- checkout
- setup_haskell:
ghc: "8.8.4"
- run: cabal update
- run: cabal build all --only-dependencies --enable-tests
- run: cabal build all --enable-tests
- run: cabal test all
- cabal_build

build_8_6:
cabal_8_6:
docker:
- image: debian:10

steps:
- checkout
- setup_haskell:
ghc: "8.6.5"
- run: cabal update
- run: cabal build all --only-dependencies --enable-tests
- run: cabal build all --enable-tests
- run: cabal test all
- cabal_build

stack_16:
docker:
- image: fpco/stack-build-small:lts-16.17

steps:
- checkout
- stack_build

stack_14:
docker:
- image: fpco/stack-build-small:lts-14.27

steps:
- checkout
- stack_build

workflows:
main:
jobs:
- build_8_10
- build_8_8
- build_8_6
- cabal_8_10
- cabal_8_8
- cabal_8_6
- stack_16
- stack_14
2 changes: 1 addition & 1 deletion stack.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
resolver: lts-16.16
resolver: lts-16.17

packages:
- ./rollbar-cli
Expand Down
8 changes: 4 additions & 4 deletions stack.yaml.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
packages: []
snapshots:
- completed:
size: 532380
url: https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/lts/16/16.yaml
sha256: d6b004b095fe2a0b8b14fbc30014ee97e58843b9c9362ddb9244273dda62649e
original: lts-16.16
size: 532386
url: https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/lts/16/17.yaml
sha256: d3ee1ae797cf63189c95cf27f00700304946c5cb3c1e6a82001cd6584a221e1b
original: lts-16.17