fix clj artefact & add test

This commit is contained in:
jem 2021-03-16 09:23:12 +01:00
parent d65c558cdc
commit b75fa669e6
6 changed files with 14 additions and 6 deletions

View file

@ -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
View file

@ -0,0 +1 @@
{}

View file

@ -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"]

View file

@ -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?

View file

@ -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]
)) ))