Skip to content

Commit

Permalink
Added neph based build system
Browse files Browse the repository at this point in the history
  • Loading branch information
gbetsan committed Aug 17, 2018
1 parent c1c89a6 commit 631316f
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
db/*.db
dist/*
lib/
.neph/*
config.yaml
35 changes: 35 additions & 0 deletions neph.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
main:
command: |
rm -f release.zip
zip -r release.zip tbot/
dir:
dist
depends_on:
- move_files

make_dirs:
command: |
rm -rf tbot
mkdir tbot
mkdir tbot/db
dir:
dist

build:
command: |
crystal build --release --static tbot.cr
create_db:
command: |
rm db/database.db
bin/micrate up
move_files:
command: |
mv tbot dist/tbot/
cp config.yaml.example dist/tbot/
cp db/database.db dist/tbot/db/
depends_on:
- make_dirs
- build
- create_db

0 comments on commit 631316f

Please sign in to comment.