Explorar el Código

Make dummy data easy to blow away/not commit changes for

Andy Baugh hace 5 años
padre
commit
1542b83c46
Se han modificado 3 ficheros con 6 adiciones y 1 borrados
  1. 1 0
      .gitignore
  2. 5 1
      Makefile
  3. 0 0
      data/DUMMY-dist.json

+ 1 - 0
.gitignore

@@ -3,3 +3,4 @@
 favicon.ico
 dist/
 www/assets/*.*
+data/DUMMY.json

+ 5 - 1
Makefile

@@ -3,9 +3,13 @@ install:
 	test -d $(HOME) || mkdir $(HOME)/.tcms
 
 .PHONY: test
-test:
+test: reset-dummy-data
 	prove t/*.t
 
+.PHONY: reset-dummy-data
+reset-dummy-data:
+	cp -f data/DUMMY-dist.json data/DUMMY.json
+
 .PHONY: depend
 depend:
 	sudo apt install -y sqlite3 libsqlite3-dev libdbd-sqlite3-perl cpanminus starman  libcal-dav-perl libtext-xslate-perl libserver-starter-perl liburl-encode-perl libplack-perl libcal-dav-perl libconfig-tiny-perl libdatetime-format-http-perl libjson-maybexs-perl libuuid-tiny-perl libcapture-tiny-perl libconfig-simple-perl libdbi-perl libfile-slurper-perl libfile-touch-perl libfile-copy-recursive-perl libxml-rss-perl

+ 0 - 0
data/DUMMY.json → data/DUMMY-dist.json