Skip to content

Commit

Permalink
Try creating an orb
Browse files Browse the repository at this point in the history
  • Loading branch information
danielcompton committed Mar 4, 2019
1 parent ed1a07c commit b7136a0
Showing 1 changed file with 29 additions and 20 deletions.
49 changes: 29 additions & 20 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,30 @@
version: 2.1
jobs:
build:
docker:
- image: circleci/clojure:lein-2.8.1
working_directory: ~/repo
environment:
LEIN_ROOT: "true"
JVM_OPTS: -Xmx3200m
steps:
- checkout
- restore_cache:
keys:
- v1-dependencies-{{ checksum "project.clj" }}
# fallback to using the latest cache if no exact match is found
- v1-dependencies-
- run: lein test
- save_cache:
paths:
- ~/.m2
key: v1-dependencies-{{ checksum "project.clj" }}
orbs:
clojure-leiningen:
executors:
leiningen:
docker:
- image: circleci/clojure:lein-2.8.1
environment:
LEIN_ROOT: "true"
JVM_OPTS: -Xmx3200m
working_directory: ~/repo
jobs:
lein-test:
executor: leiningen
steps:
- checkout
- restore_cache:
keys:
- v1-dependencies-{{ checksum "project.clj" }}
# fallback to using the latest cache if no exact match is found
- v1-dependencies-
- run: lein test
- save_cache:
paths:
- ~/.m2
key: v1-dependencies-{{ checksum "project.clj" }}
workflows:
test:
jobs:
- clojure-leiningen/lein-test

0 comments on commit b7136a0

Please sign in to comment.