Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Convert to Leiningen 2

  • Loading branch information...
commit 1583e820218a399e89db2362fe1c99f95c4a6a63 1 parent 8357601
@michaelklishin michaelklishin authored
Showing with 27 additions and 28 deletions.
  1. +2 −1  .travis.yml
  2. +4 −8 README.md
  3. +21 −19 project.clj
View
3  .travis.yml
@@ -1,5 +1,6 @@
language: clojure
+lein: lein2
# configure notifications (email, IRC, campfire etc)
notifications:
- irc: "irc.freenode.org#travis"
+ irc: "irc.freenode.org#travis"
View
12 README.md
@@ -1,17 +1,13 @@
# Example travis-ci.org Clojure project
-This is an example Clojure project that uses [Leiningen](https://github.com/technomancy/leiningen), clojure.test and
+This is an example Clojure project that uses [Leiningen](https://github.com/technomancy/leiningen) 2 [preview], clojure.test and
travis-ci.org for continuous integration.
## Usage
-Make sure you have Leiningen installed. Then install dependencies with
+Make sure you have [Leiningen 2.0 installed](https://github.com/technomancy/leiningen/wiki/Upgrading). Then run tests with
- lein deps
-
-and run tests with
-
- lein test
+ lein2 test
This is what Travis CI Clojure builder will run by default.
@@ -22,7 +18,7 @@ For more information, see `.travis.yml`, read our [Getting Started guide](http:/
Here is a sample status icon showing the state of the master branch:
-[![Build Status](https://secure.travis-ci.org/travis-ci/travis-ci-clojure-example.png?branch=master)](http://travis-ci.org/travis-ci/travis-ci-clojure-example)
+[![Build Status](https://secure.travis-ci.org/travis-ci/travis-ci-clojure-leiningen-2-example.png?branch=master)](http://travis-ci.org/travis-ci/travis-ci-clojure-leiningen-2-example)
## Support
View
40 project.clj
@@ -1,21 +1,23 @@
-(defproject org.travis-ci/example "1.0.0-SNAPSHOT"
- :description "An example Clojure project that uses Leiningen, clojure.test and uses travis-ci.org for CI"
- :repositories {
- "clojure-releases" "http://build.clojure.org/releases"
- "sonatype" {:url "http://oss.sonatype.org/content/repositories/releases"
- :snapshots false
- :releases {:checksum :fail :update :always}
- }
- "sonatype-snapshots" {:url "http://oss.sonatype.org/content/repositories/snapshots"
- :snapshots true
- :releases {:checksum :fail :update :always}
- }
- }
+(defproject org.travis-ci/lein2-example "1.0.0-SNAPSHOT"
:dependencies [[org.clojure/clojure "1.3.0"]]
- :source-path "src/clojure"
- :java-source-path "src/java"
+ :test-selectors {:default (fn [v] (not (:time-consuming v))),
+ :time-consuming (fn [v] (:time-consuming v)),
+ :focus (fn [v] (:focus v)),
+ :all (fn [_] true)}
+ :source-paths ["src/clojure"]
+ :repositories {"clojure-releases"
+ "http://build.clojure.org/releases",
+ "sonatype"
+ {:url
+ "http://oss.sonatype.org/content/repositories/releases",
+ :snapshots false,
+ :releases {:checksum :fail, :update :always}},
+ "sonatype-snapshots"
+ {:url
+ "http://oss.sonatype.org/content/repositories/snapshots",
+ :snapshots true,
+ :releases {:checksum :fail, :update :always}}}
+ :java-source-paths ["src/java"]
+ :min-lein-version "2.0.0"
:warn-on-reflection true
- :test-selectors {:default (fn [v] (not (:time-consuming v)))
- :time-consuming (fn [v] (:time-consuming v))
- :focus (fn [v] (:focus v))
- :all (fn [_] true)})
+ :description "An example Clojure project that uses Leiningen, clojure.test and uses travis-ci.org for CI")
Please sign in to comment.
Something went wrong with that request. Please try again.