-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.boot
73 lines (63 loc) · 2.27 KB
/
build.boot
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
(def project 'etuk)
(def version "0.1.3")
(set-env! :resource-paths #{"src" "resources"}
:source-paths #{"src" "test"}
:dependencies '[[org.clojure/clojure "1.9.0"]
[org.clojure/data.xml "0.2.0-alpha2"]
[org.clojure/data.csv "0.1.4"]
[org.clojure/tools.cli "0.3.5"]
[org.clojure/spec.alpha "0.1.123"]
[webica "3.8.1-clj0"]
[org.seleniumhq.selenium/selenium-java "3.8.1"]
[org.seleniumhq.selenium/selenium-server "3.8.1"]
[org.seleniumhq.selenium/selenium-firefox-driver "3.8.1"]
[me.raynes/fs "1.4.6"]
[easy-config "0.1.2"]
[cucl "0.1.0"]
[adzerk/boot-test "1.2.0" :scope "test"]
[adzerk/bootlaces "0.1.13" :scope "test"]])
(task-options!
pom {:project project
:version version
:description "Selenium web driver wrapper to automate commonly used apis."
:url "http://github.com/agilecreativity/etuk"
:scm {:url "https://github.com/agilecreativity/etuk"}
:license {"Eclipse Public License"
"http://www.eclipse.org/legal/epl-v10.html"}})
(deftask build
"Build and install the project locally."
[]
(comp (pom) (jar) (install)))
(require '[adzerk.boot-test :refer [test]]
'[adzerk.bootlaces :refer :all])
(bootlaces! version)
(deftask clj-dev
"Clojure REPL for CIDER"
[]
(comp
(cider)
(repl :server true)
(wait)))
(deftask cider-boot
"Cider boot params task"
[]
(clj-dev))
;; equivalence of `lein run'
(require 'etuk.examples.download-selenium)
(deftask download-selenium
"Download Selenium jar file"
[]
(with-pass-thru _
(etuk.examples.download-selenium/-main)))
(require 'etuk.examples.login-github)
(deftask login-github
"Login to Github.com"
[]
(with-pass-thru _
(etuk.examples.login-github/-main)))
(require 'etuk.examples.google-search)
(deftask google-search
"Search for some text on Google"
[]
(with-pass-thru _
(etuk.examples.google-search/-main "Github Emacs Trending")))