-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
53 lines (40 loc) · 1.2 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
VERSION=$(shell git describe --tags)
NOMBRE="mgit_elixir"
N=[0m
G=[01;32m
Y=[01;33m
B=[01;34m
comandos:
@echo ""
@echo "${B}Comandos disponibles para ${Y}${NOMBRE}${N} (versión: ${VERSION})"
@echo ""
@echo " ${Y}Generales de la aplicación${N}"
@echo ""
@echo " ${G}iniciar${N} Instala todas las dependencias."
@echo " ${G}compilar${N} Genera el binario compilado."
@echo " ${G}ejecutar${N} Ejecuta la aplicación de forma local."
@echo " ${G}test${N} Ejecuta los tests."
@echo " ${G}test_live${N} Ejecuta los tests de forma contínua."
@echo " ${G}version${N} Incrementa la versión."
@echo ""
iniciar: crear_fixture
mix deps.get
test:
mix test
test_live:
mix test.watch --stale
compilar:
mix escript.build
ejecutar:
mix escript.build
./mgit_elixir
version:
yarn release
crear_fixture:
rm -rf fixture
mkdir fixture
git clone https://github.com/trifulca/mgit_elixir.git fixture/mgit_elixir
git clone [email protected]:trifulca/mgit_elixir.git fixture/mgit_elixir_locales
echo "demo" >> fixture/mgit_elixir_locales/Makefile
#cd fixture; mkdir repo_error; cd repo_error; git init
.PHONY: test