mirror of
https://github.com/penpot/penpot.git
synced 2025-05-19 19:26:13 +02:00
🎉 Add circle CI (for backend).
This commit is contained in:
parent
240de28567
commit
b3f9c3d27e
4 changed files with 68 additions and 7 deletions
2
backend/scripts/tests.sh
Executable file
2
backend/scripts/tests.sh
Executable file
|
@ -0,0 +1,2 @@
|
|||
#!/usr/bin/env sh
|
||||
exec clojure -M:dev:tests "$@"
|
|
@ -221,11 +221,11 @@
|
|||
|
||||
(defn- read-test-config
|
||||
[env]
|
||||
(assoc (read-config env)
|
||||
:redis-uri "redis://redis/1"
|
||||
:database-uri "postgresql://postgres/penpot_test"
|
||||
:storage-fs-directory "/tmp/app/storage"
|
||||
:migrations-verbose false))
|
||||
(merge {:redis-uri "redis://redis/1"
|
||||
:database-uri "postgresql://postgres/penpot_test"
|
||||
:storage-fs-directory "/tmp/app/storage"
|
||||
:migrations-verbose false}
|
||||
(read-config env)))
|
||||
|
||||
(def version (v/parse "%version%"))
|
||||
(def config (read-config env))
|
||||
|
|
|
@ -77,8 +77,10 @@
|
|||
|
||||
(defn clean-storage
|
||||
[next]
|
||||
(fs/delete (fs/path "/tmp/penpot"))
|
||||
(next))
|
||||
(let [path (fs/path "/tmp/penpot")]
|
||||
(when (fs/exists? path)
|
||||
(fs/delete (fs/path "/tmp/penpot")))
|
||||
(next)))
|
||||
|
||||
(defn serial
|
||||
[& funcs]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue