Skip to content

Commit 2e06313

Browse files
committed
configure travis to do xbrowser testing via sauce labs
1 parent d8226ba commit 2e06313

File tree

5 files changed

+28
-19
lines changed

5 files changed

+28
-19
lines changed

.travis.yml

+7-3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
1-
language: clojure
1+
language: java
22
jdk:
33
- oraclejdk8
4+
cache:
5+
directories:
6+
- $HOME/.m2
7+
addons:
8+
sauce_connect: true
49
install:
510
- curl -s https://api.github.com/repos/boot-clj/boot/releases |grep 'download_url.*boot\.sh' |head -1 |sed 's/^.*[:] /wget -O boot /' |bash
611
- chmod 755 boot
7-
addons:
8-
sauce_connect: true
912
script:
13+
- ./boot -V
1014
- ./boot test

app/src/hoplon_test/ui.cljs

+1-1
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@
114114
:metadata metadata
115115
:scroll true
116116
(elem :sh (r 1 1) :sv 50 :p 6 :a :mid :b 2 :bc border-grey
117-
(image :url "hoplon-logo.png")
117+
#_(image :url "hoplon-logo.png")
118118
(elem :sh+ (r 1 1) :pl 6 :f 21 "Hoplon UI Live Reference & Functional Tests"))
119119
(suite :title "alignments" :code ":a :av :ah [:beg :bid :end :jst]" :pass false
120120
(test :ah :beg :av :beg :title "box aligns horizontal left & vertical top" :pass true

boot.properties

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#http://boot-clj.com
2+
#Wed Jan 04 21:51:46 EST 2017
3+
BOOT_CLOJURE_NAME=org.clojure/clojure
4+
BOOT_CLOJURE_VERSION=1.8.0
5+
BOOT_VERSION=2.7.1

build.boot

+14-14
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
(set-env!
22
:source-paths #{"lib/src"}
3-
:dependencies '[[org.clojure/clojure "1.8.0" :scope "provided"]
4-
[org.clojure/clojurescript "1.9.293" :scope "provided"]
5-
[adzerk/env "0.4.0" :scope "test"]
6-
[adzerk/boot-cljs "1.7.228-2" :scope "test"]
7-
[adzerk/boot-test "1.1.2" :scope "test"]
8-
[adzerk/boot-reload "0.4.13" :scope "test"]
9-
[adzerk/bootlaces "0.1.13" :scope "test"]
10-
[org.seleniumhq.selenium/selenium-java "3.0.1" :scope "test"]
11-
[tailrecursion/boot-static "0.1.0" :scope "test"]
12-
[hoplon/hoplon "6.0.0-alpha17"]
13-
[hoplon/javelin "3.9.0"]
14-
[cljsjs/markdown "0.6.0-beta1-0"]])
3+
:dependencies '[[org.clojure/clojure "1.8.0" :scope "provided"]
4+
[org.clojure/clojurescript "1.9.293" :scope "provided"]
5+
[adzerk/env "0.4.0" :scope "test"]
6+
[adzerk/boot-cljs "1.7.228-2" :scope "test"]
7+
[adzerk/boot-test "1.1.2" :scope "test"]
8+
[adzerk/boot-reload "0.4.13" :scope "test"]
9+
[adzerk/bootlaces "0.1.13" :scope "test"]
10+
[org.seleniumhq.selenium/selenium-support "3.0.1" :scope "test"]
11+
[tailrecursion/boot-static "0.1.0" :scope "test"]
12+
[hoplon/hoplon "6.0.0-alpha17"]
13+
[hoplon/javelin "3.9.0"]
14+
[cljsjs/markdown "0.6.0-beta1-0"]])
1515

1616
(require
1717
'[adzerk.bootlaces :refer :all]
@@ -68,7 +68,7 @@
6868
(let [o (or optimizations :none)
6969
c {:elide-asserts no-validate}]
7070
(set-env! :source-paths #{"lib/src" "app/src"} :resource-paths #{"tst/src" "app/rsc"})
71-
(comp (init) (connect) (watch) (speak) (hoplon) (reload) (cljs :optimizations o :compiler-options c) (serve) (t/test :namespaces namespaces))))
71+
(comp (init) (connect) (watch) (speak) (hoplon) (cljs :optimizations o :compiler-options c) (serve) (t/test :namespaces namespaces))))
7272

7373
(deftask test
7474
"Continuously rebuild the test suite during development.
@@ -81,7 +81,7 @@
8181
(let [o (or optimizations :none)
8282
c {:elide-asserts no-validate}]
8383
(set-env! :source-paths #{"lib/src" "app/src"} :resource-paths #{"tst/src" "app/rsc"})
84-
(comp (init) (hoplon) (reload) (cljs :optimizations o :compiler-options c) (serve) (t/test :namespaces namespaces))))
84+
(comp (hoplon) (cljs :optimizations o :compiler-options c) (serve) (t/test :namespaces namespaces))))
8585

8686
(task-options!
8787
init {:file "cnf/local.env"}

tst/src/hoplon_test/ui.clj

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,4 +72,4 @@
7272

7373
(deftest title
7474
(let [t (.getTitle *driver*)]
75-
(is (= t "Hoplon UI") "title is Hoplon UI")))
75+
(is (= "Hoplon UI" t) "title is Hoplon UI")))

0 commit comments

Comments
 (0)