forked from ministryofjustice/fb-runner
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
39 lines (30 loc) · 911 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
UID ?= $(shell id -u)
DOCKER_COMPOSE = env UID=$(UID) docker-compose -f docker-compose.yml
.PHONY: setup
setup: build seed_public_key
.PHONY: seed_public_key
seed_public_key:
$(DOCKER_COMPOSE) up -d --build runner-app-service-token-cache-redis
./bin/seed_test_public_key
.PHONY: build
build:
$(DOCKER_COMPOSE) build --parallel
.PHONY: setup-integration
setup-integration: build seed_public_key
.PHONY: setup-ci
setup-ci:
docker-compose -f docker-compose.ci.yml build
.PHONY: security-check
security-check:
docker-compose -f docker-compose.ci.yml run --rm runner-app-ci bundle exec brakeman -q --no-pager
.PHONY: lint
lint:
docker-compose -f docker-compose.ci.yml run --rm runner-app-ci bundle exec rubocop
.PHONY: spec
spec:
docker-compose -f docker-compose.ci.yml run --rm runner-app-ci bundle exec rspec
.PHONY: assets
assets:
yarn install
bundle exec rails assets:precompile
./bin/webpack