Fork me on GitHub
#luminus
<
2020-11-09
>
jmckitrick00:11:56

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.

jmckitrick01:11:34

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

jmckitrick01:11:36

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

jmckitrick01:11:08

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

jmckitrick18:11:09

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

jmckitrick23:11:44

Let me be more specific:

jmckitrick23:11:05

1. lein new luminus foo

jmckitrick23:11:14

3. lein with-profile test uberjar

jmckitrick23:11:28

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

jmckitrick23:11:40

You’ll see the error I ran across