yesod-auth-oauth2/.circleci/config.yml
patrick brisbin d65d0b7386 Use lts-11.5 for 8.2 job
This is same GHC version, but newer other packages, which we need after
updating for yesod-1.6. The 11.5 yaml is equivalent to stack.yaml, but
we'll keep it distinct for when we update our default development
resolver.
2018-04-21 10:49:05 -04:00

70 lines
1.6 KiB
YAML

---
version: 2.0
references:
stack_build: &stack_build
docker:
- image: fpco/stack-build:lts
steps:
- checkout
- run:
name: Digest
command: |
echo -- "$STACK_ARGUMENTS" > rdigest
git ls-files | xargs md5sum > sdigest
- restore_cache:
keys:
- 1-{{ .Branch }}-{{ checksum "rdigest" }}-{{ checksum "sdigest" }}
- 1-{{ .Branch }}-{{ checksum "rdigest" }}-
- 1-{{ .Branch }}-
- 1-master-
- run:
name: Dependencies
command: make setup
- run:
name: Build
command: make build
- save_cache:
key: 1-{{ .Branch }}-{{ checksum "rdigest" }}-{{ checksum "sdigest" }}
paths:
- ~/.stack
- ./.stack-work
- run:
name: Test
command: make test
- run:
name: Lint
command: |
if [ "${LINT:-1}" -eq 0 ]; then
echo "[LINT=0] Lint step skipped." >&2
else
make lint
fi
jobs:
build_8.0.2:
<<: *stack_build
environment:
# FIXME: https://circleci.com/gh/thoughtbot/yesod-auth-oauth2/115
LINT: "0"
STACK_ARGUMENTS: --stack-yaml stack-lts-9.21.yaml
build_8.2.2:
<<: *stack_build
environment:
STACK_ARGUMENTS: --stack-yaml stack-lts-11.5.yaml
build:
<<: *stack_build
build_nightly:
<<: *stack_build
environment:
STACK_ARGUMENTS: --stack-yaml stack-nightly.yaml
workflows:
version: 2
builds:
jobs:
# - build_8.0.2
- build_8.2.2
- build
- build_nightly