yesod-auth-oauth2/.circleci/config.yml
patrick brisbin 653e1f4db6 Upgrade to GHC 8.6.3
No code changes required; only CI:

- Drop 8.2 build
- Add 8.6.3 build
- Update default build to 8.6.3
2019-01-09 16:51:31 -05:00

97 lines
2.3 KiB
YAML

---
version: 2.0
references:
stack_build: &stack_build
docker:
# https://github.com/haskell-works/stack-build/blob/master/minimal/Dockerfile
- image: quay.io/haskell_works/stack-build-minimal
steps:
- checkout
- run:
name: Upgrade Stack
command: stack upgrade
- run:
name: Digest
command: |
{
stack --version
echo -- "$STACK_YAML/$STACK_ARGUMENTS"
} > rdigest
git ls-files | xargs md5sum > sdigest
- restore_cache:
keys:
- v2-{{ .Branch }}-{{ checksum "rdigest" }}-{{ checksum "sdigest" }}
- v2-{{ .Branch }}-{{ checksum "rdigest" }}-
- v2-{{ .Branch }}-
- v2-master-
- run:
name: Setup
command: |
if [ "${LINT:-1}" = 1 ]; then
make setup setup.lint
else
make setup
fi
- run:
name: Dependencies
command: make dependencies
- run:
name: Build
command: make build
- save_cache:
# yamllint disable-line rule:line-length
key: v2-{{ .Branch }}-{{ checksum "rdigest" }}-{{ checksum "sdigest" }}
paths:
- ~/.stack
- ./.stack-work
- run:
name: Test
command: |
if [ "${LINT:-1}" = 1 ]; then
make test lint
else
make test
fi
jobs:
build:
<<: *stack_build
build_8.4.3:
<<: *stack_build
environment:
STACK_ARGUMENTS: --no-terminal
STACK_YAML: stack-lts-12.2.yaml
build_8.6.3:
<<: *stack_build
environment:
STACK_ARGUMENTS: --no-terminal
STACK_YAML: stack-lts-13.2.yaml
build_nightly:
<<: *stack_build
environment:
# weeder is not happy, again
# https://circleci.com/gh/thoughtbot/yesod-auth-oauth2/375
LINT: 0
STACK_ARGUMENTS: --resolver nightly --no-terminal
STACK_YAML: stack-nightly.yaml
workflows:
version: 2
commit:
jobs:
- build
- build_8.4.3
- build_8.6.3
- build_nightly
nightly:
triggers:
- schedule:
cron: "0 0 * * *"
filters:
branches:
only:
- master
jobs:
- build_nightly