Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

add profiles to test multiple clojure version

  • Loading branch information...
commit 6659239117c47a47c8f6e355da42530d6665c478 1 parent 6bb1bed
@liquidz authored
Showing with 8 additions and 16 deletions.
  1. +2 −1  .travis.yml
  2. +4 −14 project.clj
  3. +2 −1  src/misaki/core.clj
View
3  .travis.yml
@@ -1,2 +1,3 @@
language: clojure
-script: lein test
+lein: lein2
+script: lein2 all test
View
18 project.clj
@@ -17,25 +17,15 @@
; css compiler
[gaka "0.3.0"]]
- :dev-dependencies [[lein-multi "1.1.0"]
- [lein-marginalia "0.7.1"]
- [debug-reader "0.0.1"]
+ :dev-dependencies [[debug-reader "0.0.1"]
[lein-autotest-notify "0.0.4"]]
+ :profiles {:1.5 {:dependencies [[org.clojure/clojure "1.5.0-RC4"]]}}
+ :aliases {"all" ["with-profile" "dev:dev,1.5"]}
+
:repositories [["sonatype-snapshots"
"https://oss.sonatype.org/content/repositories/snapshots/"]]
- :multi-deps {"1.3" [[org.clojure/clojure "1.3.0"]]
- "1.5S" [[org.clojure/clojure "1.5.0-master-SNAPSHOT"]]
- :all [[org.clojure/core.incubator "0.1.0"]
- [org.clojure/clojurescript "0.0-1236"]
- [hiccup "1.0.0"]
- [compojure "1.1.1"]
- [ring/ring-jetty-adapter "1.1.2"]
- [clj-time "0.4.3"]
- [uochan/watchtower "0.1.2"]
- [de.ubercode.clostache/clostache "1.3.0"]]}
-
:codox {:exclude [misaki.compiler.demo.core
misaki.compiler.copy.core]
:src-dir-uri "http://github.com/liquidz/misaki/blob/master"
View
3  src/misaki/core.clj
@@ -216,7 +216,8 @@
(let [post-count (count (get-post-files :all? true))
last-page (math/ceil (/ post-count ppp))]
(last (map #(binding [*page-index* %]
- (compile* (merge optional-config (make-page-data file % last-page))
+ (compile* (merge optional-config
+ (make-page-data file % last-page))
file ))
(range last-page))))
(compile* optional-config file))))
Please sign in to comment.
Something went wrong with that request. Please try again.