forked from Raynes/tentacles
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from circleci/circle-config
Added CircleCI config
- Loading branch information
Showing
4 changed files
with
74 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
version: 2.1 | ||
|
||
workflows: | ||
test-and-deploy: | ||
jobs: | ||
- test: | ||
context: org-global | ||
|
||
- deploy: | ||
context: org-global | ||
requires: | ||
- test | ||
filters: | ||
branches: | ||
only: | ||
- master | ||
|
||
jobs: | ||
test: | ||
docker: | ||
- image: clojure:lein-2.8.1 | ||
|
||
steps: | ||
- checkout | ||
- restore_cache: | ||
keys: | ||
- v1-jars-{{ checksum "project.clj" }} | ||
- v1-jars- | ||
- run: | ||
name: Run the tests | ||
command: lein test2junit | ||
- save_cache: | ||
key: v1-jars-{{ checksum "project.clj" }} | ||
paths: | ||
- ~/.m2 | ||
- store_test_results: | ||
path: ./test2junit/xml | ||
|
||
deploy: | ||
docker: | ||
- image: clojure:lein-2.8.1 | ||
steps: | ||
- checkout | ||
- restore_cache: | ||
keys: | ||
- v1-jars-{{ checksum "project.clj" }} | ||
- v1-jars- | ||
- run: lein deploy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,27 @@ | ||
(defproject tentacles "0.4.0" | ||
(def project-version (if-let [build-num (System/getenv "CIRCLE_BUILD_NUM")] | ||
(str "0.2." build-num) | ||
"0.2.0-SNAPSHOT")) | ||
|
||
(defproject circleci/tentacles project-version | ||
:description "A library for working with the Github API." | ||
:url "https://github.com/Raynes/tentacles" | ||
:license {:name "Eclipse Public License" | ||
:url "http://www.eclipse.org/legal/epl-v10.html"} | ||
|
||
:dependencies [[org.clojure/clojure "1.5.1"] | ||
[clj-http "1.0.1"] | ||
[cheshire "5.4.0"] | ||
[com.cemerick/url "0.1.1"] | ||
[org.clojure/data.codec "0.1.0"] | ||
[environ "1.0.0"]]) | ||
[environ "1.0.0"]] | ||
|
||
:profiles {:dev {:plugins [[test2junit "1.4.2"]]}} | ||
|
||
:repositories [["releases" {:url "https://clojars.org/repo" | ||
:username :env/clojars_username | ||
:password :env/clojars_password | ||
:sign-releases false}] | ||
["snapshots" {:url "https://clojars.org/repo" | ||
:username :env/clojars_username | ||
:password :env/clojars_password | ||
:sign-releases false}]]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters