Skip to content

Commit

Permalink
Github Actions
Browse files Browse the repository at this point in the history
Made heedy build and run through API tests over github's actions
  • Loading branch information
dkumor committed Dec 13, 2019
1 parent 6249cc8 commit 5b79435
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .gitignore
@@ -1,7 +1,7 @@
# The public folder is generated from the frontend
/assets/public
/assets/setup

.gobin
.vscode
# test text file
backend/server/tests/exec/data/test.txt
Expand Down
11 changes: 6 additions & 5 deletions Makefile
Expand Up @@ -18,11 +18,12 @@ frontend: phony frontend/node_modules
cd plugins/notifications; make builtin; make frontend
cd plugins/registry; make builtin; make frontend

heedy: backend/main.go phony # gencode
ifeq ($(shell which statik),)
go get github.com/rakyll/statik
endif
statik -src=./assets -dest=./backend -p assets -f
.gobin/statik:
GOBIN=${PWD}/.gobin go install github.com/rakyll/statik


heedy: backend/main.go .gobin/statik phony # gencode
./.gobin/statik -src=./assets -dest=./backend -p assets -f
cd backend; $(GO) build --tags "sqlite_foreign_keys json1 sqlite_preupdate_hook" -o ../heedy -ldflags "-X \"github.com/heedy/heedy/backend/buildinfo.BuildTimestamp=`date -u '+%Y-%m-%d %H:%M:%S'`\" -X github.com/heedy/heedy/backend/buildinfo.GitHash=`git rev-parse HEAD` -X github.com/heedy/heedy/backend/buildinfo.Version=$(VERSION)"
rm ./backend/assets/statik.go

Expand Down
3 changes: 2 additions & 1 deletion api/python/requirements.txt
Expand Up @@ -7,4 +7,5 @@ pytest-timeout

numpy
aiohttp
dateparser
dateparser
requests
3 changes: 2 additions & 1 deletion api/python/setup.py
Expand Up @@ -29,6 +29,7 @@
install_requires=[
"numpy",
"aiohttp",
"dateparser"
"dateparser",
"requests"
],
)

0 comments on commit 5b79435

Please sign in to comment.