forked from monarch-initiative/monarch-legacy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
61 lines (45 loc) · 1.32 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
####
#### Development easing.
####
###
### Environment variables.
###
RINGO_MODULE_PATH ?= ../stick/lib
RINGO_BIN ?= ./ringojs/bin/ringo
RINGO_PORT ?= 8080
###
### Tests
###
TESTS = apitest urltester
test: $(patsubst %, test-%, $(TESTS))
production-test: $(patsubst %, production-test-%, $(TESTS))
test-%:
$(RINGO_BIN) tests/$*.js
production-test-%:
$(RINGO_BIN) tests/$*.js -s production
nif-production-url-test:
$(RINGO_BIN) tests/urltester.js -s production -c vocabulary,ontoquest,federation
###
### Documentation.
###
.PHONY: docs
docs:
naturaldocs --rebuild-output --input lib/monarch --project lib/.naturaldocs_project/ --output html docs/
###
### Deployment.
###
deploy: origin-push heroku-deploy
origin-push:
git push origin master
## cjm: http://secret-harbor-1370.herokuapp.com/
heroku-create:
heroku create --stack cedar --buildpack https://github.com/cmungall/heroku-buildpack-ringojs-jdk7.git --remote monarch-heroku
heroku-deploy:
git push monarch-heroku master
app-engine:
ringo-admin create --google-appengine gae
## Setup portable Ubuntu environment. -SJC
.PHONY: cli-launch
cli-launch:
RINGO_MODULE_PATH=$(RINGO_MODULE_PATH) $(RINGO_BIN) ./lib/monarch/web/webapp_launcher_dev.js --port=$(RINGO_PORT)
# RINGO_MODULE_PATH=$(RINGO_MODULE_PATH) $(RINGO_BIN) ./lib/monarch/web/webapp_launcher.js --port=$(RINGO_PORT)