forked from betagouv/beta.gouv.fr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
34 lines (31 loc) · 925 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
DOCKER-RUN = docker-compose run --rm
BUNDLE-EXEC = bundle exec
build:
$(DOCKER-RUN) web /bin/bash -c 'ci/build.sh'
test:
$(DOCKER-RUN) web /bin/bash -c 'ci/test.sh'
spec:
$(DOCKER-RUN) web $(BUNDLE-EXEC) rspec
guard:
$(DOCKER-RUN) web $(BUNDLE-EXEC) guard
dsl:
$(DOCKER-RUN) web ./bin/beta-rb
up:
docker-compose up
down:
docker-compose down
sh:
$(DOCKER-RUN) web bash
rm:
docker-compose rm -sf
up-nginx: down-nginx
docker-compose -f docker-compose.nginx.yml up -d
down-nginx:
docker-compose -f docker-compose.nginx.yml down
html-proofer:
bundle exec htmlproofer ./_site/ --ignore-files "/recrutement\/*/" --no-enforce-https --disable-external --root_dir _site/ --allow-missing-href
.PHONY: validate
validate:
ruby bin/validate schema/authors.yml "content/_authors/*.md"
ruby bin/validate schema/startups.yml "content/_startups/*.md"
ruby bin/validate schema/organisations.yml "content/_organisations/*.md"