Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 49 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# Clojure CircleCI 2.0 configuration file
#
# Check https://circleci.com/docs/2.0/language-clojure/ for more details
#
version: 2
jobs:
build:
branches:
only:
- /cljs-proper.*/

docker:
- image: circleci/clojure:tools-deps-1.10.0.442

working_directory: ~/repo

steps:
- checkout

- restore_cache:
keys:
- v1-dependencies-{{ checksum "codox/deps.edn" }}
- v1-dependencies- # fallback if cache not found

- run:
name: Dump tool versions
command: clojure -e '(println (System/getProperty "java.runtime.name") (System/getProperty "java.runtime.version") "\nClojure" (clojure-version))'
working_directory: ~/repo/codox

- run:
name: Dump classpath
command: clojure -Spath
working_directory: ~/repo/codox

- run:
name: Run tests
command: clojure -Atest --reporter documentation --plugin kaocha.plugin/junit-xml --junit-xml-file target/test-results/unit/results.xml
working_directory: ~/repo/codox

- save_cache:
paths:
- ~/.m2
key: v1-dependencies-{{ checksum "codox/deps.edn" }}

- store_test_results:
path: codox/target/test-results

- store_artifacts:
path: codox/target/test-results
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
pom.xml
pom.xml.asc
*jar
.cpcache/
lib/
classes/
target/
out/
checkouts/
.lein-*
.nrepl-port
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
### Notes about this fork

- Focused on extracting structured data (EDN) from jars.
- Any writing-related (HTML etc.) dependencies have been removed, code is kept to keep diff to mainline manageable.
[![CircleCI](https://circleci.com/gh/cljdoc/codox/tree/cljs-proper.svg?style=svg)](https://circleci.com/gh/cljdoc/codox/tree/cljs-proper)

- Focused on extracting structured data (EDN) from jars for cljdoc which makes use of work under codox subdir only.
- Any writing-related (HTML etc.) dependencies have been removed.
- Any remaining unused files are kept only to keep diff to mainline manageable.
- Various tweaks have been done to align the results of Clojure and ClojureScript analysis.
- During dev, tests can be run via `clojure -A:test --watch`


---
Expand Down
9 changes: 7 additions & 2 deletions codox/deps.edn
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
{:paths ["src" "resources" "test-sources"]
{:paths ["src"]
:deps {org.clojure/clojure {:mvn/version "1.9.0"}
org.clojure/tools.namespace {:mvn/version "0.2.11"}
org.clojure/clojurescript {:mvn/version "1.10.339"}}}
org.clojure/clojurescript {:mvn/version "1.10.520"}}
:aliases {:test
{:extra-paths ["test" "test-sources"]
:extra-deps {lambdaisland/kaocha {:mvn/version "0.0-413"}
lambdaisland/kaocha-junit-xml {:mvn/version "0.0-70"}}
:main-opts ["-m" "kaocha.runner"]}}}
13 changes: 0 additions & 13 deletions codox/project.clj

This file was deleted.

Loading