An Art::World simulator 🎨 https://metacpan.org/pod/Art::World
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

81 lines
1.7 KiB

CARTONEXE=carton exec
dependencies-install:
carton install
build:
${CARTONEXE} -- perl Build.PL
${CARTONEXE} -- ./Build
#${CARTONEXE} -- ./Build test
${CARTONEXE} -- ./Build install
test-v:
${CARTONEXE} -- prove -vl t/
test:
${CARTONEXE} -- prove -l t/
test-entities:
${CARTONEXE} -- prove -vl t/02_abstraction.t
test-agent:
${CARTONEXE} -- prove -vl t/03_agent.t
test-collector:
${CARTONEXE} -- prove -vl t/05_collector.t
test-manager:
${CARTONEXE} -- prove -vl t/07_manager.t
test-crud:
${CARTONEXE} -- prove -vl t/20_crud.t
test-introspection:
${CARTONEXE} -- prove -vl t/30_introspection.t
test-fame:
${CARTONEXE} -- prove -vl t/50_fame.t
bump-version:
${CARTONEXE} perl-reversion -bump
build-readme:
pod2readme --format 'markdown' lib/Art/World.pm README.md
build-tiny:
${CARTONEXE} mbtiny regenerate
${CARTONEXE} mbtiny dist
#build-readme
upload:
${CARTONEXE} mbtiny upload
# When this doesn't work it is because the ${{NEXT}} thing hasn't been replaced by a proper version in Changes file
# Also all those should be better executed through carton
release: bump-version build-tiny upload
clean:
rm -rf ./.build
rm -f ./MYMETA.* ./README ./README.md.bak
db-schema:
${CARTONEXE} script/teng_schema_dumper.pl > lib/Art/World/Model/Schema.pm
# Combining db-dump and db-recreate, by editing the SQL file in between makes possible to modify the schema
db-dump:
echo '.dump' | sqlite3 art.db > schema.sql
rm art.db
db-recreate:
cat schema.sql | sqlite3 art.db
migration:
@${CARTONEXE} -- migrations/art-world.pl
# You can edit the version to migrate to
migration-version:
@${CARTONEXE} -- migrations/art-world.pl -v 1
names:
@echo 'Generating for you...'
@${CARTONEXE} -- script/names.pl