forked from openedx/edx-ora2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
49 lines (30 loc) · 1.12 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
all: install test
.PHONY: install test
install-system:
sudo apt-get update -y -qq
sudo xargs -a apt-packages.txt apt-get install -y -qq --fix-missing
install-node:
sudo add-apt-repository -y ppa:chris-lea/node.js
sudo apt-get update -y -qq
sudo apt-get install -y -qq nodejs
install-wheels:
./scripts/install-wheels.sh
install-python:
./scripts/install-python.sh
install-js:
sudo npm config set loglevel warn
npm install
install-nltk-data:
./scripts/download-nltk-data.sh
STATIC_JS = openassessment/xblock/static/js
javascript:
node_modules/.bin/uglifyjs $(STATIC_JS)/src/oa_shared.js $(STATIC_JS)/src/*.js $(STATIC_JS)/src/lms/*.js > "$(STATIC_JS)/openassessment-lms.min.js"
node_modules/.bin/uglifyjs $(STATIC_JS)/src/oa_shared.js $(STATIC_JS)/src/*.js $(STATIC_JS)/src/studio/*.js > "$(STATIC_JS)/openassessment-studio.min.js"
install-test:
pip install -q -r requirements/test.txt
install-dev:
sudo gem install sass
pip install -q -r requirements/dev.txt
install: install-system install-node install-wheels install-python install-js install-nltk-data install-test install-dev javascript
test:
./scripts/test.sh