-
Notifications
You must be signed in to change notification settings - Fork 9
/
makefile
35 lines (24 loc) · 880 Bytes
/
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
# Makefile
test: build teste
run: build
venv/bin/python app/barrabrasil.py
profile: build
venv/bin/python app/profile.py
build: venv
sh ./build.sh $(PROFILE)
venv: venv/bin/activate
venv/bin/activate: requirements.txt package.json
test -d venv || virtualenv --no-site-packages venv
venv/bin/pip install -Ur requirements.txt
touch venv/bin/activate
npm install
testReport:
trap 'docker rm -f barra-govbr && docker rmi -f barra-govbr-image' EXIT && \
docker build docker -t barra-govbr-image && \
docker run -dit -p 80:80 --name barra-govbr barra-govbr-image && \
npm run testReport
teste:
trap 'docker rm -f barra-govbr && docker rmi -f barra-govbr-image' EXIT && \
docker build docker -t barra-govbr-image && \
docker run -dit -p 80:80 --name barra-govbr barra-govbr-image && \
npm run test