fix clj artefact & add test
This commit is contained in:
parent
d65c558cdc
commit
b75fa669e6
6 changed files with 14 additions and 6 deletions
|
@ -42,12 +42,18 @@ services:
|
||||||
before_script:
|
before_script:
|
||||||
- echo "{:auth {:repository-auth {#\"clojars\" {:username \"${CLOJARS_USER}\" :password \"${CLOJARS_PASSWORD}\" }}}}" > ~/.lein/profiles.clj
|
- echo "{:auth {:repository-auth {#\"clojars\" {:username \"${CLOJARS_USER}\" :password \"${CLOJARS_PASSWORD}\" }}}}" > ~/.lein/profiles.clj
|
||||||
|
|
||||||
build_and_test:
|
build-and-test-cljs:
|
||||||
<<: *cljs
|
<<: *cljs
|
||||||
stage: build_and_test
|
stage: build_and_test
|
||||||
script:
|
script:
|
||||||
- shadow-cljs compile test
|
- shadow-cljs compile test
|
||||||
|
|
||||||
|
build-and-test-clj:
|
||||||
|
<<: *clj-upload
|
||||||
|
stage: build_and_test
|
||||||
|
script:
|
||||||
|
- lein test
|
||||||
|
|
||||||
#activate as soon as https://github.com/thheller/shadow-cljs/issues/843 is implemented
|
#activate as soon as https://github.com/thheller/shadow-cljs/issues/843 is implemented
|
||||||
.report:
|
.report:
|
||||||
<<: *cljs
|
<<: *cljs
|
||||||
|
|
1
.lein-failures
Normal file
1
.lein-failures
Normal file
|
@ -0,0 +1 @@
|
||||||
|
{}
|
|
@ -3,7 +3,7 @@
|
||||||
:url "https://github.com/yogthos/mastodon-bot"
|
:url "https://github.com/yogthos/mastodon-bot"
|
||||||
:author "Dmitri Sotnikov"
|
:author "Dmitri Sotnikov"
|
||||||
:license {:name "MIT"}
|
:license {:name "MIT"}
|
||||||
:dependencies []
|
:dependencies [[org.clojure/clojure "1.10.3"]]
|
||||||
:source-paths ["src/main/cljc"
|
:source-paths ["src/main/cljc"
|
||||||
"src/main/clj"]
|
"src/main/clj"]
|
||||||
:resource-paths ["src/main/resources"]
|
:resource-paths ["src/main/resources"]
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
(ns mastodon-bot.rss-domain-test
|
(ns mastodon-bot.rss-domain-test
|
||||||
(:require
|
(:require
|
||||||
[cljs.test :refer-macros [deftest is testing run-tests]]
|
#?(:clj [clojure.test :refer [deftest is are testing run-tests]]
|
||||||
|
:cljs [cljs.test :refer-macros [deftest is are testing run-tests]])
|
||||||
[clojure.spec.alpha :as s]
|
[clojure.spec.alpha :as s]
|
||||||
[mastodon-bot.rss-domain :as sut]
|
[mastodon-bot.rss-domain :as sut]))
|
||||||
))
|
|
||||||
|
|
||||||
(deftest test-spec
|
(deftest test-spec
|
||||||
(is (s/valid? sut/rss-source?
|
(is (s/valid? sut/rss-source?
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
(ns mastodon-bot.transform-domain-test
|
(ns mastodon-bot.transform-domain-test
|
||||||
(:require
|
(:require
|
||||||
[cljs.test :refer-macros [deftest is testing run-tests]]
|
#?(:clj [clojure.test :refer [deftest is are testing run-tests]]
|
||||||
|
:cljs [cljs.test :refer-macros [deftest is are testing run-tests]])
|
||||||
[clojure.spec.alpha :as s]
|
[clojure.spec.alpha :as s]
|
||||||
[mastodon-bot.transform-domain :as sut]
|
[mastodon-bot.transform-domain :as sut]
|
||||||
))
|
))
|
Reference in a new issue