luminus

jmckitrick 2020-11-09T00:26:56.040600Z

So I’m using GitLab, and working on CI/CD. Remind me again why test-config.edn should not be in version control? The test container is failing because there’s no test config file found.

jmckitrick 2020-11-09T01:49:34.041200Z

I got CI/CD running, but it fails with this message during a lein test run:

jmckitrick 2020-11-09T01:49:36.041500Z

Syntax error compiling at (/tmp/form-init5582582439791414361.clj:1:73).
688could not find a non empty configuration file to load. looked in the classpath (as a "resource") and on a file system via "conf" system property

jmckitrick 2020-11-09T01:50:08.042Z

I added the test-config.edn file to the repo… so why would this error be generated?

jmckitrick 2020-11-09T18:20:09.042800Z

Has anyone figured out the trick to getting the GitLab CI/CD container to find the correct config files for running tests?

jmckitrick 2020-11-09T23:14:44.043900Z

Let me be more specific:

jmckitrick 2020-11-09T23:15:05.044200Z

1. lein new luminus foo

jmckitrick 2020-11-09T23:15:20.044400Z

2. cd foo

jmckitrick 2020-11-09T23:16:14.045Z

3. lein with-profile test uberjar

jmckitrick 2020-11-09T23:16:28.045300Z

4. java -jar target/uberjar/foo.jar

jmckitrick 2020-11-09T23:16:40.045600Z

You’ll see the error I ran across