New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Set up Travis tests #64
Comments
I think this track was originally written by a not-quite-yet-clojure dev who used it as an experiment in learning clojure. In other words: it probably just happened that way when they shook the internet and a tutorial with load-file fell out. |
😆 great description. In my solutions repo, I modified the test logic a bit to enable Travis builds. The key change (other than removing all the (let [paths (-> (:out (clojure.java.shell/sh "ls"))
(clojure.string/split #"\n")
(->> (remove #{"README.org" "project.clj" "target"
;; Removed until solved
"prime-factors"}))
vec)]
(defproject xclojure "0.1.0"
:description "Exercism Exercises in Clojure"
:url "https://github.com/yurrriq/exercism/tree/clojure"
:source-paths ~paths
:test-paths ~paths
:dependencies [[org.clojure/clojure "1.7.0"]
[org.clojure/core.typed "0.3.11"]])) In xclojure we could/should probably parse |
@kytrinyx, can I have write privileges on this repo? Clojure is probably my strongest language at the moment, so I could be good a resource here going forward too. I have a branch locally and just failed to push it. I guess I though xclojure would be managed by the lisp team, oops. $ git push -u origin travis-tests
ERROR: Permission to exercism/xclojure.git denied to yurrriq.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists. |
$ sed -i '/^(load-file/d' */*_test.clj See exercism#64 for discussion.
Add cheshire as a dependency to parse config.json, and set `:test-paths` to "_test". The test directory is prefixed with _ to make it stand out from exercise directories. See exercism#64 for discussion.
Gonna think on this some more. @canweriotnow, I know you're swamped, but maybe you can take a took. I'm at a bit of a loss for now.. |
@yurrriq I thought you did have write-access to this repo. Verifying now! |
Update: The lisp team didn't have access to this repo. That's fixed now. |
Thanks! I sincerely hope people didn't get a million Travis emails while I was experimenting.. If so, I'm sorry. |
I didn't get any emails--it's probably fine. |
$ sed -i '/^(load-file/d' */*_test.clj See exercism#64 for discussion.
Add cheshire as a dependency to parse config.json, and set `:test-paths` to "_test". The test directory is prefixed with _ to make it stand out from exercise directories. See exercism#64 for discussion.
🎉 |
In my opinion, it's a bad practice and it caused all sorts of headaches when I was setting up track-level testing locally.
The text was updated successfully, but these errors were encountered: