Skip to content
This repository has been archived by the owner on Sep 12, 2018. It is now read-only.

Commit

Permalink
Convert to Leiningen 2
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelklishin committed Mar 9, 2012
1 parent 8357601 commit 1583e82
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 28 deletions.
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -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"
12 changes: 4 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -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.

Expand All @@ -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
Expand Down
40 changes: 21 additions & 19 deletions project.clj
Original file line number Diff line number Diff line change
@@ -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")

0 comments on commit 1583e82

Please sign in to comment.