Skip to content

Commit 877b877

Browse files
authoredMar 22, 2018
Use build matrix (r0man#190)
1 parent 67570c9 commit 877b877

File tree

2 files changed

+29
-17
lines changed

2 files changed

+29
-17
lines changed
 

‎.travis.yml

+12-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,18 @@
1+
cache:
2+
directories:
3+
- $HOME/.cljs
4+
- $HOME/.m2
5+
env:
6+
matrix:
7+
- TASK=benchmark
8+
- TASK=test
9+
- TASK=test.nashorn
10+
- TASK=test.node
11+
- TASK=test.phantom
112
language: clojure
213
install:
314
- . $HOME/.nvm/nvm.sh
415
- nvm install stable
516
- nvm use stable
6-
script: lein ci
17+
script: lein $TASK
718
sudo: false

‎project.clj

+17-16
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@
77
:url "http://www.eclipse.org/legal/epl-v10.html"}
88
:dependencies [[org.clojure/clojure "1.9.0"]
99
[org.omcljs/om "1.0.0-beta2"]]
10-
:npm {:dependencies [[benchmark "1.0.0"]
11-
[react "16.2.0"]
12-
[react-dom "16.2.0"]]}
1310
:profiles {:dev {:dependencies [[criterium "0.4.4"]
1411
[devcards "0.2.4" :exclusions [sablono]]
1512
[doo "0.1.9"]
@@ -21,8 +18,7 @@
2118
[rum "0.11.2" :exclusions [sablono]]]
2219
:plugins [[lein-cljsbuild "1.1.7"]
2320
[lein-doo "0.1.9"]
24-
[lein-figwheel "0.5.16-SNAPSHOT"]
25-
[lein-npm "0.6.2"]
21+
[lein-figwheel "0.5.15"]
2622
[perforate "0.3.4"]]
2723
:resource-paths ["test-resources" "target"]}
2824
:provided {:dependencies [[cljsjs/create-react-class "15.6.2-0"]
@@ -32,17 +28,12 @@
3228
[org.clojure/clojurescript "1.10.217"]]}
3329
:repl {:dependencies [[com.cemerick/piggieback "0.2.2"]]
3430
:repl-options {:nrepl-middleware [cemerick.piggieback/wrap-cljs-repl]}}}
35-
:aliases {"ci" ["do"
36-
["clean"]
37-
["npm" "install"]
38-
["test" ":default"]
39-
["doo" "node" "nodejs" "once"]
40-
;; TODO: Fix ReferenceError: Can't find variable: React
41-
;; ["doo" "phantom" "none" "once"]
42-
["doo" "nashorn" "advanced" "once"]
43-
["doo" "phantom" "advanced" "once"]
44-
["doo" "node" "benchmark" "once"]]
45-
"deploy" ["do" "clean," "deploy" "clojars"]}
31+
:aliases {"benchmark" ["doo" "node" "benchmark" "once"]
32+
"ci" ["do" ["clean"] ["test"] ["test.nashorn"] ["test.node"] ["test.phantom"] ["benchmark"]]
33+
"deploy" ["do" "clean," "deploy" "clojars"]
34+
"test.nashorn" ["doo" "nashorn" "advanced" "once"]
35+
"test.node" ["doo" "node" "nodejs" "once"]
36+
"test.phantom" ["doo" "phantom" "advanced" "once"]}
4637
:clean-targets ^{:protect false} [:target-path]
4738
:cljsbuild {:builds
4839
[{:id "devcards"
@@ -63,6 +54,11 @@
6354
{:asset-path "target/benchmark/out"
6455
:aot-cache true
6556
:main sablono.benchmark
57+
:npm-deps
58+
{:benchmark "1.0.0"
59+
:react "16.2.0"
60+
:react-dom "16.2.0"}
61+
:install-deps true
6662
:output-dir "target/benchmark/out"
6763
:output-to "target/benchmark/sablono.js"
6864
:optimizations :none
@@ -75,6 +71,11 @@
7571
{:asset-path "target/nodejs/out"
7672
:aot-cache true
7773
:main sablono.test.runner
74+
:npm-deps
75+
{:benchmark "1.0.0"
76+
:react "16.2.0"
77+
:react-dom "16.2.0"}
78+
:install-deps true
7879
:optimizations :none
7980
:output-dir "target/nodejs/out"
8081
:output-to "target/nodejs/sablono.js"

0 commit comments

Comments
 (0)
Please sign in to comment.