-
Notifications
You must be signed in to change notification settings - Fork 170
/
Makefile
28 lines (19 loc) · 929 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
PWD = $(shell pwd)
all: build lint
node_modules: package.json
docker run -it --init --rm -v $(PWD):/code -w /code node:9 npm install
lint: node_modules
docker run -it --init --rm -v $(PWD):/code -w /code node:9 npm run lint
build: src node_modules
docker run -it --init --rm -v $(PWD):/code -w /code node:9 npm run build
preview: build
docker run -it --init --rm -v $(PWD):/code -w /code apiaryio/client preview --path=/code/apiary.apib --output=/code/apiary.html && \
echo "\nView documentation at file://$(PWD)/apiary.html"
watch: node_modules
docker run -it --init --rm -v $(PWD):/code -w /code node:9 npm run watch
yamllint:
docker run --rm -ti -v $(shell pwd):/api -w /api/ci teamleader/yamllint:latest . -d .yamllint
fly-validate:
docker run --rm -ti -v $(shell pwd):/api -w /api/ci teamleader/concourse-fly:6.2
set-pipeline:
fly -t tl set-pipeline -p api -c ci/pipeline.yaml -l ci/common-vars.yaml