Skip to content

Commit

Permalink
no need for test cljs
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreaCrotti committed Mar 30, 2020
1 parent 7634750 commit b7b41b7
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 54 deletions.
20 changes: 4 additions & 16 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- checkout
- restore_cache:
keys:
- clj-deps-{{ checksum "project.clj" }}
- clj-deps-{{ checksum "deps.edn" }}

# - run: lein cljfmt check
- run: clojure -A:eastwood
Expand All @@ -36,7 +36,7 @@ jobs:
- checkout
- restore_cache:
keys:
- clj-deps-{{ checksum "project.clj" }}
- clj-deps-{{ checksum "deps.edn" }}

- run: bin/migrate
- run: bin/kaocha --plugin kaocha.plugin/junit-xml --junit-xml-file test-results/kaocha/results.xml
Expand All @@ -48,26 +48,15 @@ jobs:
- ~/.m2/repository
- ~/.lein

key: clj-deps-{{ checksum "project.clj" }}

test_cljs:
<<: *base_docker
steps:
- checkout
- run: sudo apt install rhino
- restore_cache:
keys:
- clj-deps-{{ checksum "project.clj" }}

- run: lein test-cljs || true
key: clj-deps-{{ checksum "deps.edn" }}

coverage_clj:
<<: *base_docker
steps:
- checkout
- restore_cache:
keys:
- clj-deps-{{ checksum "project.clj" }}
- clj-deps-{{ checksum "deps.edn" }}

- run: bin/migrate
- run: bin/kaocha --plugin cloverage --codecov
Expand All @@ -83,7 +72,6 @@ workflows:
version: 2
build:
jobs:
- test_cljs
- test_clj
- coverage_clj
- cljfmt
2 changes: 1 addition & 1 deletion bin/kaocha
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/usr/bin/env bash

clj -A:kaocha "$@"
clojure -A:kaocha "$@"
9 changes: 1 addition & 8 deletions project.clj
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@
:aliases {"fig" ["trampoline" "run" "-m" "figwheel.main"]
"fig:build" ["trampoline" "run" "-m" "figwheel.main" "-b" "dev"]
"cljs-prod" ["run" "-m" "figwheel.main" "--build-once" "prod"]
"test-cljs" ["doo" "rhino" "test" "once"]
"kaocha" ["with-profile" "+kaocha" "run" "-m" "kaocha.runner"]
"seed" ["run" "-m" "byf.seed"]}

Expand Down Expand Up @@ -142,13 +141,7 @@
[ring/ring-mock "0.4.0"]]}}
:cljsbuild
{:builds
[{:id "test"
:source-paths ["src/cljs" "src/cljc" "test/cljs" "test/cljc"]
:compiler {:output-to "target/unit-test.js"
:main 'byf.runner
:optimizations :whitespace}}

{:id "min"
[{:id "min"
:source-paths ["src/cljs" "src/cljc"]
:compiler {:main byf.core
:output-to "resources/public/cljs-out/dev-main.js"
Expand Down
4 changes: 2 additions & 2 deletions setup_db.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ dropdb --if-exists $DEV; createdb $DEV

dropdb --if-exists $TEST; createdb $TEST

DATABASE_URL="postgres://byf@localhost:5445/byf" lein migratus migrate
DATABASE_URL="postgres://byf@localhost:5445/byf_test" lein migratus migrate
DATABASE_URL="postgres://byf@localhost:5445/byf" bin/migrate
DATABASE_URL="postgres://byf@localhost:5445/byf_test" bin/migrate

DATABASE_URL="postgres://byf@localhost:5445/byf" lein run -m byf.seed
2 changes: 1 addition & 1 deletion src/clj/byf/migrate.clj
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
(defn config
[]
{:store :database
:migration-dir "migrations"
:migration-dir "resources/migrations"
:db (value :database-url)})

(defn -main
Expand Down
15 changes: 0 additions & 15 deletions test/cljs/byf/common/handlers_test.cljs

This file was deleted.

11 changes: 0 additions & 11 deletions test/cljs/byf/runner.cljs

This file was deleted.

0 comments on commit b7b41b7

Please sign in to comment.