-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
65 lines (49 loc) · 1.34 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
62
63
64
SHELL := /bin/bash
ACTUAL := $(shell pwd)
MIX_ENV=dev
export MIX_ENV
export ACTUAL
deps:
mix local.hex --force && mix local.rebar --force
mix deps.get
clean:
mix deps.clean --all
test:
MIX_ENV=test mix ecto.reset
mix test.watch
test-ci:
MIX_ENV=test mix clean
MIX_ENV=test mix compile -f
MIX_ENV=test mix ecto.reset
MIX_ENV=test mix test
tsc:
yarn deps
yarn tsc
coverage-ci:
MIX_ENV=test mix ecto.reset
MIX_ENV=test mix test --cover
coverage:
MIX_ENV=test mix ecto.reset
MIX_ENV=test mix test --cover
genhtml -o cover/lcov-report cover/lcov.info
open cover/lcov-report/index.html
filter-coverage:
cat .coverage-exclude | xargs lcov --remove cover/lcov.info -o cover/lcov.info
start:
mix ecto.migrate
mix phx.server
console:
iex -S mix
.PHONY: deps docs test test-ci tsc clean coverage start console filter-coverage
start-test-server:
-MIX_ENV=test mix ecto.reset
ISTANBUL=1 IS_TEST=1 MIX_ENV=test AUTOMATION=1 mix phx.server
start-test-server-ci:
ISTANBUL=1 IS_TEST=1 yarn workspace @tandem/assets build
MIX_ENV=test mix compile > /dev/null 2>&1
-MIX_ENV=test mix ecto.reset
MIX_ENV=test AUTOMATION=1 SERVE_STATIC=1 mix test --cover test/teamtalk_web/server_test.exs
join-coverage:
# join coverage across frontend and backend
genhtml -o cover/lcov-report cover/lcov.info coverage/lcov.info
open cover/lcov-report/index.html