-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
42 lines (29 loc) · 983 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
36
37
38
39
40
41
42
include .env
export $(shell sed 's/=.*//' .env)
export PLAYER=mock
export TRAKT_ID=412681ab85026009c32dc6e525ba6226ff063aad0c1a374def0c8ee171cf121f
export TRAKT_SECRET=714f0cb219791a0ecffec788fd7818c601397b95b2b3e8f486691366954902fb
export TMDB_KEY=d3350c6d641ee4f16f94a6c0b3b809d1
DEV_COMPOSE = docker-compose -f provision/docker-compose-base-arm.yml -f provision/docker-compose-dev.yml
DEV_COMPOSE_RUN = ${DEV_COMPOSE} run --no-deps app
start:
@$(DEV_COMPOSE) up
exec:
@$(DEV_COMPOSE) exec app /bin/bash
install:
@$(DEV_COMPOSE_RUN) yarn install
build:
@$(DEV_COMPOSE_RUN) yarn build
lint:
@$(DEV_COMPOSE_RUN) yarn lint
test:
@$(DEV_COMPOSE_RUN) yarn test -- $(t)
yarn:
@$(DEV_COMPOSE_RUN) yarn $(c)
start-demo:
@$(DEV_COMPOSE) run --no-deps --service-ports app yarn start:demo
test-travis:
@$(DEV_COMPOSE_RUN) yarn lint
@$(DEV_COMPOSE_RUN) yarn test:cov
@$(DEV_COMPOSE_RUN) yarn build:demo
.PHONY: start exec install build lint test start-demo test-travis